]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to deal with some deprecations
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 15 Sep 2022 21:50:49 +0000 (22:50 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 15 Sep 2022 22:05:46 +0000 (23:05 +0100)
src/libserver/cfg_utils.c
src/libserver/ssl_util.c
src/rspamadm/signtool.c

index 5943ffdee1bf73d2e4f5a6be24dc25af48a995a1..f3d5e391dcc11afb1710d8cc9571b2a6c731a3bc 100644 (file)
@@ -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
        }
index d82d944b3c1effd34a62fc729f8e719bac399190..8ffd9fde54655d10b20fa2c26e8d25c8e05c4d43 100644 (file)
@@ -1071,7 +1071,7 @@ rspamd_openssl_maybe_init (void)
                OpenSSL_add_all_digests ();
                OpenSSL_add_all_ciphers ();
 
-#if OPENSSL_VERSION_NUMBER >= 0x1000104fL && !defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER >= 0x1000104fL && OPENSSL_VERSION_NUMBER < 0x30000000L && !defined(LIBRESSL_VERSION_NUMBER)
                ENGINE_load_builtin_engines ();
 #endif
 #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
index 678ee42a603eedcec09ce504ac87942958af0831..b28c36c8ce072c6aab71f72cb32e436e7229f8e0 100644 (file)
@@ -221,7 +221,11 @@ rspamadm_edit_file (const gchar *fname)
        }
 
 #if GLIB_MAJOR_VERSION >= 2 && GLIB_MINOR_VERSION >= 34
+#  if GLIB_MINOR_VERSION >= 70
+       if (!g_spawn_check_wait_status (retcode, &err)) {
+#  else
        if (!g_spawn_check_exit_status (retcode, &err)) {
+#  endif
                unlink (tmppath);
                rspamd_fprintf (stderr, "%s returned error code: %d - %e\n", editor,
                                retcode, err);