summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-11 06:23:58 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-12 13:07:56 +0100
commit4b1aa164990a29db4a25b9478cc0066fe1ac9810 (patch)
tree0b2441d736d5e86789ba942a9fd0aa77a248d9b7 /crypto/x509
parent100cc8b0a644aab8e50b6ec29d966cc015cd5cf0 (diff)
Add OSSL_SERIALIZER_PUBKEY_TO_DER_PQ and friends
It's already used internally, there's no reason the DER serializer propqueries shouldn't be present alongside the PEM and TEXT ones. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11055)
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x_pubkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x_pubkey.c b/crypto/x509/x_pubkey.c
index c4d2806ea1..f74c156652 100644
--- a/crypto/x509/x_pubkey.c
+++ b/crypto/x509/x_pubkey.c
@@ -93,7 +93,7 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
}
} else if (pkey->pkeys[0].keymgmt != NULL) {
BIO *bmem = BIO_new(BIO_s_mem());
- const char *serprop = "format=der,type=public";
+ const char *serprop = OSSL_SERIALIZER_PUBKEY_TO_DER_PQ;
OSSL_SERIALIZER_CTX *sctx =
OSSL_SERIALIZER_CTX_new_by_EVP_PKEY(pkey, serprop);