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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:894:    e->message()));    return -1;    }    throw(exception);    }    handshake_buffer = handshake_buffer[len + 4..];    if (err < 0)    return err;    if (err > 0) {    state &= ~CONNECTION_handshaking; +  if( expect_change_cipher && sizeof(handshake_buffer) ) +  { +  send_packet(alert(ALERT_fatal, ALERT_unexpected_message, +  "Extraneous handshake packets.\n")); +  return -1;    } -  +  if( !secure_renegotiation && sizeof(handshake_buffer) ) +  { +  send_packet(alert(ALERT_fatal, ALERT_no_renegotiation, +  "Renegotiation not supported in unsecure " +  "mode.\n")); +  return -1;    } -  +  } +  }    break;    }    case PACKET_application_data:    SSL3_DEBUG_MSG("SSL.Connection: APPLICATION_DATA\n");       if (state & CONNECTION_handshaking)    {    send_packet(alert(ALERT_fatal, ALERT_unexpected_message,    "Handshake not finished yet!\n"));    return -1;