|
@@ -29785,13 +29785,8 @@ static int DefTicketEncCb(WOLFSSL* ssl, byte key_name[WOLFSSL_TICKET_NAME_SZ],
|
|
|
/* are we in scr */
|
|
|
if (IsEncryptionOn(ssl, 1)) {
|
|
|
byte* input;
|
|
|
- int inputSz = HANDSHAKE_HEADER_SZ + length; /* build msg adds rec hdr */
|
|
|
- int recordHeaderSz = RECORD_HEADER_SZ;
|
|
|
-
|
|
|
- if (ssl->options.dtls) {
|
|
|
- recordHeaderSz += DTLS_RECORD_EXTRA;
|
|
|
- inputSz += DTLS_HANDSHAKE_EXTRA;
|
|
|
- }
|
|
|
+ int inputSz = DTLS_HANDSHAKE_HEADER_SZ + length; /* build msg adds rec hdr */
|
|
|
+ int recordHeaderSz = DTLS_RECORD_HEADER_SZ;
|
|
|
|
|
|
input = (byte*)XMALLOC(inputSz, ssl->heap, DYNAMIC_TYPE_IN_BUFFER);
|
|
|
if (input == NULL)
|
|
@@ -29807,6 +29802,7 @@ static int DefTicketEncCb(WOLFSSL* ssl, byte key_name[WOLFSSL_TICKET_NAME_SZ],
|
|
|
}
|
|
|
|
|
|
ssl->buffers.outputBuffer.length += sendSz;
|
|
|
+ DtlsSEQIncrement(ssl, CUR_ORDER);
|
|
|
|
|
|
return SendBuffered(ssl);
|
|
|
}
|