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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:1022:    key->rewind();    break;    }       int len = 1+3+sizeof(input);    key->rewind();    Stdio.Buffer raw = handshake_buffer->read_buffer(len);       mixed exception = catch {    err = handle_handshake(type, input, raw); +  COND_FATAL(err>=0 && sizeof(input), ALERT_record_overflow, +  sprintf("Extraneous handshake packet data (%O).\n", +  type));    };    if( exception )    {    if( objectp(exception) && ([object]exception)->buffer_error )    {    Error.Generic e = [object(Error.Generic)]exception;    COND_FATAL(1, ALERT_decode_error, e->message());    }    throw(exception);    }    if (err < 0)    return err;    if (err > 0) {    state &= ~CONNECTION_handshaking;    COND_FATAL(sizeof(handshake_buffer), ALERT_record_overflow, -  "Extraneous handshake data.\n"); +  "Extraneous handshake packets.\n");    }    }    break;    }    case PACKET_application_data:    SSL3_DEBUG_MSG("SSL.Connection: APPLICATION_DATA\n");       COND_FATAL(state & CONNECTION_handshaking,    ALERT_unexpected_message,    "Handshake not finished yet!\n");