Skip to content

Commit 91bf540

Browse files
npaunanonrig
authored andcommitted
link against libdecrepit for EVP_CIPHER_do_all_sorted
1 parent 36e4d92 commit 91bf540

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ cc_library(
55
includes = ["include"],
66
visibility = ["//visibility:public"],
77
deps = [
8-
"@ssl"
8+
"@ssl//:ssl",
9+
"@ssl//:crypto",
10+
"@ssl//:decrepit"
911
]
1012
)

WORKSPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ http_archive(
88
strip_prefix = "boringssl-0.20250818.0",
99
type = "tgz",
1010
urls = ["https://github.com/google/boringssl/archive/refs/tags/0.20250818.0.tar.gz"],
11+
patches = [
12+
"@ncrypto//:patches/0001-Expose-libdecrepit-so-NodeJS-can-use-it-for-ncrypto.patch"
13+
],
14+
patch_strip = 1
1115
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From feda75fa93bb54bc697f1f771a0aec573ab87ab7 Mon Sep 17 00:00:00 2001
2+
From: Nicholas Paun <[email protected]>
3+
Date: Fri, 26 Sep 2025 14:57:57 -0700
4+
Subject: [PATCH] Expose libdecrepit so NodeJS can use it for ncrypto
5+
6+
---
7+
BUILD.bazel | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/BUILD.bazel b/BUILD.bazel
11+
index b7dc35932..7d214716c 100644
12+
--- a/BUILD.bazel
13+
+++ b/BUILD.bazel
14+
@@ -155,10 +155,10 @@ bssl_cc_binary(
15+
],
16+
)
17+
18+
-# Build, but do not export libdecrepit.
19+
bssl_cc_library(
20+
name = "decrepit",
21+
srcs = decrepit_sources,
22+
+ visibility = ["//visibility:public"],
23+
copts = ["-DBORINGSSL_IMPLEMENTATION"],
24+
internal_hdrs = decrepit_internal_headers,
25+
deps = [
26+
--
27+
2.50.1 (Apple Git-155)
28+

0 commit comments

Comments
 (0)