crypto: use EVP_PKEY_X25519 in GetEphemeralKeyInfo

PR-URL: https://github.com/nodejs/node/pull/26988
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
cjihrig
2019-03-29 11:54:15 -04:00
parent bf347f537a
commit 6ac692a3db

View File

@@ -2452,9 +2452,8 @@ void SSLWrap<Base>::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) {