From 2b3df37eb2e1dfe324b935332b958b45a89ec9c6 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 116c1c7149..0e40a2b441 100644 --- a/node.gypi +++ b/node.gypi @@ -365,9 +365,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 573d59ddf4..7bce7706a9 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -41,6 +41,8 @@ #include #include +#include + namespace node { namespace crypto { -- 2.31.1