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 655d5a1c8672cfa7d7edc6f51c89d1185be62e08..479cc0d42dcf79ce590af5d851ea3fe843f99bb9 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;
             }