diff options
-rw-r--r-- | test/evp_extra_test2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/evp_extra_test2.c b/test/evp_extra_test2.c index b2ffe1d792..86337b281b 100644 --- a/test/evp_extra_test2.c +++ b/test/evp_extra_test2.c @@ -346,9 +346,8 @@ static int test_dh_tofrom_data_select(void) && TEST_int_gt(EVP_PKEY_generate(gctx, &key), 0) && TEST_true(do_pkey_tofrom_data_select(key, "DHX")); # ifndef OPENSSL_NO_DEPRECATED_3_0 - dhkey = EVP_PKEY_get0_DH(key); - ret = ret && TEST_ptr(dhkey); - ret = ret && TEST_ptr(privkey = DH_get0_priv_key(dhkey)) + ret = ret && TEST_ptr(dhkey = EVP_PKEY_get0_DH(key)) + && TEST_ptr(privkey = DH_get0_priv_key(dhkey)) && TEST_int_le(BN_num_bits(privkey), 225); # endif EVP_PKEY_free(key); |