diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-10-15 22:15:54 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 22:15:54 +0600 |
commit | 9dd4a6651a1b8753cf40bafb40d6903dd4c862ba (patch) | |
tree | a75f8743480835051db9898c58cea78d6b04f25f | |
parent | 7cb20cfe3f45fb0915933bb1b2673003404b9483 (diff) | |
parent | 62c20506db68d36857c1d020de6a8fef7dfee5a4 (diff) | |
download | rspamd-9dd4a6651a1b8753cf40bafb40d6903dd4c862ba.tar.gz rspamd-9dd4a6651a1b8753cf40bafb40d6903dd4c862ba.zip |
Merge pull request #5190 from rspamd/vstakhov-some-build-fixes
Some more fixes
-rw-r--r-- | src/libserver/ssl_util.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libserver/ssl_util.c b/src/libserver/ssl_util.c index b97e2a498..c0443ecd9 100644 --- a/src/libserver/ssl_util.c +++ b/src/libserver/ssl_util.c @@ -1079,7 +1079,14 @@ void rspamd_openssl_maybe_init(void) OPENSSL_init_ssl(0, NULL); #endif #if defined(RSPAMD_LEGACY_SSL_PROVIDER) && OPENSSL_VERSION_NUMBER >= 0x30000000L - (void) OSSL_PROVIDER_load(NULL, "legacy"); + if (OSSL_PROVIDER_load(NULL, "legacy") == NULL) { + msg_err("cannot load legacy OpenSSL provider: %s", ERR_lib_error_string(ERR_get_error())); + ERR_clear_error(); + } + if (OSSL_PROVIDER_load(NULL, "default") == NULL) { + msg_err("cannot load default OpenSSL provider: %s", ERR_lib_error_string(ERR_get_error())); + ERR_clear_error(); + } #endif #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |