/[svn]/ircd-hybrid/trunk/src/s_bsd.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/s_bsd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2724 by michael, Sun Dec 8 18:33:48 2013 UTC revision 2725 by michael, Sun Dec 29 13:01:00 2013 UTC
# Line 239  ssl_handshake(int fd, struct Client *cli Line 239  ssl_handshake(int fd, struct Client *cli
239    
240    if ((ret = SSL_accept(client_p->localClient->fd.ssl)) <= 0)    if ((ret = SSL_accept(client_p->localClient->fd.ssl)) <= 0)
241    {    {
242        if ((CurrentTime - client_p->localClient->firsttime) > 30)
243        {
244          exit_client(client_p, client_p, "Timeout during SSL handshake");
245          return;
246        }
247    
248      switch (SSL_get_error(client_p->localClient->fd.ssl, ret))      switch (SSL_get_error(client_p->localClient->fd.ssl, ret))
249      {      {
250        case SSL_ERROR_WANT_WRITE:        case SSL_ERROR_WANT_WRITE:
251          comm_setselect(&client_p->localClient->fd, COMM_SELECT_WRITE,          comm_setselect(&client_p->localClient->fd, COMM_SELECT_WRITE,
252                         (PF *) ssl_handshake, client_p, 0);                         (PF *) ssl_handshake, client_p, 30);
253          return;          return;
254    
255        case SSL_ERROR_WANT_READ:        case SSL_ERROR_WANT_READ:
256          comm_setselect(&client_p->localClient->fd, COMM_SELECT_READ,          comm_setselect(&client_p->localClient->fd, COMM_SELECT_READ,
257                         (PF *) ssl_handshake, client_p, 0);                         (PF *) ssl_handshake, client_p, 30);
258          return;          return;
259    
260        default:        default:

Legend:
Removed from v.2724  
changed lines
  Added in v.2725

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28