OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
mbedtls_ssl_config Struct Reference

#include <ssl.h>

Public Attributes

const int * ciphersuite_list [4]
 
void(* f_dbg )(void *, int, const char *, int, const char *)
 
void * p_dbg
 
int(* f_rng )(void *, unsigned char *, size_t)
 
void * p_rng
 
int(* f_get_cache )(void *, mbedtls_ssl_session *)
 
int(* f_set_cache )(void *, const mbedtls_ssl_session *)
 
void * p_cache
 
uint32_t read_timeout
 
unsigned char max_major_ver
 
unsigned char max_minor_ver
 
unsigned char min_major_ver
 
unsigned char min_minor_ver
 
unsigned int endpoint: 1
 
unsigned int transport: 1
 
unsigned int authmode: 2
 
unsigned int allow_legacy_renegotiation: 2
 

Detailed Description

SSL/TLS configuration to be shared between mbedtls_ssl_context structures.

Member Data Documentation

◆ allow_legacy_renegotiation

unsigned int mbedtls_ssl_config::allow_legacy_renegotiation

MBEDTLS_LEGACY_XXX

◆ authmode

unsigned int mbedtls_ssl_config::authmode

MBEDTLS_SSL_VERIFY_XXX

◆ ciphersuite_list

const int* mbedtls_ssl_config::ciphersuite_list[4]

allowed ciphersuites per version

◆ endpoint

unsigned int mbedtls_ssl_config::endpoint

0: client, 1: server

◆ f_dbg

void(* mbedtls_ssl_config::f_dbg) (void *, int, const char *, int, const char *)

Callback for printing debug output

◆ f_get_cache

int(* mbedtls_ssl_config::f_get_cache) (void *, mbedtls_ssl_session *)

Callback to retrieve a session from the cache

◆ f_rng

int(* mbedtls_ssl_config::f_rng) (void *, unsigned char *, size_t)

Callback for getting (pseudo-)random numbers

◆ f_set_cache

int(* mbedtls_ssl_config::f_set_cache) (void *, const mbedtls_ssl_session *)

Callback to store a session into the cache

◆ max_major_ver

unsigned char mbedtls_ssl_config::max_major_ver

max. major version used

◆ max_minor_ver

unsigned char mbedtls_ssl_config::max_minor_ver

max. minor version used

◆ min_major_ver

unsigned char mbedtls_ssl_config::min_major_ver

min. major version used

◆ min_minor_ver

unsigned char mbedtls_ssl_config::min_minor_ver

min. minor version used

◆ p_cache

void* mbedtls_ssl_config::p_cache

context for cache callbacks

◆ p_dbg

void* mbedtls_ssl_config::p_dbg

context for the debug function

◆ p_rng

void* mbedtls_ssl_config::p_rng

context for the RNG function

◆ read_timeout

uint32_t mbedtls_ssl_config::read_timeout

timeout for mbedtls_ssl_read (ms)

◆ transport

unsigned int mbedtls_ssl_config::transport

stream (TLS) or datagram (DTLS)


The documentation for this struct was generated from the following file: