EVP_PKEY_asn1_add0(): Check that this method isn't already registered
authorRichard Levitte <levitte@openssl.org>
Fri, 27 Oct 2017 20:42:04 +0000 (22:42 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 30 Oct 2017 17:21:13 +0000 (18:21 +0100)
commitd85722d31ac9ff0dc54c06cdc8d125acf56ca27a
tree0631f42804b40330872997507c6073f880b1cd83
parent751148e2b0d1048522d754d55319166435cdda86
EVP_PKEY_asn1_add0(): Check that this method isn't already registered

No two public key ASN.1 methods with the same pkey_id can be
registered at the same time.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/4596)
crypto/asn1/ameth_lib.c