]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix setup_listen_sslctx warning for nettle compile.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Aug 2025 12:19:52 +0000 (14:19 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Aug 2025 12:19:52 +0000 (14:19 +0200)
daemon/unbound.c
doc/Changelog

index aa7cfc8e80b993efd4a19bd381e28cca16591de3..164d0fb8950984a5fbc6e919d22b93615d57217d 100644 (file)
@@ -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
index 607540dff00e9b016e41b072dadebec2ee99d933..dc0c0d0be673f880956c4dc31a81b5c306557821 100644 (file)
@@ -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.