]> git.ipfire.org Git - thirdparty/openssl.git/commit
Make EVP_PKEY_asn1_add0() stricter about its input
authorRichard Levitte <levitte@openssl.org>
Fri, 7 Dec 2018 08:26:04 +0000 (09:26 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Dec 2018 11:06:04 +0000 (12:06 +0100)
commite42e531846c6c6c26941a9f938504e114753fbee
treece5288d718d2ae2d317a4608f24dd2e4eb27be9a
parent110ef88b99f1acc6b976f2e49153734924181db2
Make EVP_PKEY_asn1_add0() stricter about its input

It turns out that the strictness that was implemented in
EVP_PKEY_asn1_new() (see Github openssl/openssl#6880) was badly placed
for some usages, and that it's better to do this check only when the
method is getting registered.

Fixes #7758

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7847)

(cherry picked from commit a86003162138031137727147c9b642d99db434b1)
CHANGES
crypto/asn1/ameth_lib.c