From c0eaa5fe00f04eb3d0acb2309b4464186e8c8f69 Mon Sep 17 00:00:00 2001 From: Peter Marko Date: Tue, 19 Apr 2022 12:36:00 +0200 Subject: [PATCH] fix(openssl-initializer): check legacy provider existence for legacy exception --- Crypto/src/OpenSSLInitializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp index 3cdeb1470a..b32cd3be8a 100644 --- a/Crypto/src/OpenSSLInitializer.cpp +++ b/Crypto/src/OpenSSLInitializer.cpp @@ -137,7 +137,7 @@ void OpenSSLInitializer::initialize() if (!_legacyProvider) { _legacyProvider = OSSL_PROVIDER_load(NULL, "legacy"); - if (!_defaultProvider) throw CryptoException("Failed to load OpenSSL legacy provider"); + if (!_legacyProvider) throw CryptoException("Failed to load OpenSSL legacy provider"); } #endif }