"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ssl.c" between
bahamut-2.1.4.tar.gz and bahamut-2.1.5.tar.gz

About: Bahamut is an Internet Relay Chat Daemon (IRCd) designed for DALnet, one of the major IRC networks in the world.

ssl.c  (bahamut-2.1.4):ssl.c  (bahamut-2.1.5)
skipping to change at line 339 skipping to change at line 339
case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_ZERO_RETURN:
ssl_errstr = "Underlying socket operation returned zero"; ssl_errstr = "Underlying socket operation returned zero";
break; break;
case SSL_ERROR_WANT_CONNECT: case SSL_ERROR_WANT_CONNECT:
ssl_errstr = "OpenSSL functions wanted a connect()"; ssl_errstr = "OpenSSL functions wanted a connect()";
break; break;
default: default:
ssl_errstr = "Unknown OpenSSL error (huh?)"; ssl_errstr = "Unknown OpenSSL error (huh?)";
} }
if((ssl_error==SSL_ERROR_SYSCALL || ssl_error==SSL_ERROR_ZERO_RETURN) && err
tmp==0)
{
/* Client most likely just closed the connection... -Kobi_S. */
errno = 0; /* Not really an error */
sptr->sockerr = IRCERR_SSL;
sptr->flags |= FLAGS_DEADSOCKET;
return -1;
}
sendto_realops_lev(DEBUG_LEV, "%s to " sendto_realops_lev(DEBUG_LEV, "%s to "
"%s!%s@%s aborted with%serror (%s). [%s]", "%s!%s@%s aborted with%serror (%s). [%s]",
ssl_func, *sptr->name ? sptr->name : "<unknown>", ssl_func, *sptr->name ? sptr->name : "<unknown>",
(sptr->user && sptr->user->username) ? sptr->user-> (sptr->user && sptr->user->username) ? sptr->user->
username : "<unregistered>", sptr->sockhost, username : "<unregistered>", sptr->sockhost,
(errno > 0) ? " " : " no ", errstr, ssl_errstr); (errno > 0) ? " " : " no ", errstr, ssl_errstr);
#ifdef USE_SYSLOG #ifdef USE_SYSLOG
syslog(LOG_ERR, "SSL error in %s: %s [%s]", ssl_func, errstr, syslog(LOG_ERR, "SSL error in %s for %s!%s@%s: %s [%s]", ssl_func,
ssl_errstr); *sptr->name ? sptr->name : "<unknown>",
(sptr->user && sptr->user->username) ? sptr->user->
username : "<unregistered>", sptr->sockhost,
errstr, ssl_errstr);
#endif #endif
/* if we reply() something here, we might just trigger another /* if we reply() something here, we might just trigger another
* fatal_ssl_error() call and loop until a stack overflow... * fatal_ssl_error() call and loop until a stack overflow...
* the client won`t get the ERROR : ... string, but this is * the client won`t get the ERROR : ... string, but this is
* the only way to do it. * the only way to do it.
* IRC protocol wasn`t SSL enabled .. --vjt * IRC protocol wasn`t SSL enabled .. --vjt
*/ */
errno = errtmp ? errtmp : EIO; /* Stick a generic I/O error */ errno = errtmp ? errtmp : EIO; /* Stick a generic I/O error */
 End of changes. 2 change blocks. 
2 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)