X509: Add d2i_PUBKEY_ex(), which take a libctx and propq
authorRichard Levitte <levitte@openssl.org>
Tue, 18 Aug 2020 18:39:45 +0000 (20:39 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Aug 2020 10:32:00 +0000 (12:32 +0200)
commit22b814443eea4ef4ea86d5d5677601d6645606d9
tree8c29025ed8bc952d64f10b5822b78d84574ccc02
parent3b1fd0b003572554ad9bb3914527c160bc6a7727
X509: Add d2i_PUBKEY_ex(), which take a libctx and propq

Just like d2i_PrivateKey() / d2i_PrivateKey_ex(), there's a need to
associate an EVP_PKEY extracted from a PUBKEY to a library context and
a property query string.  Without it, a provider-native EVP_PKEY can
only fetch necessary internal algorithms from the default library
context, even though an application specific context should be used.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12671)
crypto/ec/ec_ameth.c
crypto/x509/x_pubkey.c
doc/man3/X509_PUBKEY_new.pod
include/crypto/x509.h
include/openssl/x509.h
providers/implementations/serializers/deserialize_der2key.c
util/libcrypto.num