Skip to content

Commit d363c54

Browse files
cjihrigBethGriggs
authored andcommitted
crypto: use EVP_PKEY_X25519 in GetEphemeralKeyInfo
PR-URL: #26988 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Signed-off-by: Beth Griggs <[email protected]>
1 parent 7cbe121 commit d363c54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/node_crypto.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -2220,9 +2220,8 @@ void SSLWrap<Base>::GetEphemeralKeyInfo(
22202220
.FromJust();
22212221
break;
22222222
case EVP_PKEY_EC:
2223-
// TODO(shigeki) Change this to EVP_PKEY_X25519 and add EVP_PKEY_X448
2224-
// after upgrading to 1.1.1.
2225-
case NID_X25519:
2223+
// TODO(shigeki) Add EVP_PKEY_X448.
2224+
case EVP_PKEY_X25519:
22262225
{
22272226
const char* curve_name;
22282227
if (kid == EVP_PKEY_EC) {

0 commit comments

Comments
 (0)