aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/bun.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-25 15:15:10 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-25 15:15:10 -0800
commitf58728ccc7204db855fcbf7eddc874914edd7b7f (patch)
treea24771c8be5fe90d76a22f4f57222a2868ba2b6b /src/bun.js/api/bun.zig
parenteb94e5b990577e752f6f07aa7014f985c9dcce91 (diff)
downloadbun-f58728ccc7204db855fcbf7eddc874914edd7b7f.tar.gz
bun-f58728ccc7204db855fcbf7eddc874914edd7b7f.tar.zst
bun-f58728ccc7204db855fcbf7eddc874914edd7b7f.zip
Call BoringSSL.load() in more places
Diffstat (limited to 'src/bun.js/api/bun.zig')
-rw-r--r--src/bun.js/api/bun.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/api/bun.zig b/src/bun.js/api/bun.zig
index fd91ef897..5e92a470d 100644
--- a/src/bun.js/api/bun.zig
+++ b/src/bun.js/api/bun.zig
@@ -1497,6 +1497,8 @@ pub const Crypto = struct {
pub const Digest = [BoringSSL.EVP_MAX_MD_SIZE]u8;
pub fn init(algorithm: Algorithm, md: *const BoringSSL.EVP_MD, engine: *BoringSSL.ENGINE) EVP {
+ BoringSSL.load();
+
var ctx: BoringSSL.EVP_MD_CTX = undefined;
BoringSSL.EVP_MD_CTX_init(&ctx);
_ = BoringSSL.EVP_DigestInit_ex(&ctx, md, engine);