fix_handle_boringssl_and_openssl_incompatibilities.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Shelley Vohr <[email protected]>
  3. Date: Wed, 12 Feb 2020 15:08:04 -0800
  4. Subject: fix: handle BoringSSL and OpenSSL incompatibilities
  5. This patch corrects for imcompatibilities between OpenSSL, which Node.js uses,
  6. and BoringSSL which Electron uses via Chromium. Each incompatibility typically has
  7. ~2 paths forward:
  8. * Upstream a shim or adapted implementation to BoringSSL
  9. * Alter Node.js functionality to something which both libraries can handle.
  10. Where possible, we should seek to make this patch as minimal as possible.
  11. Upstreams:
  12. - https://github.com/nodejs/node/pull/39054
  13. - https://github.com/nodejs/node/pull/39138
  14. - https://github.com/nodejs/node/pull/39136
  15. diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc
  16. index 67cd4f2adf15e7d8511f561c54163b1842e971af..7e0e1a62289289b8362870ba4869c97494b9298a 100644
  17. --- a/src/crypto/crypto_cipher.cc
  18. +++ b/src/crypto/crypto_cipher.cc
  19. @@ -28,7 +28,8 @@ using v8::Value;
  20. namespace crypto {
  21. namespace {
  22. bool IsSupportedAuthenticatedMode(const EVP_CIPHER* cipher) {
  23. - switch (EVP_CIPHER_mode(cipher)) {
  24. + const int mode = EVP_CIPHER_mode(cipher);
  25. + switch (mode) {
  26. case EVP_CIPH_CCM_MODE:
  27. case EVP_CIPH_GCM_MODE:
  28. #ifndef OPENSSL_NO_OCB
  29. @@ -1088,7 +1089,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
  30. if (EVP_PKEY_decrypt_init(ctx.get()) <= 0) {
  31. return ThrowCryptoError(env, ERR_get_error());
  32. }
  33. -
  34. +#ifndef OPENSSL_IS_BORINGSSL
  35. int rsa_pkcs1_implicit_rejection =
  36. EVP_PKEY_CTX_ctrl_str(ctx.get(), "rsa_pkcs1_implicit_rejection", "1");
  37. // From the doc -2 means that the option is not supported.
  38. @@ -1104,6 +1105,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
  39. "RSA_PKCS1_PADDING is no longer supported for private decryption,"
  40. " this can be reverted with --security-revert=CVE-2023-46809");
  41. }
  42. +#endif
  43. }
  44. const EVP_MD* digest = nullptr;
  45. diff --git a/src/crypto/crypto_common.cc b/src/crypto/crypto_common.cc
  46. index ee1c7931a5c83eec00fe05807ddb97572fe70cc9..8e297e57fdbc9fd42beb6e4a33cc91b9dd7316b8 100644
  47. --- a/src/crypto/crypto_common.cc
  48. +++ b/src/crypto/crypto_common.cc
  49. @@ -158,7 +158,7 @@ const char* GetClientHelloALPN(const SSLPointer& ssl) {
  50. const unsigned char* buf;
  51. size_t len;
  52. size_t rem;
  53. -
  54. +#ifndef OPENSSL_IS_BORINGSSL
  55. if (!SSL_client_hello_get0_ext(
  56. ssl.get(),
  57. TLSEXT_TYPE_application_layer_protocol_negotiation,
  58. @@ -171,13 +171,15 @@ const char* GetClientHelloALPN(const SSLPointer& ssl) {
  59. len = (buf[0] << 8) | buf[1];
  60. if (len + 2 != rem) return nullptr;
  61. return reinterpret_cast<const char*>(buf + 3);
  62. +#endif
  63. + return nullptr;
  64. }
  65. const char* GetClientHelloServerName(const SSLPointer& ssl) {
  66. const unsigned char* buf;
  67. size_t len;
  68. size_t rem;
  69. -
  70. +#ifndef OPENSSL_IS_BORINGSSL
  71. if (!SSL_client_hello_get0_ext(
  72. ssl.get(),
  73. TLSEXT_TYPE_server_name,
  74. @@ -199,6 +201,8 @@ const char* GetClientHelloServerName(const SSLPointer& ssl) {
  75. if (len + 2 > rem)
  76. return nullptr;
  77. return reinterpret_cast<const char*>(buf + 5);
  78. +#endif
  79. + return nullptr;
  80. }
  81. const char* GetServerName(SSL* ssl) {
  82. @@ -206,7 +210,10 @@ const char* GetServerName(SSL* ssl) {
  83. }
  84. bool SetGroups(SecureContext* sc, const char* groups) {
  85. +#ifndef OPENSSL_IS_BORINGSSL
  86. return SSL_CTX_set1_groups_list(sc->ctx().get(), groups) == 1;
  87. +#endif
  88. + return SSL_CTX_set1_curves_list(sc->ctx().get(), groups) == 1;
  89. }
  90. // When adding or removing errors below, please also update the list in the API
  91. @@ -1044,14 +1051,14 @@ MaybeLocal<Array> GetClientHelloCiphers(
  92. Environment* env,
  93. const SSLPointer& ssl) {
  94. EscapableHandleScope scope(env->isolate());
  95. - const unsigned char* buf;
  96. - size_t len = SSL_client_hello_get0_ciphers(ssl.get(), &buf);
  97. + // const unsigned char* buf = nullptr;
  98. + size_t len = 0; // SSL_client_hello_get0_ciphers(ssl.get(), &buf);
  99. size_t count = len / 2;
  100. MaybeStackBuffer<Local<Value>, 16> ciphers(count);
  101. int j = 0;
  102. for (size_t n = 0; n < len; n += 2) {
  103. - const SSL_CIPHER* cipher = SSL_CIPHER_find(ssl.get(), buf);
  104. - buf += 2;
  105. + const SSL_CIPHER* cipher = nullptr; // SSL_CIPHER_find(ssl.get(), buf);
  106. + // buf += 2;
  107. Local<Object> obj = Object::New(env->isolate());
  108. if (!Set(env->context(),
  109. obj,
  110. diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc
  111. index 6e5bbe07d0c337b36f3157c2e6404fdc91849fd1..7ec682833213de9054a8c30751436d12baaea235 100644
  112. --- a/src/crypto/crypto_context.cc
  113. +++ b/src/crypto/crypto_context.cc
  114. @@ -63,7 +63,7 @@ inline X509_STORE* GetOrCreateRootCertStore() {
  115. // Caller responsible for BIO_free_all-ing the returned object.
  116. BIOPointer LoadBIO(Environment* env, Local<Value> v) {
  117. if (v->IsString() || v->IsArrayBufferView()) {
  118. - BIOPointer bio(BIO_new(BIO_s_secmem()));
  119. + BIOPointer bio(BIO_new(BIO_s_mem()));
  120. if (!bio) return nullptr;
  121. ByteSource bsrc = ByteSource::FromStringOrBuffer(env, v);
  122. if (bsrc.size() > INT_MAX) return nullptr;
  123. @@ -861,10 +861,12 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) {
  124. // If the user specified "auto" for dhparams, the JavaScript layer will pass
  125. // true to this function instead of the original string. Any other string
  126. // value will be interpreted as custom DH parameters below.
  127. +#ifndef OPENSSL_IS_BORINGSSL
  128. if (args[0]->IsTrue()) {
  129. CHECK(SSL_CTX_set_dh_auto(sc->ctx_.get(), true));
  130. return;
  131. }
  132. +#endif
  133. DHPointer dh;
  134. {
  135. diff --git a/src/crypto/crypto_dh.cc b/src/crypto/crypto_dh.cc
  136. index b4447102a8478639a5aa774e583834d79808603f..ecf938d51ccdbfcb825d44c5ed4ea1229cb05389 100644
  137. --- a/src/crypto/crypto_dh.cc
  138. +++ b/src/crypto/crypto_dh.cc
  139. @@ -154,13 +154,11 @@ bool DiffieHellman::Init(BignumPointer&& bn_p, int g) {
  140. bool DiffieHellman::Init(const char* p, int p_len, int g) {
  141. dh_.reset(DH_new());
  142. if (p_len <= 0) {
  143. - ERR_put_error(ERR_LIB_BN, BN_F_BN_GENERATE_PRIME_EX,
  144. - BN_R_BITS_TOO_SMALL, __FILE__, __LINE__);
  145. + OPENSSL_PUT_ERROR(BN, BN_R_BITS_TOO_SMALL);
  146. return false;
  147. }
  148. if (g <= 1) {
  149. - ERR_put_error(ERR_LIB_DH, DH_F_DH_BUILTIN_GENPARAMS,
  150. - DH_R_BAD_GENERATOR, __FILE__, __LINE__);
  151. + OPENSSL_PUT_ERROR(DH, DH_R_BAD_GENERATOR);
  152. return false;
  153. }
  154. BignumPointer bn_p(
  155. @@ -176,20 +174,17 @@ bool DiffieHellman::Init(const char* p, int p_len, int g) {
  156. bool DiffieHellman::Init(const char* p, int p_len, const char* g, int g_len) {
  157. dh_.reset(DH_new());
  158. if (p_len <= 0) {
  159. - ERR_put_error(ERR_LIB_BN, BN_F_BN_GENERATE_PRIME_EX,
  160. - BN_R_BITS_TOO_SMALL, __FILE__, __LINE__);
  161. + OPENSSL_PUT_ERROR(BN, BN_R_BITS_TOO_SMALL);
  162. return false;
  163. }
  164. if (g_len <= 0) {
  165. - ERR_put_error(ERR_LIB_DH, DH_F_DH_BUILTIN_GENPARAMS,
  166. - DH_R_BAD_GENERATOR, __FILE__, __LINE__);
  167. + OPENSSL_PUT_ERROR(DH, DH_R_BAD_GENERATOR);
  168. return false;
  169. }
  170. BignumPointer bn_g(
  171. BN_bin2bn(reinterpret_cast<const unsigned char*>(g), g_len, nullptr));
  172. if (BN_is_zero(bn_g.get()) || BN_is_one(bn_g.get())) {
  173. - ERR_put_error(ERR_LIB_DH, DH_F_DH_BUILTIN_GENPARAMS,
  174. - DH_R_BAD_GENERATOR, __FILE__, __LINE__);
  175. + OPENSSL_PUT_ERROR(DH, DH_R_BAD_GENERATOR);
  176. return false;
  177. }
  178. BignumPointer bn_p(
  179. @@ -219,8 +214,10 @@ typedef BignumPointer (*StandardizedGroupInstantiator)();
  180. inline StandardizedGroupInstantiator FindDiffieHellmanGroup(const char* name) {
  181. #define V(n, p) \
  182. if (StringEqualNoCase(name, n)) return InstantiateStandardizedGroup<p>
  183. +#ifndef OPENSSL_IS_BORINGSSL
  184. V("modp1", BN_get_rfc2409_prime_768);
  185. V("modp2", BN_get_rfc2409_prime_1024);
  186. +#endif
  187. V("modp5", BN_get_rfc3526_prime_1536);
  188. V("modp14", BN_get_rfc3526_prime_2048);
  189. V("modp15", BN_get_rfc3526_prime_3072);
  190. @@ -559,15 +556,21 @@ EVPKeyCtxPointer DhKeyGenTraits::Setup(DhKeyPairGenConfig* params) {
  191. return EVPKeyCtxPointer();
  192. }
  193. +#ifndef OPENSSL_IS_BORINGSSL
  194. prime_fixed_value->release();
  195. bn_g.release();
  196. key_params = EVPKeyPointer(EVP_PKEY_new());
  197. CHECK(key_params);
  198. CHECK_EQ(EVP_PKEY_assign_DH(key_params.get(), dh.release()), 1);
  199. - } else if (int* prime_size = std::get_if<int>(&params->params.prime)) {
  200. +#else
  201. + return EVPKeyCtxPointer();
  202. +#endif
  203. + } else if (std::get_if<int>(&params->params.prime)) {
  204. EVPKeyCtxPointer param_ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_DH, nullptr));
  205. EVP_PKEY* raw_params = nullptr;
  206. +#ifndef OPENSSL_IS_BORINGSSL
  207. + int* prime_size = std::get_if<int>(&params->params.prime);
  208. if (!param_ctx ||
  209. EVP_PKEY_paramgen_init(param_ctx.get()) <= 0 ||
  210. EVP_PKEY_CTX_set_dh_paramgen_prime_len(
  211. @@ -581,6 +584,9 @@ EVPKeyCtxPointer DhKeyGenTraits::Setup(DhKeyPairGenConfig* params) {
  212. }
  213. key_params = EVPKeyPointer(raw_params);
  214. +#else
  215. + return EVPKeyCtxPointer();
  216. +#endif
  217. } else {
  218. UNREACHABLE();
  219. }
  220. diff --git a/src/crypto/crypto_dsa.cc b/src/crypto/crypto_dsa.cc
  221. index 3fa4a415dc911a13afd90dfb31c1ed4ad0fd268f..fa48dffc31342c44a1c1207b9d4c3dc72ed93b60 100644
  222. --- a/src/crypto/crypto_dsa.cc
  223. +++ b/src/crypto/crypto_dsa.cc
  224. @@ -40,7 +40,7 @@ namespace crypto {
  225. EVPKeyCtxPointer DsaKeyGenTraits::Setup(DsaKeyPairGenConfig* params) {
  226. EVPKeyCtxPointer param_ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_DSA, nullptr));
  227. EVP_PKEY* raw_params = nullptr;
  228. -
  229. +#ifndef OPENSSL_IS_BORINGSSL
  230. if (!param_ctx ||
  231. EVP_PKEY_paramgen_init(param_ctx.get()) <= 0 ||
  232. EVP_PKEY_CTX_set_dsa_paramgen_bits(
  233. @@ -55,7 +55,9 @@ EVPKeyCtxPointer DsaKeyGenTraits::Setup(DsaKeyPairGenConfig* params) {
  234. return EVPKeyCtxPointer();
  235. }
  236. }
  237. -
  238. +#else
  239. + return EVPKeyCtxPointer();
  240. +#endif
  241. if (EVP_PKEY_paramgen(param_ctx.get(), &raw_params) <= 0)
  242. return EVPKeyCtxPointer();
  243. diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc
  244. index c5dd2fb8fce40f2bf6f9a8543047ffb50cc08084..d850af9257cc194ee385130ce3cd2c0101b2455f 100644
  245. --- a/src/crypto/crypto_keys.cc
  246. +++ b/src/crypto/crypto_keys.cc
  247. @@ -1241,6 +1241,7 @@ void KeyObjectHandle::GetAsymmetricKeyType(
  248. }
  249. bool KeyObjectHandle::CheckEcKeyData() const {
  250. +#ifndef OPENSSL_IS_BORINGSSL
  251. MarkPopErrorOnReturn mark_pop_error_on_return;
  252. const ManagedEVPPKey& key = data_->GetAsymmetricKey();
  253. @@ -1259,6 +1260,9 @@ bool KeyObjectHandle::CheckEcKeyData() const {
  254. #else
  255. return EVP_PKEY_public_check(ctx.get()) == 1;
  256. #endif
  257. +#else
  258. + return true;
  259. +#endif
  260. }
  261. void KeyObjectHandle::CheckEcKeyData(const FunctionCallbackInfo<Value>& args) {
  262. diff --git a/src/crypto/crypto_random.cc b/src/crypto/crypto_random.cc
  263. index 48154df7dc91ed7c0d65323199bc2f59dfc68135..6431e5c3062890975854780d15ecb84370b81770 100644
  264. --- a/src/crypto/crypto_random.cc
  265. +++ b/src/crypto/crypto_random.cc
  266. @@ -140,7 +140,7 @@ Maybe<bool> RandomPrimeTraits::AdditionalConfig(
  267. params->bits = bits;
  268. params->safe = safe;
  269. - params->prime.reset(BN_secure_new());
  270. + params->prime.reset(BN_new());
  271. if (!params->prime) {
  272. THROW_ERR_CRYPTO_OPERATION_FAILED(env, "could not generate prime");
  273. return Nothing<bool>();
  274. diff --git a/src/crypto/crypto_rsa.cc b/src/crypto/crypto_rsa.cc
  275. index f222ab9cf5ccbc5dd3399b18d7688efda6672c93..349abd4d06e7f624a071b994271dedc31dc9229a 100644
  276. --- a/src/crypto/crypto_rsa.cc
  277. +++ b/src/crypto/crypto_rsa.cc
  278. @@ -616,10 +616,11 @@ Maybe<bool> GetRsaKeyDetail(
  279. }
  280. if (params->saltLength != nullptr) {
  281. - if (ASN1_INTEGER_get_int64(&salt_length, params->saltLength) != 1) {
  282. - ThrowCryptoError(env, ERR_get_error(), "ASN1_INTEGER_get_in64 error");
  283. - return Nothing<bool>();
  284. - }
  285. + // TODO(codebytere): Upstream a shim to BoringSSL?
  286. + // if (ASN1_INTEGER_get_int64(&salt_length, params->saltLength) != 1) {
  287. + // ThrowCryptoError(env, ERR_get_error(), "ASN1_INTEGER_get_in64 error");
  288. + // return Nothing<bool>();
  289. + // }
  290. }
  291. if (target
  292. diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc
  293. index 5734d8fdc5505e1586f571c19b840bd56e9c9f1f..3034b114e081e2b32dd5b71653927a41af7d48df 100644
  294. --- a/src/crypto/crypto_util.cc
  295. +++ b/src/crypto/crypto_util.cc
  296. @@ -517,24 +517,15 @@ Maybe<bool> Decorate(Environment* env, Local<Object> obj,
  297. V(BIO) \
  298. V(PKCS7) \
  299. V(X509V3) \
  300. - V(PKCS12) \
  301. V(RAND) \
  302. - V(DSO) \
  303. V(ENGINE) \
  304. V(OCSP) \
  305. V(UI) \
  306. V(COMP) \
  307. V(ECDSA) \
  308. V(ECDH) \
  309. - V(OSSL_STORE) \
  310. - V(FIPS) \
  311. - V(CMS) \
  312. - V(TS) \
  313. V(HMAC) \
  314. - V(CT) \
  315. - V(ASYNC) \
  316. - V(KDF) \
  317. - V(SM2) \
  318. + V(HKDF) \
  319. V(USER) \
  320. #define V(name) case ERR_LIB_##name: lib = #name "_"; break;
  321. @@ -715,7 +706,7 @@ void SecureBuffer(const FunctionCallbackInfo<Value>& args) {
  322. CHECK(args[0]->IsUint32());
  323. Environment* env = Environment::GetCurrent(args);
  324. uint32_t len = args[0].As<Uint32>()->Value();
  325. - void* data = OPENSSL_secure_zalloc(len);
  326. + void* data = OPENSSL_malloc(len);
  327. if (data == nullptr) {
  328. // There's no memory available for the allocation.
  329. // Return nothing.
  330. @@ -726,7 +717,7 @@ void SecureBuffer(const FunctionCallbackInfo<Value>& args) {
  331. data,
  332. len,
  333. [](void* data, size_t len, void* deleter_data) {
  334. - OPENSSL_secure_clear_free(data, len);
  335. + OPENSSL_clear_free(data, len);
  336. },
  337. data);
  338. Local<ArrayBuffer> buffer = ArrayBuffer::New(env->isolate(), store);
  339. @@ -734,10 +725,12 @@ void SecureBuffer(const FunctionCallbackInfo<Value>& args) {
  340. }
  341. void SecureHeapUsed(const FunctionCallbackInfo<Value>& args) {
  342. +#ifndef OPENSSL_IS_BORINGSSL
  343. Environment* env = Environment::GetCurrent(args);
  344. if (CRYPTO_secure_malloc_initialized())
  345. args.GetReturnValue().Set(
  346. BigInt::New(env->isolate(), CRYPTO_secure_used()));
  347. +#endif
  348. }
  349. } // namespace
  350. diff --git a/src/env.h b/src/env.h
  351. index 3b3724d6c7156b87555be31470e75b1cf28b5e3f..910c69b6d1d17ef25201dbb39d3d074f4f3f011f 100644
  352. --- a/src/env.h
  353. +++ b/src/env.h
  354. @@ -49,7 +49,7 @@
  355. #include "uv.h"
  356. #include "v8.h"
  357. -#if HAVE_OPENSSL
  358. +#if HAVE_OPENSSL && OPENSSL_VERSION_MAJOR >= 3
  359. #include <openssl/evp.h>
  360. #endif
  361. @@ -1036,7 +1036,7 @@ class Environment : public MemoryRetainer {
  362. kExitInfoFieldCount
  363. };
  364. -#if HAVE_OPENSSL
  365. +#if HAVE_OPENSSL// && !defined(OPENSSL_IS_BORINGSSL)
  366. #if OPENSSL_VERSION_MAJOR >= 3
  367. // We declare another alias here to avoid having to include crypto_util.h
  368. using EVPMDPointer = DeleteFnPtr<EVP_MD, EVP_MD_free>;
  369. diff --git a/src/node_metadata.cc b/src/node_metadata.cc
  370. index 844c5ac2c2b948b3be35cb3e447717a510a463a6..72a75ee0bf391ea508441f49413f85c5b735b259 100644
  371. --- a/src/node_metadata.cc
  372. +++ b/src/node_metadata.cc
  373. @@ -21,7 +21,7 @@
  374. #include <zlib.h>
  375. #endif // NODE_BUNDLED_ZLIB
  376. -#if HAVE_OPENSSL
  377. +#if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
  378. #include <openssl/opensslv.h>
  379. #if NODE_OPENSSL_HAS_QUIC
  380. #include <openssl/quic.h>
  381. diff --git a/src/node_metadata.h b/src/node_metadata.h
  382. index cf051585e779e2b03bd7b95fe5008b89cc7f8162..9de49c6828468fdf846dcd4ad445390f14446099 100644
  383. --- a/src/node_metadata.h
  384. +++ b/src/node_metadata.h
  385. @@ -6,7 +6,7 @@
  386. #include <string>
  387. #include "node_version.h"
  388. -#if HAVE_OPENSSL
  389. +#if 0
  390. #include <openssl/crypto.h>
  391. #if NODE_OPENSSL_HAS_QUIC
  392. #include <openssl/quic.h>
  393. diff --git a/src/node_options.cc b/src/node_options.cc
  394. index 7110b4d984b72fa8c9bef2cbe6e37b1871e14d08..753311e15f161547be4277016efe11cc57d351db 100644
  395. --- a/src/node_options.cc
  396. +++ b/src/node_options.cc
  397. @@ -6,7 +6,7 @@
  398. #include "node_external_reference.h"
  399. #include "node_internals.h"
  400. #include "node_sea.h"
  401. -#if HAVE_OPENSSL
  402. +#if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
  403. #include "openssl/opensslv.h"
  404. #endif
  405. diff --git a/src/node_options.h b/src/node_options.h
  406. index 3c67c3680b045786dafb8435f5b311c3f386a943..546c3979e2c8d7498aa92df4c89ee867c6485080 100644
  407. --- a/src/node_options.h
  408. +++ b/src/node_options.h
  409. @@ -11,7 +11,7 @@
  410. #include "node_mutex.h"
  411. #include "util.h"
  412. -#if HAVE_OPENSSL
  413. +#if 0
  414. #include "openssl/opensslv.h"
  415. #endif