Skip to content

Commit f41e5d1

Browse files
committed
fix(NODE-5875): check for mongocrypt_is_crypto_available
1 parent 8376c53 commit f41e5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/mongocrypt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info)
472472
}
473473
}
474474

475-
if (options.Has("cryptoCallbacks")) {
475+
if (!mongocrypt_is_crypto_available() && options.Has("cryptoCallbacks")) {
476476
Object cryptoCallbacks = options.Get("cryptoCallbacks").ToObject();
477477

478478
SetCallback("aes256CbcEncryptHook", cryptoCallbacks["aes256CbcEncryptHook"]);

0 commit comments

Comments
 (0)