Adapt X509_PUBKEY_set() for use with provided implementations
authorRichard Levitte <levitte@openssl.org>
Sun, 12 Jan 2020 23:27:40 +0000 (00:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 28 Jan 2020 16:05:22 +0000 (17:05 +0100)
commite56ba0e1229d3eacb443fa4935a4da7701dfb1f3
treecb8286c2651d649e3e6bee099a8574af430c9910
parent0cb3f4f985aa52688ddc90075f480ba612d34fe3
Adapt X509_PUBKEY_set() for use with provided implementations

We do this by letting a serializer serialize the provider side key to
a DER blob formatted according to the SubjectPublicKeyInfo structure
(see RFC 5280), and deserialize it in libcrypto using the usual d2i
function.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10851)
crypto/x509/x_pubkey.c