]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/default/defltprov.c
Implement PKCS#3 DH Key Exchange in the default provider
[thirdparty/openssl.git] / providers / default / defltprov.c
index 76ef2bcf9ab15dee77ce46d40aeacf037f6295d7..6ac2bdbfcc2e1c8a2c25e8b6ec4299fd9f03fc8b 100644 (file)
@@ -114,6 +114,11 @@ static const OSSL_ALGORITHM deflt_ciphers[] = {
     { NULL, NULL, NULL }
 };
 
+static const OSSL_ALGORITHM deflt_keyexch[] = {
+    { "dhKeyAgreement", "default=yes", dh_functions },
+    { NULL, NULL, NULL }
+};
+
 static const OSSL_ALGORITHM *deflt_query(OSSL_PROVIDER *prov,
                                          int operation_id,
                                          int *no_cache)
@@ -124,6 +129,8 @@ static const OSSL_ALGORITHM *deflt_query(OSSL_PROVIDER *prov,
         return deflt_digests;
     case OSSL_OP_CIPHER:
         return deflt_ciphers;
+    case OSSL_OP_KEYEXCH:
+        return deflt_keyexch;
     }
     return NULL;
 }