@@ -186,19 +186,6 @@ index 271db427fa8539feb30c1712574976fb1f623e91..b2b6af1f9e6db54bdff0be7a567255f4
186186 if (EVP_PKEY_paramgen(param_ctx.get(), &raw_params) <= 0)
187187 return EVPKeyCtxPointer();
188188
189- diff --git a/src/crypto/crypto_ec.cc b/src/crypto/crypto_ec.cc
190- index ea4c70ad5d8c844860ba3480fc7ef4205f0a3cdc..cdf8dd47d6e2a5894066cec01fbe347af079ec22 100644
191- --- a/src/crypto/crypto_ec.cc
192- +++ b/src/crypto/crypto_ec.cc
193- @@ -314,7 +314,7 @@ void ECDH::SetPrivateKey(const FunctionCallbackInfo<Value>& args) {
194- return THROW_ERR_CRYPTO_OPERATION_FAILED(env,
195- "Failed to set generated public key");
196-
197- - EC_KEY_copy(ecdh->key_.get(), new_key.get());
198- + ecdh->key_.reset(EC_KEY_dup(new_key.get()));
199- ecdh->group_ = EC_KEY_get0_group(ecdh->key_.get());
200- }
201-
202189diff --git a/src/crypto/crypto_hkdf.cc b/src/crypto/crypto_hkdf.cc
203190index 0aa96ada47abe4b66fb616c665101278bbe0afb6..1e9a4863c5faea5f6b275483ca16f3a6e8dac25b 100644
204191--- a/src/crypto/crypto_hkdf.cc
@@ -251,22 +238,6 @@ diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc
251238index 13c40dcb757661220288465c39101de0b4018e90..7d1d4400319292a8ddf3afe013b5678f84c25576 100644
252239--- a/src/crypto/crypto_util.cc
253240+++ b/src/crypto/crypto_util.cc
254- @@ -139,7 +139,6 @@ void InitCryptoOnce() {
255- OPENSSL_init_ssl(0, settings);
256- OPENSSL_INIT_free(settings);
257- settings = nullptr;
258- - #endif
259-
260- #ifndef _WIN32
261- if (per_process::cli_options->secure_heap != 0) {
262- @@ -160,6 +159,7 @@ void InitCryptoOnce() {
263- }
264- #endif
265-
266- + #endif
267- // Turn off compression. Saves memory and protects against CRIME attacks.
268- // No-op with OPENSSL_NO_COMP builds of OpenSSL.
269- sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());
270241@@ -490,24 +490,14 @@ Maybe<bool> Decorate(Environment* env, Local<Object> obj,
271242 V(BIO) \
272243 V(PKCS7) \
@@ -337,19 +308,6 @@ index ac95612a0b1a856d7fe07efde59786e811f1b98d..aa62753d7c929027f5265fa4330b0429
337308 #include <openssl/rsa.h>
338309 #include <openssl/dsa.h>
339310 #include <openssl/ssl.h>
340- diff --git a/src/node.cc b/src/node.cc
341- index c9d491f01651ef57fb793dda108469cb7ddccc5c..6a55535b5c6ef72b1cdb366299840a2e78643911 100644
342- --- a/src/node.cc
343- +++ b/src/node.cc
344- @@ -1035,7 +1035,7 @@ InitializationResult InitializeOncePerProcess(
345- }
346-
347- if (init_flags & kInitOpenSSL) {
348- - #if HAVE_OPENSSL
349- + #if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
350- {
351- std::string extra_ca_certs;
352- if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs))
353311diff --git a/src/node_metadata.h b/src/node_metadata.h
354312index 4486d5af2c1622c7c8f44401dc3ebb986d8e3c2e..db1769f1b3f1617ed8dbbea57b5e324183b42be2 100644
355313--- a/src/node_metadata.h
0 commit comments