From c51b7b296e0fd59a00b1c1337d744f4fc8d2fb35 Mon Sep 17 00:00:00 2001 From: Shigeki Ohtsu Date: Wed, 25 Apr 2018 12:10:26 +0900 Subject: tls: fix getEphemeralKeyInfo to support X25519 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `EVP_PKEY_EC` only covers ANSI X9.62 curves not IETF ones(curve25519 and curve448). This fixes to add support of X25519 in `tlsSocket.getEphemeralKeyInfo()`. X448 should be added in the future upgrade to OpenSSL-1.1.1. PR-URL: https://github.com/nodejs/node/pull/20273 Fixes: https://github.com/nodejs/node/issues/20262 Reviewed-By: Daniel Bevenius Reviewed-By: Ben Noordhuis Reviewed-By: Tobias Nießen --- src/node_crypto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/node_crypto.h') diff --git a/src/node_crypto.h b/src/node_crypto.h index a8fe8b0d4a..3963f7050f 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -44,6 +44,8 @@ #endif // !OPENSSL_NO_ENGINE #include #include +// TODO(shigeki) Remove this after upgrading to 1.1.1 +#include #include #include #include -- cgit v1.2.3