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/ecdsa/ecs_lib.c | |
parent | 45bf825066b1929ec219b8b76321f5191e44f370 (diff) |
Don't set default public key methods in FIPS mode so applications
can switch between modes.
Diffstat (limited to 'crypto/ecdsa/ecs_lib.c')
-rw-r--r-- | crypto/ecdsa/ecs_lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/ecdsa/ecs_lib.c b/crypto/ecdsa/ecs_lib.c index 65aca01767..e477da430b 100644 --- a/crypto/ecdsa/ecs_lib.c +++ b/crypto/ecdsa/ecs_lib.c @@ -83,10 +83,12 @@ const ECDSA_METHOD *ECDSA_get_default_method(void) { #ifdef OPENSSL_FIPS if (FIPS_mode()) - default_ECDSA_method = FIPS_ecdsa_openssl(); + return FIPS_ecdsa_openssl(); else + return ECDSA_OpenSSL(); +#else + default_ECDSA_method = ECDSA_OpenSSL(); #endif - default_ECDSA_method = ECDSA_OpenSSL(); } return default_ECDSA_method; } |