Skip to content

Commit

Permalink
Replaced missing var with currently used validation (margelo#253)
Browse files Browse the repository at this point in the history
Co-authored-by: André Salla <[email protected]>
  • Loading branch information
salla-andre and André Salla committed Apr 19, 2024
1 parent 3f9b223 commit 0b6c14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/Cipher/MGLCipherHostObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ bool MGLCipherHostObject::InitAuthenticated(const char *cipher_type, int iv_len,
#if OPENSSL_VERSION_MAJOR >= 3
// TODO: not sure where kind_ comes from in next line, but as we bump
// OpenSSL version we will need to look at Node.js code and figure it out.
if (mode == EVP_CIPH_CCM_MODE && kind_ == kDecipher &&
if (mode == EVP_CIPH_CCM_MODE && !isCipher_ &&
EVP_default_properties_is_fips_enabled(nullptr)) {
#else
if (mode == EVP_CIPH_CCM_MODE && !isCipher_ && FIPS_mode()) {
Expand Down

0 comments on commit 0b6c14d

Please sign in to comment.