diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-20 19:41:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-20 19:41:13 +0000 |
commit | 3a5b97b7f124cbd5346ab0d8fe6fc1705a81a675 (patch) | |
tree | 0f027ac3ffcd69a7242023f43d5b309be2b71983 /crypto/dh | |
parent | 45bf825066b1929ec219b8b76321f5191e44f370 (diff) |
Don't set default public key methods in FIPS mode so applications
can switch between modes.
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index edb4bb31fb..00218f2b92 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -83,10 +83,12 @@ const DH_METHOD *DH_get_default_method(void) { #ifdef OPENSSL_FIPS if (FIPS_mode()) - default_DH_method = FIPS_dh_openssl(); + return FIPS_dh_openssl(); else + return DH_OpenSSL(); +#else + default_DH_method = DH_OpenSSL(); #endif - default_DH_method = DH_OpenSSL(); } return default_DH_method; } |