From ebd03368c71f2dd311eadeb9e265c2e6e037bf6a Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 31 May 2013 13:48:49 -0700 Subject: [PATCH] for DTLS handshakes, put change cipher spec and finished messages in same datagram --- src/internal.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/internal.c b/src/internal.c index fcfe8f9cc..f545407ae 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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); }