summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2024-10-27 10:37:48 +0100
committerTomas Mraz <tomas@openssl.org>2024-11-22 12:09:38 +0100
commitb2b995ec2d95a67b9c21012a25cadd94e15e6a17 (patch)
treefaf4881765f7db72dc6ce0bc75f7ec97ad8811b7 /test
parentFix multiple wrong checks of EVP_PKEY_set1_encoded_public_key (diff)
downloadopenssl-b2b995ec2d95a67b9c21012a25cadd94e15e6a17.tar.xz
openssl-b2b995ec2d95a67b9c21012a25cadd94e15e6a17.zip
Fix multiple wrong use of BN_check_prime
Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25811)
Diffstat (limited to 'test')
-rw-r--r--test/bntest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bntest.c b/test/bntest.c
index 2c7b91fad9..3b3671a622 100644
--- a/test/bntest.c
+++ b/test/bntest.c
@@ -2703,7 +2703,7 @@ static int test_not_prime(int i)
for (trial = 0; trial <= 1; ++trial) {
if (!TEST_true(BN_set_word(r, not_primes[i]))
- || !TEST_false(BN_check_prime(r, ctx, NULL)))
+ || !TEST_int_eq(BN_check_prime(r, ctx, NULL), 0))
goto err;
}