-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable RC4 when built with Openssl-3.0 #3982
Conversation
#ifdef S2N_LIBCRYPTO_SUPPORTS_EVP_RC4 | ||
return EVP_rc4(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also check for Openssl-3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. It's not testing for support, just limiting the blast radius of the #if we need to check for the existence of the EVP_rc4() symbol.
@@ -21,20 +21,30 @@ | |||
#include "utils/s2n_blob.h" | |||
#include "utils/s2n_safety.h" | |||
|
|||
static uint8_t s2n_stream_cipher_rc4_available() | |||
static const EVP_CIPHER *s2n_evp_rc4() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to tell from the docs but does this EVP_CIPHER
need to be free'd with EVP_CIPHER_free
? Or is it a global?
Guess we will continue to support RC4 with Openssl3, since the other PR was merged :) |
Pull request was closed
Description of changes:
A possible alternative to #3980
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.