From d363c5410f92b217fac95333724e69a84d4ecd26 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 29 Mar 2019 11:54:15 -0400 Subject: [PATCH] crypto: use EVP_PKEY_X25519 in GetEphemeralKeyInfo PR-URL: https://github.com/nodejs/node/pull/26988 Reviewed-By: Ben Noordhuis Reviewed-By: Daniel Bevenius Signed-off-by: Beth Griggs --- src/node_crypto.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 68af2f58b5cfee..b2cb9941d9f92a 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2220,9 +2220,8 @@ void SSLWrap::GetEphemeralKeyInfo( .FromJust(); break; case EVP_PKEY_EC: - // TODO(shigeki) Change this to EVP_PKEY_X25519 and add EVP_PKEY_X448 - // after upgrading to 1.1.1. - case NID_X25519: + // TODO(shigeki) Add EVP_PKEY_X448. + case EVP_PKEY_X25519: { const char* curve_name; if (kid == EVP_PKEY_EC) {