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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:758:       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"); -  send_packet(packet); +     if (alert_callback)    alert_callback(packet, current_read_state->seq_num, alert_context); -  +  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",    packet->content_type);    switch (packet->content_type)