summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorShigeki Ohtsu <ohtsu@ohtsu.org>2018-04-25 12:10:26 +0900
committerRuben Bridgewater <ruben@bridgewater.de>2018-04-28 17:17:53 +0200
commitc51b7b296e0fd59a00b1c1337d744f4fc8d2fb35 (patch)
tree049f77c2e66353ebbb249694c8cecc5cee331f7f /src/node_crypto.h
parentbdf0d9b364094805183be3197b6099dd0c88a246 (diff)
downloadandroid-node-v8-c51b7b296e0fd59a00b1c1337d744f4fc8d2fb35.tar.gz
android-node-v8-c51b7b296e0fd59a00b1c1337d744f4fc8d2fb35.tar.bz2
android-node-v8-c51b7b296e0fd59a00b1c1337d744f4fc8d2fb35.zip
tls: fix getEphemeralKeyInfo to support X25519
`EVP_PKEY_EC` only covers ANSI X9.62 curves not IETF ones(curve25519 and curve448). This fixes to add support of X25519 in `tlsSocket.getEphemeralKeyInfo()`. X448 should be added in the future upgrade to OpenSSL-1.1.1. PR-URL: https://github.com/nodejs/node/pull/20273 Fixes: https://github.com/nodejs/node/issues/20262 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index a8fe8b0d4a..3963f7050f 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -44,6 +44,8 @@
#endif // !OPENSSL_NO_ENGINE
#include <openssl/err.h>
#include <openssl/evp.h>
+// TODO(shigeki) Remove this after upgrading to 1.1.1
+#include <openssl/obj_mac.h>
#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>