From 7ce1ced40351c3cd5982d37ff4ccdb02afd82365 Mon Sep 17 00:00:00 2001 From: Andrew Aitchison Date: Mon, 13 Mar 2023 15:59:23 +0000 Subject: Compiler quietening. Bug 2983 --- src/src/tls-openssl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } -- cgit v1.2.1