diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-24 23:27:49 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-06-02 11:06:35 +0200 |
commit | 56876ae952b96b4a83266f6b2ec1393f599015d6 (patch) | |
tree | 6e3f1b98f09627be00ac2ba62e8ee5012be3c449 /test/evp_extra_test.c | |
parent | 1c5a4e3b5e05494876ebba9d8272d2cbca1e20a3 (diff) |
Fix the erroneous checks of EVP_PKEY_CTX_set_group_name
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18399)
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 b7f2fe7e28..4518271a82 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -1759,7 +1759,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_int_gt(EVP_PKEY_paramgen_init(pctx), 0) - || !TEST_true(EVP_PKEY_CTX_set_group_name(pctx, "P-256")) + || !TEST_int_gt(EVP_PKEY_CTX_set_group_name(pctx, "P-256"), 0) || !TEST_true(EVP_PKEY_CTX_set_ec_param_enc(pctx, enc)) || !TEST_true(EVP_PKEY_paramgen(pctx, ¶ms)) || !TEST_ptr(params)) |