diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-02 18:07:53 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-02 18:07:53 +0100 |
commit | e570d1363603ca4a58401008541408d74cd0ce40 (patch) | |
tree | c2a66e22f82473ce7c5efc6d2e73a30cbe3ee039 /src | |
parent | fb34a7cb31f66ad7311687840214a92e3737f10b (diff) |
Fix build on older OpenSSL
Broken-by: b10c87b38c
Diffstat (limited to 'src')
-rw-r--r-- | src/src/tls-openssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 06008decc..e47df7cb2 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -73,6 +73,7 @@ change this guard and punt the issue for a while longer. */ # define EXIM_HAVE_OPENSSL_KEYLOG # define EXIM_HAVE_OPENSSL_CIPHER_GET_ID # define EXIM_HAVE_SESSION_TICKET +# define EXIM_HAVE_OPESSL_TRACE # else # define EXIM_NEED_OPENSSL_INIT # endif @@ -1942,7 +1943,8 @@ level. */ DEBUG(D_tls) { SSL_CTX_set_info_callback(ctx, (void (*)())info_callback); -#ifndef OPENSSL_NO_SSL_TRACE /* this needs a debug build of OpenSSL */ +#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); #endif #ifdef OPENSSL_HAVE_KEYLOG_CB |