Mbed OS Reference
Loading...
Searching...
No Matches
mbedtls_ssl_config Struct Reference

SSL/TLS configuration to be shared between mbedtls_ssl_context structures. More...

#include <ssl.h>

Data Fields

const int * ciphersuite_list [4]
 
void(* f_dbg )(void *, int, const char *, int, const char *)
 Callback for printing debug output
More...
 
void * p_dbg
 
int(* f_rng )(void *, unsigned char *, size_t)
 Callback for getting (pseudo-)random numbers
More...
 
void * p_rng
 
int(* f_get_cache )(void *, mbedtls_ssl_session *)
 Callback to retrieve a session from the cache
More...
 
int(* f_set_cache )(void *, const mbedtls_ssl_session *)
 Callback to store a session into the cache
More...
 
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.

Definition at line 963 of file ssl.h.

Field Documentation

◆ ciphersuite_list

const int* ciphersuite_list[4]

allowed ciphersuites per version

Definition at line 971 of file ssl.h.

◆ f_dbg

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

Callback for printing debug output

Definition at line 974 of file ssl.h.

◆ p_dbg

void* p_dbg

context for the debug function

Definition at line 975 of file ssl.h.

◆ f_rng

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

Callback for getting (pseudo-)random numbers

Definition at line 978 of file ssl.h.

◆ p_rng

void* p_rng

context for the RNG function

Definition at line 979 of file ssl.h.

◆ f_get_cache

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

Callback to retrieve a session from the cache

Definition at line 982 of file ssl.h.

◆ f_set_cache

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

Callback to store a session into the cache

Definition at line 984 of file ssl.h.

◆ p_cache

void* p_cache

context for cache callbacks

Definition at line 985 of file ssl.h.

◆ read_timeout

uint32_t read_timeout

timeout for mbedtls_ssl_read (ms)

Definition at line 1124 of file ssl.h.

◆ max_major_ver

unsigned char max_major_ver

max. major version used

Definition at line 1147 of file ssl.h.

◆ max_minor_ver

unsigned char max_minor_ver

max. minor version used

Definition at line 1148 of file ssl.h.

◆ min_major_ver

unsigned char min_major_ver

min. major version used

Definition at line 1149 of file ssl.h.

◆ min_minor_ver

unsigned char min_minor_ver

min. minor version used

Definition at line 1150 of file ssl.h.

◆ endpoint

unsigned int endpoint

0: client, 1: server

Definition at line 1156 of file ssl.h.

◆ transport

unsigned int transport

stream (TLS) or datagram (DTLS)

Definition at line 1157 of file ssl.h.

◆ authmode

unsigned int authmode

MBEDTLS_SSL_VERIFY_XXX

Definition at line 1158 of file ssl.h.

◆ allow_legacy_renegotiation

unsigned int allow_legacy_renegotiation

MBEDTLS_LEGACY_XXX

Definition at line 1160 of file ssl.h.