PolarSSL v1.3.1
Data Fields
_ssl_context Struct Reference

#include <ssl.h>

Collaboration diagram for _ssl_context:
Collaboration graph
[legend]

Data Fields

int state
 
int renegotiation
 
int major_ver
 
int minor_ver
 
int max_major_ver
 
int max_minor_ver
 
int min_major_ver
 
int min_minor_ver
 
int(* f_rng )(void *, unsigned char *, size_t)
 
void(* f_dbg )(void *, int, const char *)
 
int(* f_recv )(void *, unsigned char *, size_t)
 
int(* f_send )(void *, const unsigned char *, size_t)
 
int(* f_get_cache )(void *, ssl_session *)
 
int(* f_set_cache )(void *, const ssl_session *)
 
void * p_rng
 
void * p_dbg
 
void * p_recv
 
void * p_send
 
void * p_get_cache
 
void * p_set_cache
 
void * p_hw_data
 
int(* f_sni )(void *, ssl_context *, const unsigned char *, size_t)
 
void * p_sni
 
int(* f_vrfy )(void *, x509_crt *, int, int *)
 
void * p_vrfy
 
int(* f_psk )(void *, ssl_context *, const unsigned char *, size_t)
 
void * p_psk
 
ssl_sessionsession_in
 
ssl_sessionsession_out
 
ssl_sessionsession
 
ssl_sessionsession_negotiate
 
ssl_handshake_paramshandshake
 
ssl_transformtransform_in
 
ssl_transformtransform_out
 
ssl_transformtransform
 
ssl_transformtransform_negotiate
 
unsigned char * in_ctr
 
unsigned char * in_hdr
 
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_ctr
 
unsigned char * out_hdr
 
unsigned char * out_iv
 
unsigned char * out_msg
 
int out_msgtype
 
size_t out_msglen
 
size_t out_left
 
unsigned char mfl_code
 
ssl_key_certkey_cert
 
x509_crtca_chain
 
x509_crlca_crl
 
const char * peer_cn
 
ssl_ticket_keysticket_keys
 
int endpoint
 
int authmode
 
int client_auth
 
int verify_result
 
int disable_renegotiation
 
int allow_legacy_renegotiation
 
const int * ciphersuite_list [4]
 
int trunc_hmac
 
int session_tickets
 
int ticket_lifetime
 
mpi dhm_P
 
mpi dhm_G
 
unsigned char * psk
 
size_t psk_len
 
unsigned char * psk_identity
 
size_t psk_identity_len
 
unsigned char * hostname
 
size_t hostname_len
 
int secure_renegotiation
 
size_t verify_data_len
 
char own_verify_data [36]
 
char peer_verify_data [36]
 

Detailed Description

Definition at line 581 of file ssl.h.

Field Documentation

int _ssl_context::allow_legacy_renegotiation

allow legacy renegotiation

Definition at line 711 of file ssl.h.

int _ssl_context::authmode

verification mode

Definition at line 707 of file ssl.h.

x509_crt* _ssl_context::ca_chain

own trusted CA chain

Definition at line 691 of file ssl.h.

x509_crl* _ssl_context::ca_crl

trusted CA CRLs

Definition at line 692 of file ssl.h.

const int* _ssl_context::ciphersuite_list[4]

allowed ciphersuites / version

Definition at line 712 of file ssl.h.

int _ssl_context::client_auth

flag for client auth.

Definition at line 708 of file ssl.h.

mpi _ssl_context::dhm_G

generator for DHM

Definition at line 723 of file ssl.h.

mpi _ssl_context::dhm_P

prime modulus for DHM

Definition at line 722 of file ssl.h.

int _ssl_context::disable_renegotiation

enable/disable renegotiation

Definition at line 710 of file ssl.h.

int _ssl_context::endpoint

0: client, 1: server

Definition at line 706 of file ssl.h.

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

Definition at line 601 of file ssl.h.

int(* _ssl_context::f_get_cache)(void *, ssl_session *)

Definition at line 604 of file ssl.h.

int(* _ssl_context::f_psk)(void *, ssl_context *, const unsigned char *, size_t)

Definition at line 626 of file ssl.h.

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

Definition at line 602 of file ssl.h.

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

Definition at line 600 of file ssl.h.

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

Definition at line 603 of file ssl.h.

int(* _ssl_context::f_set_cache)(void *, const ssl_session *)

Definition at line 605 of file ssl.h.

int(* _ssl_context::f_sni)(void *, ssl_context *, const unsigned char *, size_t)

Definition at line 616 of file ssl.h.

int(* _ssl_context::f_vrfy)(void *, x509_crt *, int, int *)

Definition at line 621 of file ssl.h.

ssl_handshake_params* _ssl_context::handshake

params required only during the handshake process

Definition at line 638 of file ssl.h.

Referenced by ssl_own_cert(), and ssl_own_key().

unsigned char* _ssl_context::hostname

Definition at line 740 of file ssl.h.

size_t _ssl_context::hostname_len

Definition at line 741 of file ssl.h.

unsigned char* _ssl_context::in_ctr

64-bit incoming message counter

Definition at line 652 of file ssl.h.

unsigned char* _ssl_context::in_hdr

5-byte record header (in_ctr+8)

Definition at line 653 of file ssl.h.

size_t _ssl_context::in_hslen

current handshake message length

Definition at line 662 of file ssl.h.

unsigned char* _ssl_context::in_iv

ivlen-byte IV (in_hdr+5)

Definition at line 654 of file ssl.h.

size_t _ssl_context::in_left

amount of data read so far

Definition at line 660 of file ssl.h.

unsigned char* _ssl_context::in_msg

message contents (in_iv+ivlen)

Definition at line 655 of file ssl.h.

size_t _ssl_context::in_msglen

record header: message length

Definition at line 659 of file ssl.h.

int _ssl_context::in_msgtype

record header: message type

Definition at line 658 of file ssl.h.

unsigned char* _ssl_context::in_offt

read offset in application data

Definition at line 656 of file ssl.h.

ssl_key_cert* _ssl_context::key_cert

own certificate(s)/key(s)

Definition at line 689 of file ssl.h.

int _ssl_context::major_ver

equal to SSL_MAJOR_VERSION_3

Definition at line 589 of file ssl.h.

int _ssl_context::max_major_ver

max. major version used

Definition at line 592 of file ssl.h.

int _ssl_context::max_minor_ver

max. minor version used

Definition at line 593 of file ssl.h.

unsigned char _ssl_context::mfl_code

MaxFragmentLength chosen by us

Definition at line 682 of file ssl.h.

int _ssl_context::min_major_ver

min. major version used

Definition at line 594 of file ssl.h.

int _ssl_context::min_minor_ver

min. minor version used

Definition at line 595 of file ssl.h.

int _ssl_context::minor_ver

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

Definition at line 590 of file ssl.h.

int _ssl_context::nb_zero

of 0-length encrypted messages

Definition at line 663 of file ssl.h.

unsigned char* _ssl_context::out_ctr

64-bit outgoing message counter

Definition at line 669 of file ssl.h.

unsigned char* _ssl_context::out_hdr

5-byte record header (out_ctr+8)

Definition at line 670 of file ssl.h.

unsigned char* _ssl_context::out_iv

ivlen-byte IV (out_hdr+5)

Definition at line 671 of file ssl.h.

size_t _ssl_context::out_left

amount of data not yet written

Definition at line 676 of file ssl.h.

unsigned char* _ssl_context::out_msg

message contents (out_iv+ivlen)

Definition at line 672 of file ssl.h.

size_t _ssl_context::out_msglen

record header: message length

Definition at line 675 of file ssl.h.

int _ssl_context::out_msgtype

record header: message type

Definition at line 674 of file ssl.h.

char _ssl_context::own_verify_data[36]

previous handshake verify data

Definition at line 750 of file ssl.h.

void* _ssl_context::p_dbg

context for the debug function

Definition at line 608 of file ssl.h.

void* _ssl_context::p_get_cache

context for cache retrieval

Definition at line 611 of file ssl.h.

void* _ssl_context::p_hw_data

context for HW acceleration

Definition at line 613 of file ssl.h.

void* _ssl_context::p_psk

context for PSK retrieval

Definition at line 627 of file ssl.h.

void* _ssl_context::p_recv

context for reading operations

Definition at line 609 of file ssl.h.

void* _ssl_context::p_rng

context for the RNG function

Definition at line 607 of file ssl.h.

void* _ssl_context::p_send

context for writing operations

Definition at line 610 of file ssl.h.

void* _ssl_context::p_set_cache

context for cache store

Definition at line 612 of file ssl.h.

void* _ssl_context::p_sni

context for SNI extension

Definition at line 617 of file ssl.h.

void* _ssl_context::p_vrfy

context for verification

Definition at line 622 of file ssl.h.

const char* _ssl_context::peer_cn

expected peer CN

Definition at line 693 of file ssl.h.

char _ssl_context::peer_verify_data[36]

previous handshake verify data

Definition at line 751 of file ssl.h.

unsigned char* _ssl_context::psk

Definition at line 730 of file ssl.h.

unsigned char* _ssl_context::psk_identity

Definition at line 732 of file ssl.h.

size_t _ssl_context::psk_identity_len

Definition at line 733 of file ssl.h.

size_t _ssl_context::psk_len

Definition at line 731 of file ssl.h.

int _ssl_context::record_read

record is already present

Definition at line 664 of file ssl.h.

int _ssl_context::renegotiation

Initial or renegotiation

Definition at line 587 of file ssl.h.

int _ssl_context::secure_renegotiation

does peer support legacy or secure renegotiation

Definition at line 747 of file ssl.h.

ssl_session* _ssl_context::session

negotiated session data

Definition at line 635 of file ssl.h.

ssl_session* _ssl_context::session_in

current session data (in)

Definition at line 633 of file ssl.h.

ssl_session* _ssl_context::session_negotiate

session data in negotiation

Definition at line 636 of file ssl.h.

ssl_session* _ssl_context::session_out

current session data (out)

Definition at line 634 of file ssl.h.

int _ssl_context::session_tickets

use session tickets?

Definition at line 717 of file ssl.h.

int _ssl_context::state

SSL handshake: current state

Definition at line 586 of file ssl.h.

ssl_ticket_keys* _ssl_context::ticket_keys

keys for ticket encryption

Definition at line 700 of file ssl.h.

int _ssl_context::ticket_lifetime

session ticket lifetime

Definition at line 718 of file ssl.h.

ssl_transform* _ssl_context::transform

negotiated transform params

Definition at line 646 of file ssl.h.

ssl_transform* _ssl_context::transform_in

current transform params (in)

Definition at line 644 of file ssl.h.

ssl_transform* _ssl_context::transform_negotiate

transform params in negotiation

Definition at line 647 of file ssl.h.

ssl_transform* _ssl_context::transform_out

current transform params (in)

Definition at line 645 of file ssl.h.

int _ssl_context::trunc_hmac

negotiate truncated hmac?

Definition at line 714 of file ssl.h.

size_t _ssl_context::verify_data_len

length of verify data stored

Definition at line 749 of file ssl.h.

int _ssl_context::verify_result

verification result

Definition at line 709 of file ssl.h.


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