mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
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 */
|
||||
|
|
|
|||
|
|
@ -31,14 +31,15 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
/* Temporary, WIP */
|
||||
int mbedtls_ssl_ticket_write( const mbedtls_ssl_config *conf,
|
||||
int mbedtls_ssl_ticket_write( void *p_ticket,
|
||||
const mbedtls_ssl_session *session,
|
||||
unsigned char *start,
|
||||
const unsigned char *end,
|
||||
size_t *tlen );
|
||||
size_t *tlen,
|
||||
uint32_t *ticket_lifetime );
|
||||
|
||||
/* Temporary, WIP */
|
||||
int mbedtls_ssl_ticket_parse( const mbedtls_ssl_config *conf,
|
||||
int mbedtls_ssl_ticket_parse( void *p_ticket,
|
||||
mbedtls_ssl_session *session,
|
||||
unsigned char *buf,
|
||||
size_t len );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue