aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 17:43:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 17:44:32 +0100
commit7444a19c5d7c9f09efd2b4f29a2299f92015b458 (patch)
treed26132c8535a7f330b2fe9181580dc713e40b601 /src/libcryptobox
parent9f82eb1e291a4382ea82d296c6c6348749fbbc8a (diff)
downloadrspamd-7444a19c5d7c9f09efd2b4f29a2299f92015b458.tar.gz
rspamd-7444a19c5d7c9f09efd2b4f29a2299f92015b458.zip
[Minor] Do not call legacy API in modern OpenSSL
Issue: #2587 Closes: #2587
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/cryptobox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 99c91e3dd..d8f5459d3 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -374,7 +374,8 @@ rspamd_cryptobox_init (void)
ctx->blake2_impl = blake2b_load ();
ctx->ed25519_impl = ed25519_load ();
ctx->base64_impl = base64_load ();
-#ifdef HAVE_USABLE_OPENSSL
+#if defined(HAVE_USABLE_OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
+ /* Needed for old openssl api, not sure about LibreSSL */
ERR_load_EC_strings ();
ERR_load_RAND_strings ();
ERR_load_EVP_strings ();