diff options
Diffstat (limited to 'openssl/crypto/dh/dh_check.c')
-rw-r--r-- | openssl/crypto/dh/dh_check.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openssl/crypto/dh/dh_check.c b/openssl/crypto/dh/dh_check.c index 316cb9221..066898174 100644 --- a/openssl/crypto/dh/dh_check.c +++ b/openssl/crypto/dh/dh_check.c @@ -70,8 +70,6 @@ * should hold. */ -#ifndef OPENSSL_FIPS - int DH_check(const DH *dh, int *ret) { int ok=0; @@ -130,11 +128,11 @@ int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) q=BN_new(); if (q == NULL) goto err; BN_set_word(q,1); - if (BN_cmp(pub_key,q) <= 0) + if (BN_cmp(pub_key,q)<=0) *ret|=DH_CHECK_PUBKEY_TOO_SMALL; BN_copy(q,dh->p); BN_sub_word(q,1); - if (BN_cmp(pub_key,q) >= 0) + if (BN_cmp(pub_key,q)>=0) *ret|=DH_CHECK_PUBKEY_TOO_LARGE; ok = 1; @@ -142,5 +140,3 @@ err: if (q != NULL) BN_free(q); return(ok); } - -#endif |