Further adapt prototypes of ticket functions
Moving everything in ticket_keys structure, that will soon become ticket_context.
This commit is contained in:
parent
69f17280d3
commit
b0394bebdb
5 changed files with 35 additions and 32 deletions
|
@ -760,6 +760,7 @@ struct mbedtls_ssl_ticket_keys
|
|||
mbedtls_aes_context enc; /*!< encryption context */
|
||||
mbedtls_aes_context dec; /*!< decryption context */
|
||||
unsigned char mac_key[16]; /*!< authentication key */
|
||||
uint32_t ticket_lifetime;
|
||||
};
|
||||
#endif /* MBEDTLS_SSL_SESSION_TICKETS */
|
||||
|
||||
|
@ -896,10 +897,6 @@ typedef struct
|
|||
unsigned int badmac_limit; /*!< limit of records with a bad MAC */
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||
int ticket_lifetime; /*!< session ticket lifetime (seconds) */
|
||||
#endif
|
||||
|
||||
unsigned char max_major_ver; /*!< max. major version used */
|
||||
unsigned char max_minor_ver; /*!< max. minor version used */
|
||||
unsigned char min_major_ver; /*!< min. major version used */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue