git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7a24c
)
OpenSSL: More info on accept "unsupported protocol"
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 12 Apr 2020 15:48:10 +0000
(16:48 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 12 Apr 2020 19:22:44 +0000
(20:22 +0100)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 146ed695dcfeda0a7c42c14d8efa7abde90d01df..3f3fd8aa82502d8ea33d6b7cd6598031c849a7d0 100644
(file)
--- a/
src/src/tls-openssl.c
+++ b/
src/src/tls-openssl.c
@@
-2764,8
+2764,9
@@
if (rc <= 0)
case SSL_ERROR_SSL:
{
uschar * s = US"SSL_accept";
- unsigned long e = ERR_peek_error();
- if (ERR_GET_REASON(e) == SSL_R_WRONG_VERSION_NUMBER)
+ int r = ERR_GET_REASON(ERR_peek_error());
+ if ( r == SSL_R_WRONG_VERSION_NUMBER
+ || 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);
return FAIL;