summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-18 01:54:11 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-29 20:55:16 +0100
commitcb58d81e68c72ab0128e0a5fc6faa007f8632acd (patch)
treeee52b4f077c3cd495c4dc8d282b3008f825a4f88 /crypto/pem
parentPROV BIO: add a BIO_vprintf() upcall, and a provider BIO library (diff)
downloadopenssl-cb58d81e68c72ab0128e0a5fc6faa007f8632acd.tar.xz
openssl-cb58d81e68c72ab0128e0a5fc6faa007f8632acd.zip
PROV SERIALIZER: add common functionality to serialize keys
To support generic output of public keys wrapped in a X509_PUBKEY, additional PEM and i2d/d2i routines are added for that type. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10394)
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pem/pem_all.c b/crypto/pem/pem_all.c
index 2e8eb2e183..ba98371d46 100644
--- a/crypto/pem/pem_all.c
+++ b/crypto/pem/pem_all.c
@@ -34,6 +34,7 @@ IMPLEMENT_PEM_rw(X509_REQ, X509_REQ, PEM_STRING_X509_REQ, X509_REQ)
IMPLEMENT_PEM_write(X509_REQ_NEW, X509_REQ, PEM_STRING_X509_REQ_OLD, X509_REQ)
IMPLEMENT_PEM_rw(X509_CRL, X509_CRL, PEM_STRING_X509_CRL, X509_CRL)
+IMPLEMENT_PEM_rw(X509_PUBKEY, X509_PUBKEY, PEM_STRING_PUBLIC, X509_PUBKEY)
IMPLEMENT_PEM_rw(PKCS7, PKCS7, PEM_STRING_PKCS7, PKCS7)
IMPLEMENT_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE,