]> git.ipfire.org Git - thirdparty/openssl.git/commit
[ec] Do not default to OPENSSL_EC_NAMED_CURVE for curves without OID
authorNicola Tuveri <nic.tuv@gmail.com>
Thu, 16 Jul 2020 00:23:26 +0000 (03:23 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 30 Aug 2021 12:18:19 +0000 (15:18 +0300)
commit7aa3dfc42104588f65301d20324388ac2c9a6b11
treef273466bf2d7faac4707f2778eb63410ec2db2b6
parentcca8a4cedaafe63b0b5729b72133661ece24ff08
[ec] Do not default to OPENSSL_EC_NAMED_CURVE for curves without OID

Some curves don't have an associated OID: for those we should not
default to `OPENSSL_EC_NAMED_CURVE` encoding of parameters and instead
set the ASN1 flag to `OPENSSL_EC_EXPLICIT_CURVE`.

This is a follow-up to https://github.com/openssl/openssl/pull/12312

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16355)
crypto/ec/ec_asn1.c
crypto/ec/ec_curve.c