From: W.C.A. Wijngaards Date: Thu, 28 Aug 2025 12:19:52 +0000 (+0200) Subject: - Fix setup_listen_sslctx warning for nettle compile. X-Git-Tag: release-1.24.0rc1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74bc8c9e7706611a049465c478462b000c3bcd67;p=thirdparty%2Funbound.git - Fix setup_listen_sslctx warning for nettle compile. --- diff --git a/daemon/unbound.c b/daemon/unbound.c index aa7cfc8e8..164d0fb89 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -463,11 +463,11 @@ detach(void) #endif /* HAVE_DAEMON */ } +#ifdef HAVE_SSL /* setup a listening ssl context, fatal_exit() on any failure */ static void setup_listen_sslctx(void** ctx, int is_dot, int is_doh, struct config_file* cfg) { -#ifdef HAVE_SSL if(!(*ctx = listen_sslctx_create( cfg->ssl_service_key, cfg->ssl_service_pem, NULL, cfg->tls_ciphers, cfg->tls_ciphersuites, @@ -476,10 +476,8 @@ setup_listen_sslctx(void** ctx, int is_dot, int is_doh, struct config_file* cfg) is_dot, is_doh))) { fatal_exit("could not set up listen SSL_CTX"); } -#else /* HAVE_SSL */ - (void)ctx;(void)is_dot;(void)is_doh;(void)cfg; -#endif /* HAVE_SSL */ } +#endif /* HAVE_SSL */ /* setups the needed ssl contexts, fatal_exit() on any failure */ static void diff --git a/doc/Changelog b/doc/Changelog index 607540dff..dc0c0d0be 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +28 August 2025: Wouter + - Fix setup_listen_sslctx warning for nettle compile. + 27 August 2025: Wouter - Fix unbound-control dump_cache for double unlock of lruhash table.