From: Andrew Aitchison Date: Mon, 13 Mar 2023 15:59:23 +0000 (+0000) Subject: Compiler quietening. Bug 2983 X-Git-Tag: exim-4.97-RC0~104 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/7ce1ced40351c3cd5982d37ff4ccdb02afd82365 Compiler quietening. Bug 2983 --- diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 10b5f2aa5..9d0ab2fdf 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -1001,7 +1001,7 @@ Returns: nothing */ static void -info_callback(SSL * s, int where, int ret) +info_callback(const SSL * s, int where, int ret) { DEBUG(D_tls) { @@ -1750,13 +1750,13 @@ level. */ DEBUG(D_tls) { - SSL_CTX_set_info_callback(ctx, (void (*)())info_callback); + SSL_CTX_set_info_callback(ctx, info_callback); #if defined(EXIM_HAVE_OPESSL_TRACE) && !defined(OPENSSL_NO_SSL_TRACE) /* this needs a debug build of OpenSSL */ - SSL_CTX_set_msg_callback(ctx, (void (*)())SSL_trace); + SSL_CTX_set_msg_callback(ctx, SSL_trace); #endif #ifdef OPENSSL_HAVE_KEYLOG_CB - SSL_CTX_set_keylog_callback(ctx, (void (*)())keylog_callback); + SSL_CTX_set_keylog_callback(ctx, keylog_callback); #endif }