mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
TLS compression only allocates working buffer once
This commit is contained in:
parent
d61cc3b246
commit
1677033bc8
3 changed files with 26 additions and 20 deletions
|
|
@ -667,6 +667,9 @@ struct _ssl_context
|
|||
size_t out_msglen; /*!< record header: message length */
|
||||
size_t out_left; /*!< amount of data not yet written */
|
||||
|
||||
#if defined(POLARSSL_ZLIB_SUPPORT)
|
||||
unsigned char *compress_buf; /*!< zlib data buffer */
|
||||
#endif
|
||||
#if defined(POLARSSL_SSL_MAX_FRAGMENT_LENGTH)
|
||||
unsigned char mfl_code; /*!< MaxFragmentLength chosen by us */
|
||||
#endif /* POLARSSL_SSL_MAX_FRAGMENT_LENGTH */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue