/[svn]/ircd-hybrid-8/src/s_serv.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/s_serv.c

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

revision 1307 by michael, Sat Mar 24 07:43:04 2012 UTC revision 1308 by michael, Sat Mar 24 13:37:05 2012 UTC
# Line 1434  ssl_server_handshake(fde_t *fd, struct C Line 1434  ssl_server_handshake(fde_t *fd, struct C
1434      {      {
1435        case SSL_ERROR_WANT_WRITE:        case SSL_ERROR_WANT_WRITE:
1436          comm_setselect(&client_p->localClient->fd, COMM_SELECT_WRITE,          comm_setselect(&client_p->localClient->fd, COMM_SELECT_WRITE,
1437              (PF *) ssl_server_handshake, client_p, 0);                         (PF *)ssl_server_handshake, client_p, 0);
1438          return;          return;
1439        case SSL_ERROR_WANT_READ:        case SSL_ERROR_WANT_READ:
1440          comm_setselect(&client_p->localClient->fd, COMM_SELECT_READ,          comm_setselect(&client_p->localClient->fd, COMM_SELECT_READ,
1441              (PF *) ssl_server_handshake, client_p, 0);                         (PF *)ssl_server_handshake, client_p, 0);
1442          return;          return;
1443        default:        default:
1444          {
1445            const char *sslerr = ERR_error_string(ERR_get_error(), NULL);
1446            sendto_realops_flags(UMODE_ALL, L_ALL,
1447                                 "Error connecting to %s: %s", client_p->name,
1448                                 sslerr ? sslerr : "unknown SSL error");
1449          exit_client(client_p, client_p, "Error during SSL handshake");          exit_client(client_p, client_p, "Error during SSL handshake");
1450          return;          return;
1451          }
1452      }      }
1453    }    }
1454    

Legend:
Removed from v.1307  
changed lines
  Added in v.1308

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