Add |SSL_CIPHER_is_RC4|.
We wish to be able to detect the use of RC4 so that we can flag it and
investigate before it's disabled.
Change-Id: I6dc3a5d2211b281097531a43fadf08edb5a09646
Reviewed-on: https://boringssl-review.googlesource.com/5930
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/ssl_cipher.c b/ssl/ssl_cipher.c
index 8f8d639..632db30 100644
--- a/ssl/ssl_cipher.c
+++ b/ssl/ssl_cipher.c
@@ -1392,6 +1392,10 @@
return (cipher->algorithm_enc & SSL_eNULL) != 0;
}
+int SSL_CIPHER_is_RC4(const SSL_CIPHER *cipher) {
+ return (cipher->algorithm_enc & SSL_RC4) != 0;
+}
+
int SSL_CIPHER_is_block_cipher(const SSL_CIPHER *cipher) {
/* Neither stream cipher nor AEAD. */
return (cipher->algorithm_enc & (SSL_RC4 | SSL_eNULL)) == 0 &&