mbed TLS v2.2.0
Data Fields
mbedtls_ssl_context Struct Reference

Detailed Description

Definition at line 642 of file ssl.h.

#include <ssl.h>

Collaboration diagram for mbedtls_ssl_context:
Collaboration graph
[legend]

Data Fields

const mbedtls_ssl_configconf
 
int state
 
int major_ver
 
int minor_ver
 
int(* f_send )(void *, const unsigned char *, size_t)
 
int(* f_recv )(void *, unsigned char *, size_t)
 
int(* f_recv_timeout )(void *, unsigned char *, size_t, uint32_t)
 
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
 
void(* f_set_timer )(void *, uint32_t, uint32_t)
 
int(* f_get_timer )(void *)
 
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 record_read
 
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
 
int client_auth
 
int secure_renegotiation
 

Field Documentation

int mbedtls_ssl_context::client_auth

flag for client auth.

Definition at line 753 of file ssl.h.

const mbedtls_ssl_config* mbedtls_ssl_context::conf

configuration information

Definition at line 644 of file ssl.h.

Referenced by mbedtls_ssl_hdr_len(), and mbedtls_ssl_hs_hdr_len().

int(* mbedtls_ssl_context::f_get_timer) (void *)

get timer callback

Definition at line 696 of file ssl.h.

int(* mbedtls_ssl_context::f_recv) (void *, unsigned char *, size_t)

Definition at line 668 of file ssl.h.

int(* mbedtls_ssl_context::f_recv_timeout) (void *, unsigned char *, size_t, uint32_t)

Definition at line 669 of file ssl.h.

int(* mbedtls_ssl_context::f_send) (void *, const unsigned char *, size_t)

Definition at line 667 of file ssl.h.

void(* mbedtls_ssl_context::f_set_timer) (void *, uint32_t, uint32_t)

set timer callback

Definition at line 695 of file ssl.h.

mbedtls_ssl_handshake_params* mbedtls_ssl_context::handshake

params required only during the handshake process

Definition at line 680 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_buf

input buffer

Definition at line 701 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_ctr

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

Definition at line 702 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_hdr

start of record header

Definition at line 705 of file ssl.h.

size_t mbedtls_ssl_context::in_hslen

current handshake message length, including the handshake header

Definition at line 724 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_iv

ivlen-byte IV

Definition at line 707 of file ssl.h.

size_t mbedtls_ssl_context::in_left

amount of data read so far

Definition at line 713 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_len

two-bytes message length field

Definition at line 706 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_msg

message contents (in_iv+ivlen)

Definition at line 708 of file ssl.h.

size_t mbedtls_ssl_context::in_msglen

record header: message length

Definition at line 712 of file ssl.h.

int mbedtls_ssl_context::in_msgtype

record header: message type

Definition at line 711 of file ssl.h.

unsigned char* mbedtls_ssl_context::in_offt

read offset in application data

Definition at line 709 of file ssl.h.

int mbedtls_ssl_context::major_ver

equal to MBEDTLS_SSL_MAJOR_VERSION_3

Definition at line 657 of file ssl.h.

int mbedtls_ssl_context::minor_ver

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

Definition at line 658 of file ssl.h.

int mbedtls_ssl_context::nb_zero

of 0-length encrypted messages

Definition at line 726 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_buf

output buffer

Definition at line 732 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_ctr

64-bit outgoing message counter

Definition at line 733 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_hdr

start of record header

Definition at line 734 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_iv

ivlen-byte IV

Definition at line 736 of file ssl.h.

size_t mbedtls_ssl_context::out_left

amount of data not yet written

Definition at line 741 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_len

two-bytes message length field

Definition at line 735 of file ssl.h.

unsigned char* mbedtls_ssl_context::out_msg

message contents (out_iv+ivlen)

Definition at line 737 of file ssl.h.

size_t mbedtls_ssl_context::out_msglen

record header: message length

Definition at line 740 of file ssl.h.

int mbedtls_ssl_context::out_msgtype

record header: message type

Definition at line 739 of file ssl.h.

void* mbedtls_ssl_context::p_bio

context for I/O operations

Definition at line 670 of file ssl.h.

void* mbedtls_ssl_context::p_timer

context for the timer callbacks

Definition at line 694 of file ssl.h.

int mbedtls_ssl_context::record_read

record is already present

Definition at line 727 of file ssl.h.

int mbedtls_ssl_context::secure_renegotiation

does peer support legacy or secure renegotiation

Definition at line 779 of file ssl.h.

mbedtls_ssl_session* mbedtls_ssl_context::session

negotiated session data

Definition at line 677 of file ssl.h.

mbedtls_ssl_session* mbedtls_ssl_context::session_in

current session data (in)

Definition at line 675 of file ssl.h.

mbedtls_ssl_session* mbedtls_ssl_context::session_negotiate

session data in negotiation

Definition at line 678 of file ssl.h.

mbedtls_ssl_session* mbedtls_ssl_context::session_out

current session data (out)

Definition at line 676 of file ssl.h.

int mbedtls_ssl_context::state

SSL handshake: current state

Definition at line 649 of file ssl.h.

mbedtls_ssl_transform* mbedtls_ssl_context::transform

negotiated transform params

Definition at line 688 of file ssl.h.

mbedtls_ssl_transform* mbedtls_ssl_context::transform_in

current transform params (in)

Definition at line 686 of file ssl.h.

mbedtls_ssl_transform* mbedtls_ssl_context::transform_negotiate

transform params in negotiation

Definition at line 689 of file ssl.h.

mbedtls_ssl_transform* mbedtls_ssl_context::transform_out

current transform params (in)

Definition at line 687 of file ssl.h.


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