diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-11-15 12:22:24 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-16 16:43:25 +0100 |
commit | 3b6154ccaf3e64bcdfda4859f2b98ef21b08c5b2 (patch) | |
tree | 3f0af9169dec9ffbe70f1ebdc5a8c26799cc916e /providers | |
parent | 9dd009dd513276e602b6592bc337a8563a1a82a1 (diff) | |
download | openssl-new-3b6154ccaf3e64bcdfda4859f2b98ef21b08c5b2.tar.gz |
Fix the check of EC_GROUP_check_named_curve
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19678)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/keymgmt/ec_kmgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/keymgmt/ec_kmgmt.c b/providers/implementations/keymgmt/ec_kmgmt.c index ec5c954856..fe2465a64b 100644 --- a/providers/implementations/keymgmt/ec_kmgmt.c +++ b/providers/implementations/keymgmt/ec_kmgmt.c @@ -946,7 +946,7 @@ int ec_validate(const void *keydata, int selection, int checktype) if ((flags & EC_FLAG_CHECK_NAMED_GROUP) != 0) ok = ok && EC_GROUP_check_named_curve(EC_KEY_get0_group(eck), - (flags & EC_FLAG_CHECK_NAMED_GROUP_NIST) != 0, ctx); + (flags & EC_FLAG_CHECK_NAMED_GROUP_NIST) != 0, ctx) > 0; else ok = ok && EC_GROUP_check(EC_KEY_get0_group(eck), ctx); } |