]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Do not call legacy API in modern OpenSSL
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Oct 2018 16:43:49 +0000 (17:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Oct 2018 16:44:32 +0000 (17:44 +0100)
Issue: #2587
Closes: #2587
src/libcryptobox/cryptobox.c

index 99c91e3dd33d7237a58d2606b72fb43026754641..d8f5459d38f174a6e87ae00e7eafc6151deabeb4 100644 (file)
@@ -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 ();