From 75268fbb6bbe32db695595e2b30f4600732767ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Tue, 28 Apr 2020 11:15:24 +0200 Subject: [PATCH] Link with ssl-shim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Staněk --- node.gypi | 10 +++++++--- src/node_crypto.cc | 2 +- src/node_crypto.h | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/node.gypi b/node.gypi index 43dbda7bbf..070f212d96 100644 --- a/node.gypi +++ b/node.gypi @@ -364,9 +364,13 @@ ], }], ], - }]] - - }, { + }], + [ 'node_shared_openssl=="true"', { + 'include_dirs': ['deps/node-ssl-shim/include'], + 'libraries': ['& args) { void SecureContext::SetCipherSuites(const FunctionCallbackInfo& args) { // BoringSSL doesn't allow API config of TLS1.3 cipher suites. -#ifndef OPENSSL_IS_BORINGSSL +#if !defined OPENSSL_IS_BORINGSSL && !OPENSSL_IS_LEGACY SecureContext* sc; ASSIGN_OR_RETURN_UNWRAP(&sc, args.Holder()); Environment* env = sc->env(); diff --git a/src/node_crypto.h b/src/node_crypto.h index bef98b3e24..d46730c9ba 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -42,6 +42,8 @@ #include #include +#include + namespace node { namespace crypto { -- 2.26.2