Skip to content

Commit

Permalink
Fix the check of EC_GROUP_check_named_curve
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #19678)

(cherry picked from commit 3b6154c)
  • Loading branch information
PeiweiHu authored and t8m committed Nov 16, 2022
1 parent e29ea41 commit b679355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/implementations/keymgmt/ec_kmgmt.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit b679355

Please sign in to comment.