Skip to content
Snippets Groups Projects
Commit fff7faf1 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

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

parent a7a02a35
No related branches found
No related tags found
No related merge requests found
......@@ -901,6 +901,19 @@ string(8bit)|int got_data(string(8bit) data)
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment