EC: Reverse the default asn1_flag in a new EC_GROUP
authorRichard Levitte <levitte@openssl.org>
Wed, 27 Jan 2021 13:55:28 +0000 (14:55 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 3 Feb 2021 16:20:56 +0000 (17:20 +0100)
commit9db6af922c48c5cab5398ef9f37e425e382f9440
tree79dca1b5db60bb0f61dfc9c9f86f1161b7a2b15d
parent977e95b912138d02bae86d829a990d81c2bbcca0
EC: Reverse the default asn1_flag in a new EC_GROUP

The default was OPENSSL_EC_NAMED_CURVE, but that's not true until a
curve name has been set, so we change the initial value to
OPENSSL_EC_EXPLICIT_CURVE and let EC_GROUP_set_curve_name() change it
to OPENSSL_EC_NAMED_CURVE.

Submitted by Matt Caswell

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13973)
crypto/ec/ec_lib.c