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 <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Signed-off-by: Beth Griggs <[email protected]>
  • Loading branch information
cjihrig authored and BethGriggs committed Apr 9, 2019
1 parent 7cbe121 commit d363c54
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 @@ -2220,9 +2220,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 d363c54

Please sign in to comment.