Skip to content

Commit 0316733

Browse files
cjihrigBethGriggs
authored andcommitted
crypto: use EVP_PKEY_X25519 in GetEphemeralKeyInfo
PR-URL: #26988 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 4c01f69 commit 0316733

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/node_crypto.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,9 +2452,8 @@ void SSLWrap<Base>::GetEphemeralKeyInfo(
24522452
.FromJust();
24532453
break;
24542454
case EVP_PKEY_EC:
2455-
// TODO(shigeki) Change this to EVP_PKEY_X25519 and add EVP_PKEY_X448
2456-
// after upgrading to 1.1.1.
2457-
case NID_X25519:
2455+
// TODO(shigeki) Add EVP_PKEY_X448.
2456+
case EVP_PKEY_X25519:
24582457
{
24592458
const char* curve_name;
24602459
if (kid == EVP_PKEY_EC) {

0 commit comments

Comments
 (0)