summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Aitchison <exim@aitchison.me.uk>2023-03-13 15:59:23 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-03-13 15:59:23 +0000
commit7ce1ced40351c3cd5982d37ff4ccdb02afd82365 (patch)
tree73ceab87369f6cf5cb94b0ca19e78d8db823ba34
parent6fdf76d0eae42ce4507fe317f095572100c5d6b8 (diff)
downloadexim4-7ce1ced40351c3cd5982d37ff4ccdb02afd82365.tar.gz
Compiler quietening. Bug 2983
-rw-r--r--src/src/tls-openssl.c8
1 files 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
}