Documentation
Includes
config.h
#include "config.h"
MBEDTLS_CONFIG_FILE
#include MBEDTLS_CONFIG_FILE
ssl.h
#include "ssl.h"
cipher.h
#include "cipher.h"
threading.h
#include "threading.h"
Macros
Marco MBEDTLS_SSL_TICKET_H
#define MBEDTLS_SSL_TICKET_H
Functions
Func mbedtls_ssl_ticket_init
void mbedtls_ssl_ticket_init( mbedtls_ssl_ticket_context *ctx );
Func mbedtls_ssl_ticket_setup
int mbedtls_ssl_ticket_setup( mbedtls_ssl_ticket_context *ctx,
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
mbedtls_cipher_type_t cipher,
uint32_t lifetime );
Func mbedtls_ssl_ticket_free
void mbedtls_ssl_ticket_free( mbedtls_ssl_ticket_context *ctx );
Vars
Variable mbedtls_ssl_ticket_write
mbedtls_ssl_ticket_write_t mbedtls_ssl_ticket_write;
Variable mbedtls_ssl_ticket_parse
mbedtls_ssl_ticket_parse_t mbedtls_ssl_ticket_parse;
Consts
Types
Typedefs
Typedef
mbedtls_ssl_ticket_key;
typedef struct mbedtls_ssl_ticket_key
{
unsigned char name[4]; /*!< random key identifier */
uint32_t generation_time; /*!< key generation timestamp (seconds) */
mbedtls_cipher_context_t ctx; /*!< context for auth enc/decryption */
}
mbedtls_ssl_ticket_key;
Typedef
mbedtls_ssl_ticket_context;
typedef struct mbedtls_ssl_ticket_context
{
mbedtls_ssl_ticket_key keys[2]; /*!< ticket protection keys */
unsigned char active; /*!< index of the currently active key */
uint32_t ticket_lifetime; /*!< lifetime of tickets in seconds */
/** Callback for getting (pseudo-)random numbers */
int (*f_rng)(void *, unsigned char *, size_t);
void *p_rng; /*!< context for the RNG function */
#if defined(MBEDTLS_THREADING_C)
mbedtls_threading_mutex_t mutex;
#endif
}
mbedtls_ssl_ticket_context;