mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user