From 74bc8c9e7706611a049465c478462b000c3bcd67 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 28 Aug 2025 14:19:52 +0200 Subject: [PATCH] - Fix setup_listen_sslctx warning for nettle compile. --- daemon/unbound.c | 6 ++---- doc/Changelog | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) 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. -- 2.47.3