summaryrefslogtreecommitdiff
path: root/usr/src/common/openssl/crypto/rsa/rsa_chk.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/openssl/crypto/rsa/rsa_chk.c')
-rw-r--r--usr/src/common/openssl/crypto/rsa/rsa_chk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/common/openssl/crypto/rsa/rsa_chk.c b/usr/src/common/openssl/crypto/rsa/rsa_chk.c
index 002f2cb487..9d848db8c6 100644
--- a/usr/src/common/openssl/crypto/rsa/rsa_chk.c
+++ b/usr/src/common/openssl/crypto/rsa/rsa_chk.c
@@ -75,7 +75,7 @@ int RSA_check_key(const RSA *key)
}
/* p prime? */
- r = BN_is_prime(key->p, BN_prime_checks, NULL, NULL, NULL);
+ r = BN_is_prime_ex(key->p, BN_prime_checks, NULL, NULL);
if (r != 1)
{
ret = r;
@@ -85,7 +85,7 @@ int RSA_check_key(const RSA *key)
}
/* q prime? */
- r = BN_is_prime(key->q, BN_prime_checks, NULL, NULL, NULL);
+ r = BN_is_prime_ex(key->q, BN_prime_checks, NULL, NULL);
if (r != 1)
{
ret = r;