mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Prepare migrating max fragment length to session
Remove max_frag_len member so that reseting session by memset()ing it to zero does the right thing.
This commit is contained in:
parent
8e714d7aca
commit
581e6b6d6c
2 changed files with 29 additions and 31 deletions
|
|
@ -117,7 +117,8 @@
|
|||
#define SSL_MINOR_VERSION_2 2 /*!< TLS v1.1 */
|
||||
#define SSL_MINOR_VERSION_3 3 /*!< TLS v1.2 */
|
||||
|
||||
/* RFC 6066 section 4 */
|
||||
/* RFC 6066 section 4, see also mfl_code_to_length in ssl_tls.c
|
||||
* NONE must be zero so that memset()ing session to zero works */
|
||||
#define SSL_MAX_FRAG_LEN_NONE 0 /*!< don't use this extension */
|
||||
#define SSL_MAX_FRAG_LEN_512 1 /*!< MaxFragmentLength 2^9 */
|
||||
#define SSL_MAX_FRAG_LEN_1024 2 /*!< MaxFragmentLength 2^10 */
|
||||
|
|
@ -509,7 +510,6 @@ struct _ssl_context
|
|||
|
||||
/* Maximum fragment length extension (RFC 6066 section 4) */
|
||||
unsigned char mfl_code; /*!< numerical code for MaxFragmentLength */
|
||||
uint16_t max_frag_len; /*!< value of MaxFragmentLength */
|
||||
|
||||
/*
|
||||
* PKI layer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue