aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-09-15 22:50:49 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-09-15 23:05:46 +0100
commit4bc2d652db7130ace5f7a44fda0f42ca8bef4bae (patch)
tree0c70f346ea739ca06c8b02840c023c4c42156d7c /src/libserver/cfg_utils.c
parentfa4db7ea926595b0539f5c45c49250e7c6236c6a (diff)
downloadrspamd-4bc2d652db7130ace5f7a44fda0f42ca8bef4bae.tar.gz
rspamd-4bc2d652db7130ace5f7a44fda0f42ca8bef4bae.zip
[Minor] Try to deal with some deprecations
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 5943ffdee..f3d5e391d 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -2641,7 +2641,7 @@ rspamd_init_libs (void)
if ((ctx->crypto_ctx->cpu_config & CPUID_RDRAND) == 0) {
ottery_config_disable_entropy_sources (ottery_cfg,
OTTERY_ENTROPY_SRC_RDRAND);
-#if OPENSSL_VERSION_NUMBER >= 0x1000104fL && !defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER >= 0x1000104fL && OPENSSL_VERSION_NUMBER < 0x30000000L && !defined(LIBRESSL_VERSION_NUMBER)
RAND_set_rand_engine (NULL);
#endif
}