mbed TLS v2.2.0
Data Fields
mbedtls_ssl_config Struct Reference

Detailed Description

SSL/TLS configuration to be shared between mbedtls_ssl_context structures.

Definition at line 469 of file ssl.h.

#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
 

Field Documentation

unsigned int mbedtls_ssl_config::allow_legacy_renegotiation

MBEDTLS_LEGACY_XXX

Definition at line 608 of file ssl.h.

unsigned int mbedtls_ssl_config::authmode

MBEDTLS_SSL_VERIFY_XXX

Definition at line 606 of file ssl.h.

const int* mbedtls_ssl_config::ciphersuite_list[4]

allowed ciphersuites per version

Definition at line 477 of file ssl.h.

unsigned int mbedtls_ssl_config::endpoint

0: client, 1: server

Definition at line 604 of file ssl.h.

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

Callback for printing debug output.

Definition at line 480 of file ssl.h.

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

Callback to retrieve a session from the cache.

Definition at line 488 of file ssl.h.

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

Callback for getting (pseudo-)random numbers.

Definition at line 484 of file ssl.h.

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

Callback to store a session into the cache.

Definition at line 490 of file ssl.h.

unsigned char mbedtls_ssl_config::max_major_ver

max. major version used

Definition at line 595 of file ssl.h.

unsigned char mbedtls_ssl_config::max_minor_ver

max. minor version used

Definition at line 596 of file ssl.h.

unsigned char mbedtls_ssl_config::min_major_ver

min. major version used

Definition at line 597 of file ssl.h.

unsigned char mbedtls_ssl_config::min_minor_ver

min. minor version used

Definition at line 598 of file ssl.h.

void* mbedtls_ssl_config::p_cache

context for cache callbacks

Definition at line 491 of file ssl.h.

void* mbedtls_ssl_config::p_dbg

context for the debug function

Definition at line 481 of file ssl.h.

void* mbedtls_ssl_config::p_rng

context for the RNG function

Definition at line 485 of file ssl.h.

uint32_t mbedtls_ssl_config::read_timeout

timeout for mbedtls_ssl_read (ms)

Definition at line 572 of file ssl.h.

unsigned int mbedtls_ssl_config::transport

stream (TLS) or datagram (DTLS)

Definition at line 605 of file ssl.h.

Referenced by mbedtls_ssl_hdr_len(), and mbedtls_ssl_hs_hdr_len().


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