summaryrefslogtreecommitdiffstats
path: root/providers/defltprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-09-18 10:55:16 +0200
committerMatt Caswell <matt@openssl.org>2020-09-25 12:13:53 +0200
commitce64d3eee06a64e78ea5be7e8f0dd7172aa78259 (patch)
treef78916571d0e41b39c47879bc96ca7dcf4d9c088 /providers/defltprov.c
parentBuild: Make NonStop shared libraries only export selected symbols (diff)
downloadopenssl-ce64d3eee06a64e78ea5be7e8f0dd7172aa78259.tar.xz
openssl-ce64d3eee06a64e78ea5be7e8f0dd7172aa78259.zip
Move SM2 asymmetric encryption to be available in the default provider
Fixes #12908 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12913)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r--providers/defltprov.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c
index 8564ddd5ca..dee48fb255 100644
--- a/providers/defltprov.c
+++ b/providers/defltprov.c
@@ -381,6 +381,9 @@ static const OSSL_ALGORITHM deflt_signature[] = {
static const OSSL_ALGORITHM deflt_asym_cipher[] = {
{ "RSA:rsaEncryption", "provider=default", rsa_asym_cipher_functions },
+#ifndef OPENSSL_NO_SM2
+ { "SM2", "provider=default", sm2_asym_cipher_functions },
+#endif
{ NULL, NULL, NULL }
};