10 #ifndef MBEDTLS_SSL_COOKIE_H
11 #define MBEDTLS_SSL_COOKIE_H
12 #include "mbedtls/private_access.h"
26 #ifndef MBEDTLS_SSL_COOKIE_TIMEOUT
27 #define MBEDTLS_SSL_COOKIE_TIMEOUT 60
42 #if !defined(MBEDTLS_HAVE_TIME)
43 unsigned long MBEDTLS_PRIVATE(serial);
45 unsigned long MBEDTLS_PRIVATE(timeout);
int mbedtls_ssl_cookie_write_t(void *ctx, unsigned char **p, unsigned char *end, const unsigned char *info, size_t ilen)
Callback type: generate a cookie.
int mbedtls_ssl_cookie_check_t(void *ctx, const unsigned char *cookie, size_t clen, const unsigned char *info, size_t ilen)
Callback type: verify a cookie.
int mbedtls_ssl_cookie_setup(mbedtls_ssl_cookie_ctx *ctx)
Setup cookie context (generate keys)
mbedtls_ssl_cookie_check_t mbedtls_ssl_cookie_check
Verify cookie, see mbedtls_ssl_cookie_write_t.
Context for the default cookie functions.
void mbedtls_ssl_cookie_set_timeout(mbedtls_ssl_cookie_ctx *ctx, unsigned long delay)
Set expiration delay for cookies (Default MBEDTLS_SSL_COOKIE_TIMEOUT)
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Build-time configuration info.
mbedtls_ssl_cookie_write_t mbedtls_ssl_cookie_write
Generate cookie, see mbedtls_ssl_cookie_write_t.
struct mbedtls_ssl_cookie_ctx mbedtls_ssl_cookie_ctx
Context for the default cookie functions.
void mbedtls_ssl_cookie_free(mbedtls_ssl_cookie_ctx *ctx)
Free cookie context.
void mbedtls_ssl_cookie_init(mbedtls_ssl_cookie_ctx *ctx)
Initialize cookie context.