make static buffers length 1 (zero may not be supported) unless LARGE_STATIC, SNIFFER, or DTLS
This commit is contained in:
parent
66bbb44f44
commit
cfd5a20e48
@ -621,8 +621,14 @@ enum {
|
|||||||
The length (in bytes) of the following TLSPlaintext.fragment.
|
The length (in bytes) of the following TLSPlaintext.fragment.
|
||||||
The length should not exceed 2^14.
|
The length should not exceed 2^14.
|
||||||
*/
|
*/
|
||||||
#define STATIC_BUFFER_LEN RECORD_HEADER_SZ + RECORD_SIZE + COMP_EXTRA + \
|
#if defined(LARGE_STATIC_BUFFERS) || defined(CYASSL_SNIFFER) || \
|
||||||
MTU_EXTRA + MAX_MSG_EXTRA
|
defined(CYASSL_DTLS)
|
||||||
|
#define STATIC_BUFFER_LEN RECORD_HEADER_SZ + RECORD_SIZE + COMP_EXTRA + \
|
||||||
|
MTU_EXTRA + MAX_MSG_EXTRA
|
||||||
|
#else
|
||||||
|
/* zero length arrays may not be supported */
|
||||||
|
#define STATIC_BUFFER_LEN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
word32 length; /* total buffer length used */
|
word32 length; /* total buffer length used */
|
||||||
|
Loading…
Reference in New Issue
Block a user