forked from wolfSSL/wolfssl
Earlier DTLS transmit patch, moved local variable definition to top of block
This commit is contained in:
@ -5046,14 +5046,17 @@ int SendFinished(CYASSL* ssl)
|
|||||||
int ret;
|
int ret;
|
||||||
int headerSz = HANDSHAKE_HEADER_SZ;
|
int headerSz = HANDSHAKE_HEADER_SZ;
|
||||||
|
|
||||||
|
#ifdef CYASSL_DTLS
|
||||||
|
word32 sequence_number = ssl->keys.dtls_sequence_number;
|
||||||
|
word16 epoch = ssl->keys.dtls_epoch;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* check for available size */
|
/* check for available size */
|
||||||
if ((ret = CheckAvailableSize(ssl, sizeof(input) + MAX_MSG_EXTRA)) != 0)
|
if ((ret = CheckAvailableSize(ssl, sizeof(input) + MAX_MSG_EXTRA)) != 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#ifdef CYASSL_DTLS
|
#ifdef CYASSL_DTLS
|
||||||
word32 sequence_number = ssl->keys.dtls_sequence_number;
|
|
||||||
word16 epoch = ssl->keys.dtls_epoch;
|
|
||||||
if (ssl->options.dtls) {
|
if (ssl->options.dtls) {
|
||||||
/* Send Finished message with the next epoch, but don't commit that
|
/* Send Finished message with the next epoch, but don't commit that
|
||||||
* change until the other end confirms its reception. */
|
* change until the other end confirms its reception. */
|
||||||
|
Reference in New Issue
Block a user