Skip to content

Commit ac4548f

Browse files
committed
fixup! crypto: discover hashes from OpenSSL providers
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
1 parent 7011e8c commit ac4548f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/crypto/crypto_hash.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ const EVP_MD* GetDigestImplementation(
316316

317317
#if NCRYPTO_USE_OPENSSL3_PROVIDER
318318
Local<Object> cache = algorithm_cache.As<Object>();
319-
const bool cache_invalidated = SynchronizeHashCache(env, cache);
320319
int32_t cache_id = cache_id_val.As<Int32>()->Value();
321-
if (!cache_invalidated && cache_id != -1) {
320+
if (cache_id != -1) {
322321
// Alias already cached, return the cached EVP_MD*.
323322
if (const EVP_MD* md = GetCachedMDByID(env, cache_id, cache)) return md;
324323
}

0 commit comments

Comments
 (0)