sanity check for out of order handshake messages

This commit is contained in:
toddouska
2012-10-03 16:44:08 -07:00
parent 66c95b0c15
commit 257d10a69f

View File

@ -2473,6 +2473,11 @@ static int DoHandShakeMsgType(CYASSL* ssl, byte* input, word32* inOutIdx,
} }
#endif #endif
if (ssl->options.handShakeState == HANDSHAKE_DONE && type != hello_request){
CYASSL_MSG("HandShake message after handshake complete");
return OUT_OF_ORDER_E;
}
switch (type) { switch (type) {
case hello_request: case hello_request: