Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
ssl_cookie.h File Reference
DTLS cookie callbacks implementation. More...
Go to the source code of this file.
Data Structures | |
struct | mbedtls_ssl_cookie_ctx |
Context for the default cookie functions. More... | |
Typedefs | |
typedef struct mbedtls_ssl_cookie_ctx | mbedtls_ssl_cookie_ctx |
Context for the default cookie functions. | |
Functions | |
void | mbedtls_ssl_cookie_init (mbedtls_ssl_cookie_ctx *ctx) |
Initialize cookie context. | |
int | mbedtls_ssl_cookie_setup (mbedtls_ssl_cookie_ctx *ctx, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
Setup cookie context (generate keys) | |
void | mbedtls_ssl_cookie_set_timeout (mbedtls_ssl_cookie_ctx *ctx, unsigned long delay) |
Set expiration delay for cookies (Default MBEDTLS_SSL_COOKIE_TIMEOUT) | |
void | mbedtls_ssl_cookie_free (mbedtls_ssl_cookie_ctx *ctx) |
Free cookie context. | |
Variables | |
mbedtls_ssl_cookie_write_t | mbedtls_ssl_cookie_write |
Generate cookie, see mbedtls_ssl_cookie_write_t . | |
mbedtls_ssl_cookie_check_t | mbedtls_ssl_cookie_check |
Verify cookie, see mbedtls_ssl_cookie_write_t . |
Detailed Description
DTLS cookie callbacks implementation.
Definition in file ssl_cookie.h.
Typedef Documentation
typedef struct mbedtls_ssl_cookie_ctx mbedtls_ssl_cookie_ctx |
Context for the default cookie functions.
Function Documentation
void mbedtls_ssl_cookie_free | ( | mbedtls_ssl_cookie_ctx * | ctx ) |
Free cookie context.
Definition at line 92 of file ssl_cookie.c.
void mbedtls_ssl_cookie_init | ( | mbedtls_ssl_cookie_ctx * | ctx ) |
Initialize cookie context.
Definition at line 74 of file ssl_cookie.c.
void mbedtls_ssl_cookie_set_timeout | ( | mbedtls_ssl_cookie_ctx * | ctx, |
unsigned long | delay | ||
) |
Set expiration delay for cookies (Default MBEDTLS_SSL_COOKIE_TIMEOUT)
- Parameters:
-
ctx Cookie contex delay Delay, in seconds if HAVE_TIME, or in number of cookies issued in the meantime. 0 to disable expiration (NOT recommended)
Definition at line 87 of file ssl_cookie.c.
int mbedtls_ssl_cookie_setup | ( | mbedtls_ssl_cookie_ctx * | ctx, |
int(*)(void *, unsigned char *, size_t) | f_rng, | ||
void * | p_rng | ||
) |
Setup cookie context (generate keys)
Definition at line 103 of file ssl_cookie.c.
Variable Documentation
Verify cookie, see mbedtls_ssl_cookie_write_t
.
Definition at line 109 of file ssl_cookie.h.
Generate cookie, see mbedtls_ssl_cookie_write_t
.
Definition at line 104 of file ssl_cookie.h.
Generated on Tue Jul 12 2022 13:55:19 by
