X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/a89b6bd32a650871031f4fce9b80ab6b7eb47d8e..99dbdcf461adff82b2fe68c9c9c690c4982969b1:/src/src/tls-openssl.c diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 26cc986c5..0caf1c0ff 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2019 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ /* Portions Copyright (c) The OpenSSL Project 1999 */ @@ -2765,7 +2766,10 @@ if (rc <= 0) { uschar * s = US"SSL_accept"; int r = ERR_GET_REASON(ERR_peek_error()); - if ( r == SSL_R_WRONG_VERSION_NUMBER || r == SSL_R_VERSION_TOO_LOW + if ( r == SSL_R_WRONG_VERSION_NUMBER +#ifdef SSL_R_VERSION_TOO_LOW + || r == SSL_R_VERSION_TOO_LOW +#endif || r == SSL_R_UNKNOWN_PROTOCOL || r == SSL_R_UNSUPPORTED_PROTOCOL) s = string_sprintf("%s (%s)", s, SSL_get_version(server_ssl)); (void) tls_error(s, NULL, sigalrm_seen ? US"timed out" : NULL, errstr);