summaryrefslogtreecommitdiffstats
path: root/providers/defltprov.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-18 01:57:56 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-29 20:55:16 +0100
commit045e51cbf49a0773f7d045180d9d8b8b73d70e90 (patch)
tree66ecb41fa5c05d8afdba3fa551e5ced5366d683d /providers/defltprov.c
parent677add38003b37cab06ebc59260c8d28745bb948 (diff)
PROV SERIALIZER: add support for writing DH keys and parameters
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10394)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r--providers/defltprov.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c
index 84e580366d..b8e96f9c21 100644
--- a/providers/defltprov.c
+++ b/providers/defltprov.c
@@ -399,6 +399,25 @@ static const OSSL_ALGORITHM deflt_serializer[] = {
{ "RSA", "default=yes,format=pem,type=public",
rsa_pub_pem_serializer_functions },
+ { "DH", "default=yes,format=text,type=private",
+ dh_priv_text_serializer_functions },
+ { "DH", "default=yes,format=text,type=public",
+ dh_pub_text_serializer_functions },
+ { "DH", "default=yes,format=text,type=domainparams",
+ dh_param_text_serializer_functions },
+ { "DH", "default=yes,format=der,type=private",
+ dh_priv_der_serializer_functions },
+ { "DH", "default=yes,format=der,type=public",
+ dh_pub_der_serializer_functions },
+ { "DH", "default=yes,format=der,type=domainparams",
+ dh_param_der_serializer_functions },
+ { "DH", "default=yes,format=pem,type=private",
+ dh_priv_pem_serializer_functions },
+ { "DH", "default=yes,format=pem,type=public",
+ dh_pub_pem_serializer_functions },
+ { "DH", "default=yes,format=pem,type=domainparams",
+ dh_param_pem_serializer_functions },
+
{ NULL, NULL, NULL }
};