]> 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 13:13:07 +0000 (16:13 +0300)
commitf397efb0b999af6a54bc192ce8551e76c79ff245
tree3cd8bf6d76b83e92416ea9b2f6f85f82a8e14bfb
parent45487dba0fb8c36fe390fa8131204403c00c01fc
[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

(cherry picked from commit 7aa3dfc42104588f65301d20324388ac2c9a6b11)

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