diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 23:52:56 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-16 17:32:17 +0100 |
commit | 6e0b05f3008a3f22105fd2bed9314b0bfa381f93 (patch) | |
tree | bd96f31a34dda7b067425fac5a8992d879327390 /test/evp_extra_test.c | |
parent | e2e5e72d5aec4d8d633cc5e9930f762da7973ab6 (diff) |
EVP_PKEY_paramgen_init: fix return check
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17030)
Diffstat (limited to 'test/evp_extra_test.c')
-rw-r--r-- | test/evp_extra_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 69cab3194b..8d053ddc93 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -1695,7 +1695,7 @@ static int test_EC_keygen_with_enc(int idx) /* Create key parameters */ if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "EC", NULL)) - || !TEST_true(EVP_PKEY_paramgen_init(pctx)) + || !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0) || !TEST_true(EVP_PKEY_CTX_set_group_name(pctx, "P-256")) || !TEST_true(EVP_PKEY_CTX_set_ec_param_enc(pctx, enc)) || !TEST_true(EVP_PKEY_paramgen(pctx, ¶ms)) |