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:30:37 +0000 (20:30 +0100)
commit38454902208c358ffaa140aef3077c2316f82b19
treee40a4fd399908bb32489064d65d981e22447b373
parent3833ebea433dbb062fbdb69d300c5528b611a83a
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)

(cherry picked from commit 3bf0c3fe31d5339524dae671064cc5fe9e4bda38)
crypto/asn1/ameth_lib.c
crypto/evp/evp_err.c
include/openssl/evp.h