dtls 1.3: Add cid size to output buffer length
This commit is contained in:
parent
ee2b77c0bd
commit
4a26af0dfa
@ -24794,6 +24794,14 @@ int SendData(WOLFSSL* ssl, const void* data, int sz)
|
||||
if (IsEncryptionOn(ssl, 1) || ssl->options.tls1_3)
|
||||
outputSz += cipherExtraData(ssl);
|
||||
|
||||
#if defined(WOLFSSL_DTLS) && defined(WOLFSSL_DTLS_CID)
|
||||
if (ssl->options.dtls) {
|
||||
unsigned int cidSz = 0;
|
||||
if (wolfSSL_dtls_cid_get_tx_size(ssl, &cidSz) == WOLFSSL_SUCCESS)
|
||||
outputSz += cidSz;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* check for available size */
|
||||
if ((ret = CheckAvailableSize(ssl, outputSz)) != 0)
|
||||
return ssl->error = ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user