for DTLS handshakes, put change cipher spec and finished messages in same datagram

This commit is contained in:
John Safranek 2013-05-31 13:48:49 -07:00
parent 79fad81c32
commit ebd03368c7

View File

@ -4802,6 +4802,13 @@ int SendChangeCipher(CYASSL* ssl)
if (ssl->options.groupMessages)
return 0;
#ifdef CYASSL_DTLS
else if (ssl->options.dtls) {
/* If using DTLS, force the ChangeCipherSpec message to be in the
* same datagram as the finished message. */
return 0;
}
#endif
else
return SendBuffered(ssl);
}