Skip to content

Commit 8f0816d

Browse files
committed
build: use variable for crypto dep path
nodejs/node#55928
1 parent 3799f9d commit 8f0816d

1 file changed

Lines changed: 7 additions & 19 deletions

File tree

patches/node/fix_handle_boringssl_and_openssl_incompatibilities.patch

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,31 +133,19 @@ index 20b69dc67b13fd4f0bd44f7adf6a0d928a2c10c4..2320f92c50543fb9b426bce1c6d182bd
133133
CHECK_FAILED = 512,
134134
};
135135
// Check to see if the given public key is suitable for this DH instance.
136-
diff --git a/deps/ncrypto/unofficial.gni b/deps/ncrypto/unofficial.gni
137-
index ea024af73e215b3cad5f08796ac405f419530c86..41061b524eea74330b8d2452635a38c48f21386b 100644
138-
--- a/deps/ncrypto/unofficial.gni
139-
+++ b/deps/ncrypto/unofficial.gni
140-
@@ -27,6 +27,6 @@ template("ncrypto_gn_build") {
141-
forward_variables_from(invoker, "*")
142-
public_configs = [ ":ncrypto_config" ]
143-
sources = gypi_values.ncrypto_sources
144-
- deps = [ "../openssl" ]
145-
+ deps = [ "$node_crypto_path" ]
146-
}
147-
}
148136
diff --git a/node.gni b/node.gni
149-
index 852f64fa9cfb50fe6e9ce7aa46be336d3196d5b8..461bff93e151c454cd0a9575daa01d3f7c0ec9c3 100644
137+
index 245a43920c7baf000ba63192a84a4c3fd219be7d..56a554175b805c1703f13d62041f8c80d6e94dd9 100644
150138
--- a/node.gni
151139
+++ b/node.gni
152-
@@ -10,6 +10,8 @@ declare_args() {
153-
# The location of V8, use the one from node's deps by default.
140+
@@ -11,7 +11,7 @@ declare_args() {
154141
node_v8_path = "//v8"
155142

156-
+ node_crypto_path = "//third_party/boringssl"
157-
+
158-
# The NODE_MODULE_VERSION defined in node_version.h.
159-
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
143+
# The location of OpenSSL - use the one from node's deps by default.
144+
- node_openssl_path = "$node_path/deps/openssl"
145+
+ node_openssl_path = "//third_party/boringssl"
160146

147+
# The location of simdutf - use the one from node's deps by default.
148+
node_simdutf_path = "$node_path/deps/simdutf"
161149
diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc
162150
index a81ab8e95f2fc23e1e315fb9c69364934377a0c1..dbe12ba2413ef29ff06a7e8abde50000eaf277e2 100644
163151
--- a/src/crypto/crypto_cipher.cc

0 commit comments

Comments
 (0)