Mbed TLS Versioned

Contents

  • Home
  • Group list
  • File list
    • File aes.h
    • File aesni.h
    • File arc4.h
    • File aria.h
    • File asn1.h
    • File asn1write.h
    • File base64.h
    • File bignum.h
    • File blowfish.h
    • File bn_mul.h
    • File camellia.h
    • File ccm.h
    • File certs.h
    • File chacha20.h
    • File chachapoly.h
    • File check_config.h
    • File cipher.h
    • File cmac.h
    • File compat-1.3.h
    • File config.h
    • File config_psa.h
    • File constant_time.h
    • File crypto.h
    • File crypto_builtin_composites.h
    • File crypto_builtin_primitives.h
    • File crypto_compat.h
    • File crypto_config.h
    • File crypto_driver_common.h
    • File crypto_driver_contexts_composites.h
    • File crypto_driver_contexts_primitives.h
    • File crypto_extra.h
    • File crypto_platform.h
    • File crypto_se_driver.h
    • File crypto_sizes.h
    • File crypto_struct.h
    • File crypto_types.h
    • File crypto_values.h
    • File ctr_drbg.h
    • File debug.h
    • File des.h
    • File dhm.h
    • File doc_encdec.h
    • File doc_hashing.h
    • File doc_mainpage.h
    • File doc_rng.h
    • File doc_ssltls.h
    • File doc_tcpip.h
    • File doc_x509.h
    • File ecdh.h
    • File ecdsa.h
    • File ecjpake.h
    • File ecp.h
    • File entropy.h
    • File entropy_poll.h
    • File error.h
    • File gcm.h
    • File havege.h
    • File hkdf.h
    • File hmac_drbg.h
    • File md2.h
    • File md4.h
    • File md5.h
    • File md.h
    • File memory_buffer_alloc.h
    • File net.h
    • File net_sockets.h
    • File nist_kw.h
    • File oid.h
    • File padlock.h
    • File pem.h
    • File pk.h
    • File pkcs11.h
    • File pkcs12.h
    • File pkcs5.h
    • File platform.h
    • File platform_time.h
    • File platform_util.h
    • File poly1305.h
    • File psa_util.h
    • File ripemd160.h
    • File rsa.h
    • File sha1.h
    • File sha256.h
    • File sha512.h
    • File ssl.h
    • File ssl_cache.h
    • File ssl_ciphersuites.h
    • File ssl_cookie.h
    • File ssl_ticket.h
    • File threading.h
    • File timing.h
    • File version.h
    • File x509.h
    • File x509_crl.h
    • File x509_crt.h
    • File x509_csr.h
    • File xtea.h
  • Struct list
  • Union list
Mbed TLS Versioned
  • File list
  • File ssl_cookie.h
  • View page source

File ssl_cookie.h

DTLS cookie callbacks implementation.

SECTION: Module settings

The configuration options you can set for this module are in this section. Either change them in config.h or define them on the compiler command line.

MBEDTLS_SSL_COOKIE_TIMEOUT

Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued

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)

Parameters
  • ctx – Cookie context

  • delay – Delay, in seconds if HAVE_TIME, or in number of cookies issued in the meantime. 0 to disable expiration (NOT recommended)

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.

struct mbedtls_ssl_cookie_ctx
#include <ssl_cookie.h>

Context for the default cookie functions.

Public Members

mbedtls_md_context_t hmac_ctx

context for the HMAC portion

unsigned long timeout

timeout delay, in seconds if HAVE_TIME, or in number of tickets issued

mbedtls_threading_mutex_t mutex
Previous Next

© Copyright 2023, Mbed TLS Contributors.

Built with Sphinx using a theme provided by Read the Docs.