Branch: Tag:

2015-03-31

2015-03-31 17:05:16 by Martin Nilsson <nilsson@opera.com>

Don't process any more handshake packages once handshake is completed.

901:    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: