Don't try to use unvalidated composite ciphers in FIPS mode
This commit is contained in:
parent
c940e07014
commit
c76b7a1a82
4
CHANGES
4
CHANGES
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
Changes between 1.0.1b and 1.0.1c [xx XXX xxxx]
|
Changes between 1.0.1b and 1.0.1c [xx XXX xxxx]
|
||||||
|
|
||||||
*)
|
*) In FIPS mode don't try to use composite ciphers as they are not
|
||||||
|
approved.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
|
Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
|
||||||
|
|
||||||
|
@ -620,6 +620,11 @@ int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc,
|
|||||||
s->ssl_version < TLS1_VERSION)
|
s->ssl_version < TLS1_VERSION)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
#ifdef OPENSSL_FIPS
|
||||||
|
if (FIPS_mode())
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (c->algorithm_enc == SSL_RC4 &&
|
if (c->algorithm_enc == SSL_RC4 &&
|
||||||
c->algorithm_mac == SSL_MD5 &&
|
c->algorithm_mac == SSL_MD5 &&
|
||||||
(evp=EVP_get_cipherbyname("RC4-HMAC-MD5")))
|
(evp=EVP_get_cipherbyname("RC4-HMAC-MD5")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user