- Fix compilation without openssl, remove unused function warning.

This commit is contained in:
W.C.A. Wijngaards 2023-11-01 17:09:37 +01:00
parent 5f78f67e39
commit c4d17dd231
2 changed files with 3 additions and 7 deletions

View file

@ -6,6 +6,7 @@
- Fix SSL compile failure for definition in log_crypto_err_io_code_arg. - Fix SSL compile failure for definition in log_crypto_err_io_code_arg.
- Fix SSL compile failure for other missing definitions in - Fix SSL compile failure for other missing definitions in
log_crypto_err_io_code_arg. log_crypto_err_io_code_arg.
- Fix compilation without openssl, remove unused function warning.
31 October 2023: George 31 October 2023: George
- Fix #941: dnscrypt doesn't work after upgrade to 1.18 with - Fix #941: dnscrypt doesn't work after upgrade to 1.18 with

View file

@ -952,11 +952,11 @@ void log_crypto_err_code(const char* str, unsigned long err)
#endif /* HAVE_SSL */ #endif /* HAVE_SSL */
} }
#ifdef HAVE_SSL
/** Print crypt erro with SSL_get_error want code and err_get_error code */ /** 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, static void log_crypto_err_io_code_arg(const char* str, int r,
unsigned long err, int err_present) unsigned long err, int err_present)
{ {
#ifdef HAVE_SSL
int print_errno = 0, print_crypto_err = 0; int print_errno = 0, print_crypto_err = 0;
const char* inf = NULL; 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); 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) void log_crypto_err_io(const char* str, int r)
{ {