pdp 2010/06/05 10:32:31 BST
Modified files:
exim-src/src tls-openssl.c
Log:
Log a diagnostic when an SSL write fails, to help admins debug SSL interop issues.
Fixes: #995
Revision Changes Path
1.24 +8 -0 exim/exim-src/src/tls-openssl.c
Index: tls-openssl.c
===================================================================
RCS file: /home/cvs/exim/exim-src/src/tls-openssl.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- tls-openssl.c 5 Jun 2010 09:10:10 -0000 1.23
+++ tls-openssl.c 5 Jun 2010 09:32:31 -0000 1.24
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.23 2010/06/05 09:10:10 pdp Exp $ */
+/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.24 2010/06/05 09:32:31 pdp Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -900,6 +900,14 @@
/* Handle genuine errors */
+ else if (error == SSL_ERROR_SSL)
+ {
+ ERR_error_string(ERR_get_error(), ssl_errstring);
+ log_write(0, LOG_MAIN, "TLS error (SSL_write): %s", ssl_errstring);
+ ssl_xfer_error = 1;
+ return EOF;
+ }
+
else if (error != SSL_ERROR_NONE)
{
DEBUG(D_tls) debug_printf("Got SSL error %d\n", error);