pike.git / lib / modules / SSL.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:756:   string(8bit)|int got_data(string(8bit) data)   {    if (state & CONNECTION_peer_closed) {    // The peer has closed the connection.    return 1;    }    // If closing we continue to try to read a remote close message.    // That enables the caller to check for a clean close, and    // to get the leftovers after the SSL connection.    -  /* If alert_callback is called, this data is passed as an argument */ -  string(8bit) alert_context = (left_over || "") + data; -  +     string(8bit) res = "";    Packet packet;    while (packet = recv_packet(data))    {    data = "";       if (packet->is_alert)    { /* Reply alert */    SSL3_DEBUG_MSG("SSL.Connection: Bad received packet\n");    if (alert_callback) -  alert_callback(packet, current_read_state->seq_num, alert_context); +  alert_callback(packet, current_read_state->seq_num, left_over);    if (this && packet)    send_packet(packet);    if ((!packet) || (!this) || (packet->level == ALERT_fatal))    return -1;    if (alert_callback)    break;    }    else    {    SSL3_DEBUG_MSG("SSL.Connection: received packet of type %d\n",