diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-10-19 01:08:28 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-12-08 13:25:38 +0000 |
commit | 1bfffe9bd013e73436fcaed0a8bf91f4e7f09560 (patch) | |
tree | 6934f9a7f45333a87ec0ee3330df98b3839d1d36 /crypto/dh/dh_gen.c | |
parent | fce8311caeb792d01855b9eb828dedf46a4d04d9 (diff) | |
download | openssl-new-1bfffe9bd013e73436fcaed0a8bf91f4e7f09560.tar.gz |
Remove FIPS module code from crypto/dh
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/dh/dh_gen.c')
-rw-r--r-- | crypto/dh/dh_gen.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/dh/dh_gen.c b/crypto/dh/dh_gen.c index 23d6ead3ca..c397c53bce 100644 --- a/crypto/dh/dh_gen.c +++ b/crypto/dh/dh_gen.c @@ -68,10 +68,6 @@ #include <openssl/bn.h> #include <openssl/dh.h> -#ifdef OPENSSL_FIPS -#include <openssl/fips.h> -#endif - static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb); int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) @@ -112,20 +108,6 @@ static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB int g,ok= -1; BN_CTX *ctx=NULL; -#ifdef OPENSSL_FIPS - if(FIPS_selftest_failed()) - { - FIPSerr(FIPS_F_DH_BUILTIN_GENPARAMS,FIPS_R_FIPS_SELFTEST_FAILED); - return 0; - } - - if (FIPS_module_mode() && (prime_len < OPENSSL_DH_FIPS_MIN_MODULUS_BITS)) - { - DHerr(DH_F_DH_BUILTIN_GENPARAMS, DH_R_KEY_SIZE_TOO_SMALL); - goto err; - } -#endif - ctx=BN_CTX_new(); if (ctx == NULL) goto err; BN_CTX_start(ctx); |