]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/defltprov.c
Move SM2 asymmetric encryption to be available in the default provider
[thirdparty/openssl.git] / providers / defltprov.c
index 8564ddd5caa086510b7b9550db8f955e92b289ce..dee48fb2555b7e269b015b0ed4efa6af6fd17fe5 100644 (file)
@@ -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 }
 };