mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix SessionTicket length in unencrypted case
This commit is contained in:
committed by
Unknown
parent
f2d2dadc89
commit
01b446f469
@ -28265,7 +28265,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsEncryptionOn(ssl, 1))
|
if (IsEncryptionOn(ssl, 1) && ssl->options.handShakeDone)
|
||||||
sendSz += cipherExtraData(ssl);
|
sendSz += cipherExtraData(ssl);
|
||||||
|
|
||||||
/* check for available size */
|
/* check for available size */
|
||||||
@ -28326,7 +28326,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
|
|
||||||
ssl->buffers.outputBuffer.length += sendSz;
|
ssl->buffers.outputBuffer.length += sendSz;
|
||||||
|
|
||||||
ret = SendBuffered(ssl);
|
if (!ssl->options.groupMessages)
|
||||||
|
ret = SendBuffered(ssl);
|
||||||
|
|
||||||
WOLFSSL_LEAVE("SendTicket", ret);
|
WOLFSSL_LEAVE("SendTicket", ret);
|
||||||
WOLFSSL_END(WC_FUNC_TICKET_SEND);
|
WOLFSSL_END(WC_FUNC_TICKET_SEND);
|
||||||
|
Reference in New Issue
Block a user