summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/dh/dh_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/dh/dh_check.c')
-rw-r--r--crypto/openssl/crypto/dh/dh_check.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/dh/dh_check.c b/crypto/openssl/crypto/dh/dh_check.c
index 058aec7..316cb92 100644
--- a/crypto/openssl/crypto/dh/dh_check.c
+++ b/crypto/openssl/crypto/dh/dh_check.c
@@ -62,7 +62,7 @@
#include <openssl/dh.h>
/* Check that p is a safe prime and
- * if g is 2, 3 or 5, check that is is a suitable generator
+ * if g is 2, 3 or 5, check that it is a suitable generator
* where
* for 2, p mod 24 == 11
* for 3, p mod 12 == 5
@@ -70,6 +70,8 @@
* should hold.
*/
+#ifndef OPENSSL_FIPS
+
int DH_check(const DH *dh, int *ret)
{
int ok=0;
@@ -140,3 +142,5 @@ err:
if (q != NULL) BN_free(q);
return(ok);
}
+
+#endif
OpenPOWER on IntegriCloud