Enable PKCS#3 DH in the providers
authorMatt Caswell <matt@openssl.org>
Thu, 27 Jun 2019 14:03:55 +0000 (15:03 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 16 Jul 2019 09:16:32 +0000 (10:16 +0100)
The default provider now has support for PKCS#3 Diffie-Hellman so we
switch libcrypto to using providers for that algorithm.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9266)

crypto/evp/exchange.c

index 655d5a1..479cc0d 100644 (file)
@@ -147,10 +147,8 @@ int EVP_PKEY_derive_init_ex(EVP_PKEY_CTX *ctx, EVP_KEYEXCH *exchange)
          */
         if (ctx->pkey != NULL) {
             switch (ctx->pkey->type) {
-#if 0
             case EVP_PKEY_DH:
                 break;
-#endif
             default:
                 goto legacy;
             }