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>
Tue, 31 Oct 2017 08:21:32 +0000 (09:21 +0100)
commit605fa68efaf2ebc891330ed1ae9e5053a2228c1e
treef6511f2071203b53eef008f637b1859fb62024d6
parent6088fb79f110d34ac66093f4a33dc82612674d78
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/4620)
crypto/asn1/ameth_lib.c
crypto/evp/evp_err.c
include/openssl/evp.h