Skip to content

Commit

Permalink
crypto: use EVP_PKEY_X25519 in GetEphemeralKeyInfo
Browse files Browse the repository at this point in the history
PR-URL: #26988
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
cjihrig committed Apr 1, 2019
1 parent bf347f5 commit 6ac692a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6ac692a

Please sign in to comment.