Have EVP_PKEY_asn1_find_str() work more like EVP_PKEY_asn1_find()
authorRichard Levitte <levitte@openssl.org>
Mon, 22 Jan 2018 18:03:37 +0000 (19:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Jan 2018 19:27:32 +0000 (20:27 +0100)
commit3bf0c3fe31d5339524dae671064cc5fe9e4bda38
treedf10b756d0183bb309ad42462ca97c9244cc7c26
parent7203c94e98c9fa76b0859c25b723b2bde4a9059b
Have EVP_PKEY_asn1_find_str() work more like EVP_PKEY_asn1_find()

EVP_PKEY_asn1_find_str() would search through standard asn1 methods
first, then those added by the application, which EVP_PKEY_asn1_find()
worked the other way around.  Also, EVP_PKEY_asn1_find_str() didn't
handle aliases.

This change brings EVP_PKEY_asn1_find_str() closer to EVP_PKEY_asn1_find().

Fixes #5086

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5137)
crypto/asn1/ameth_lib.c
crypto/err/openssl.txt
crypto/evp/evp_err.c
include/openssl/evperr.h