]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compilation without openssl, remove unused function warning.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 Nov 2023 16:09:37 +0000 (17:09 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 Nov 2023 16:09:37 +0000 (17:09 +0100)
doc/Changelog
util/net_help.c

index 9a3c093a9ce0e8d4f7211ffdfd8ee89f9728d0fe..141f59b13ce4ae34721070e0aedca4a4d5f43e9f 100644 (file)
@@ -6,6 +6,7 @@
        - Fix SSL compile failure for definition in log_crypto_err_io_code_arg.
        - Fix SSL compile failure for other missing definitions in
          log_crypto_err_io_code_arg.
+       - Fix compilation without openssl, remove unused function warning.
 
 31 October 2023: George
        - Fix #941: dnscrypt doesn't work after upgrade to 1.18 with
index e5b485c1c7863ea6be4031726c47abe1ff2fd8fb..8970247926d75be28e8aa7988e45177509231d58 100644 (file)
@@ -952,11 +952,11 @@ void log_crypto_err_code(const char* str, unsigned long err)
 #endif /* HAVE_SSL */
 }
 
+#ifdef HAVE_SSL
 /** Print crypt erro with SSL_get_error want code and err_get_error code */
 static void log_crypto_err_io_code_arg(const char* str, int r,
        unsigned long err, int err_present)
 {
-#ifdef HAVE_SSL
        int print_errno = 0, print_crypto_err = 0;
        const char* inf = NULL;
 
@@ -1033,13 +1033,8 @@ static void log_crypto_err_io_code_arg(const char* str, int r,
                        log_err("str: %s", inf);
                }
        }
-#else
-       (void)str;
-       (void)r;
-       (void)err;
-       (void)err_present;
-#endif /* HAVE_SSL */
 }
+#endif /* HAVE_SSL */
 
 void log_crypto_err_io(const char* str, int r)
 {