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

Data Fields

const mbedtls_ssl_configconf
 
int state
 
int major_ver
 
int minor_ver
 
mbedtls_ssl_send_tf_send
 
mbedtls_ssl_recv_tf_recv
 
mbedtls_ssl_recv_timeout_tf_recv_timeout
 
void * p_bio
 
mbedtls_ssl_sessionsession_in
 
mbedtls_ssl_sessionsession_out
 
mbedtls_ssl_sessionsession
 
mbedtls_ssl_sessionsession_negotiate
 
mbedtls_ssl_handshake_paramshandshake
 
mbedtls_ssl_transformtransform_in
 
mbedtls_ssl_transformtransform_out
 
mbedtls_ssl_transformtransform
 
mbedtls_ssl_transformtransform_negotiate
 
void * p_timer
 
mbedtls_ssl_set_timer_tf_set_timer
 
mbedtls_ssl_get_timer_tf_get_timer
 
unsigned char * in_buf
 
unsigned char * in_ctr
 
unsigned char * in_hdr
 
unsigned char * in_len
 
unsigned char * in_iv
 
unsigned char * in_msg
 
unsigned char * in_offt
 
int in_msgtype
 
size_t in_msglen
 
size_t in_left
 
size_t in_hslen
 
int nb_zero
 
int keep_current_message
 
unsigned char * out_buf
 
unsigned char * out_ctr
 
unsigned char * out_hdr
 
unsigned char * out_len
 
unsigned char * out_iv
 
unsigned char * out_msg
 
int out_msgtype
 
size_t out_msglen
 
size_t out_left
 
unsigned char cur_out_ctr [8]
 
int client_auth
 
int secure_renegotiation
 

Detailed Description

Definition at line 1206 of file ssl.h.

Field Documentation

◆ conf

const mbedtls_ssl_config* conf

configuration information

Definition at line 1208 of file ssl.h.

◆ state

int state

SSL handshake: current state

Definition at line 1213 of file ssl.h.

◆ major_ver

int major_ver

equal to MBEDTLS_SSL_MAJOR_VERSION_3

Definition at line 1221 of file ssl.h.

◆ minor_ver

int minor_ver

either 0 (SSL3) or 1 (TLS1.0)

Definition at line 1222 of file ssl.h.

◆ f_send

Callback for network send

Definition at line 1234 of file ssl.h.

◆ f_recv

Callback for network receive

Definition at line 1235 of file ssl.h.

◆ f_recv_timeout

mbedtls_ssl_recv_timeout_t* f_recv_timeout

Callback for network receive with timeout

Definition at line 1236 of file ssl.h.

◆ p_bio

void* p_bio

context for I/O operations

Definition at line 1239 of file ssl.h.

◆ session_in

mbedtls_ssl_session* session_in

current session data (in)

Definition at line 1244 of file ssl.h.

◆ session_out

mbedtls_ssl_session* session_out

current session data (out)

Definition at line 1245 of file ssl.h.

◆ session

negotiated session data

Definition at line 1246 of file ssl.h.

◆ session_negotiate

mbedtls_ssl_session* session_negotiate

session data in negotiation

Definition at line 1247 of file ssl.h.

◆ handshake

params required only during the handshake process

Definition at line 1249 of file ssl.h.

◆ transform_in

mbedtls_ssl_transform* transform_in

current transform params (in)

Definition at line 1255 of file ssl.h.

◆ transform_out

mbedtls_ssl_transform* transform_out

current transform params (in)

Definition at line 1256 of file ssl.h.

◆ transform

negotiated transform params

Definition at line 1257 of file ssl.h.

◆ transform_negotiate

mbedtls_ssl_transform* transform_negotiate

transform params in negotiation

Definition at line 1258 of file ssl.h.

◆ p_timer

void* p_timer

context for the timer callbacks

Definition at line 1263 of file ssl.h.

◆ f_set_timer

set timer callback

Definition at line 1265 of file ssl.h.

◆ f_get_timer

get timer callback

Definition at line 1266 of file ssl.h.

◆ in_buf

unsigned char* in_buf

input buffer

Definition at line 1271 of file ssl.h.

◆ in_ctr

unsigned char* in_ctr

64-bit incoming message counter TLS: maintained by us DTLS: read from peer

Definition at line 1272 of file ssl.h.

◆ in_hdr

unsigned char* in_hdr

start of record header

Definition at line 1275 of file ssl.h.

◆ in_len

unsigned char* in_len

two-bytes message length field

Definition at line 1280 of file ssl.h.

◆ in_iv

unsigned char* in_iv

ivlen-byte IV

Definition at line 1281 of file ssl.h.

◆ in_msg

unsigned char* in_msg

message contents (in_iv+ivlen)

Definition at line 1282 of file ssl.h.

◆ in_offt

unsigned char* in_offt

read offset in application data

Definition at line 1283 of file ssl.h.

◆ in_msgtype

int in_msgtype

record header: message type

Definition at line 1285 of file ssl.h.

◆ in_msglen

size_t in_msglen

record header: message length

Definition at line 1286 of file ssl.h.

◆ in_left

size_t in_left

amount of data read so far

Definition at line 1287 of file ssl.h.

◆ in_hslen

size_t in_hslen

current handshake message length, including the handshake header

Definition at line 1301 of file ssl.h.

◆ nb_zero

int nb_zero

of 0-length encrypted messages

Definition at line 1303 of file ssl.h.

◆ keep_current_message

int keep_current_message

drop or reuse current message on next call to record layer?

Definition at line 1305 of file ssl.h.

◆ out_buf

unsigned char* out_buf

output buffer

Definition at line 1316 of file ssl.h.

◆ out_ctr

unsigned char* out_ctr

64-bit outgoing message counter

Definition at line 1317 of file ssl.h.

◆ out_hdr

unsigned char* out_hdr

start of record header

Definition at line 1318 of file ssl.h.

◆ out_len

unsigned char* out_len

two-bytes message length field

Definition at line 1323 of file ssl.h.

◆ out_iv

unsigned char* out_iv

ivlen-byte IV

Definition at line 1324 of file ssl.h.

◆ out_msg

unsigned char* out_msg

message contents (out_iv+ivlen)

Definition at line 1325 of file ssl.h.

◆ out_msgtype

int out_msgtype

record header: message type

Definition at line 1327 of file ssl.h.

◆ out_msglen

size_t out_msglen

record header: message length

Definition at line 1328 of file ssl.h.

◆ out_left

size_t out_left

amount of data not yet written

Definition at line 1329 of file ssl.h.

◆ cur_out_ctr

unsigned char cur_out_ctr[8]

Outgoing record sequence number.

Definition at line 1334 of file ssl.h.

◆ client_auth

int client_auth

flag for client auth.

Definition at line 1350 of file ssl.h.

◆ secure_renegotiation

int secure_renegotiation

does peer support legacy or secure renegotiation

Definition at line 1383 of file ssl.h.