1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-05-01 23:14:07 +00:00

TLS/SSL: remove useless error message when ssl connection is closed

When using OpenSSL, the following annoying "error" message was logged whenever
an encrypted connection was shut down in a orderly fashion:
TLS/SSL Connection shutdown: ConnSSL_Read: Unable to determine error

of course, this isn't an error at all.
This commit is contained in:
Florian Westphal 2009-02-05 23:42:56 +01:00
parent 66d6c3c84b
commit b8c6dd503f

View File

@ -484,8 +484,8 @@ ConnSSL_HandleError( CONNECTION *c, const int code, const char *fname )
Conn_OPTION_ADD(c, CONN_SSL_WANT_WRITE); /* fall through */ Conn_OPTION_ADD(c, CONN_SSL_WANT_WRITE); /* fall through */
case SSL_ERROR_NONE: case SSL_ERROR_NONE:
return 0; /* try again later */ return 0; /* try again later */
case SSL_ERROR_ZERO_RETURN: /* TLS/SSL Connection was shut down */ case SSL_ERROR_ZERO_RETURN:
LogOpenSSLError("TLS/SSL Connection shutdown", fname); LogDebug("TLS/SSL connection shut down normally");
break; break;
/* /*
SSL_ERROR_WANT_CONNECT, SSL_ERROR_WANT_ACCEPT, SSL_ERROR_WANT_X509_LOOKUP SSL_ERROR_WANT_CONNECT, SSL_ERROR_WANT_ACCEPT, SSL_ERROR_WANT_X509_LOOKUP