#include <ssl.h>
Data Fields | |
int | sig_alg |
int | cert_type |
int | verify_sig_alg |
dhm_context | dhm_ctx |
ecdh_context | ecdh_ctx |
const ecp_curve_info ** | curves |
ssl_key_cert * | key_cert |
Current key/cert or key/cert list. | |
ssl_key_cert * | sni_key_cert |
md5_context | fin_md5 |
sha1_context | fin_sha1 |
sha256_context | fin_sha256 |
sha512_context | fin_sha512 |
void(* | update_checksum )(ssl_context *, const unsigned char *, size_t) |
void(* | calc_verify )(ssl_context *, unsigned char *) |
void(* | calc_finished )(ssl_context *, unsigned char *, int) |
int(* | tls_prf )(const unsigned char *, size_t, const char *, const unsigned char *, size_t, unsigned char *, size_t) |
size_t | pmslen |
unsigned char | randbytes [64] |
unsigned char | premaster [POLARSSL_PREMASTER_SIZE] |
int | resume |
int | max_major_ver |
int | max_minor_ver |
int | cli_exts |
int | new_session_ticket |
Definition at line 496 of file ssl.h.
void(* _ssl_handshake_params::calc_finished)(ssl_context *, unsigned char *, int) |
Referenced by ssl_derive_keys(), ssl_parse_finished(), and ssl_write_finished().
void(* _ssl_handshake_params::calc_verify)(ssl_context *, unsigned char *) |
Referenced by ssl_derive_keys(), ssl_parse_certificate_verify(), and ssl_write_certificate_verify().
Requested cert type
Definition at line 502 of file ssl.h.
Referenced by ssl_parse_certificate_request().
client extension presence
Definition at line 559 of file ssl.h.
Referenced by ssl_parse_client_hello(), and ssl_write_supported_point_formats_ext().
Supported elliptic curves
Definition at line 511 of file ssl.h.
Referenced by ssl_handshake_free(), ssl_parse_client_hello(), ssl_parse_supported_elliptic_curves(), ssl_pick_cert(), and ssl_write_server_key_exchange().
DHM key exchange
Definition at line 505 of file ssl.h.
Referenced by ssl_handshake_free(), ssl_parse_client_dh_public(), ssl_parse_client_key_exchange(), ssl_parse_server_dh_params(), ssl_psk_derive_premaster(), ssl_write_client_key_exchange(), and ssl_write_server_key_exchange().
ECDH key exchange
Definition at line 508 of file ssl.h.
Referenced by ssl_handshake_free(), ssl_handshake_init(), ssl_parse_client_key_exchange(), ssl_parse_server_ecdh_params(), ssl_parse_supported_point_formats(), ssl_parse_supported_point_formats_ext(), ssl_psk_derive_premaster(), ssl_write_client_key_exchange(), and ssl_write_server_key_exchange().
Definition at line 531 of file ssl.h.
Referenced by ssl_calc_finished_ssl(), ssl_calc_finished_tls(), ssl_calc_verify_ssl(), ssl_calc_verify_tls(), ssl_handshake_init(), ssl_update_checksum_md5sha1(), and ssl_update_checksum_start().
Definition at line 532 of file ssl.h.
Referenced by ssl_calc_finished_ssl(), ssl_calc_finished_tls(), ssl_calc_verify_ssl(), ssl_calc_verify_tls(), ssl_handshake_init(), ssl_update_checksum_md5sha1(), and ssl_update_checksum_start().
Definition at line 536 of file ssl.h.
Referenced by ssl_calc_finished_tls_sha256(), ssl_calc_verify_tls_sha256(), ssl_handshake_init(), ssl_update_checksum_sha256(), and ssl_update_checksum_start().
Definition at line 539 of file ssl.h.
Referenced by ssl_calc_finished_tls_sha384(), ssl_calc_verify_tls_sha384(), ssl_handshake_init(), ssl_update_checksum_sha384(), and ssl_update_checksum_start().
Current key/cert or key/cert list.
On client: pointer to ssl->key_cert, only the first entry used. On server: starts as a pointer to ssl->key_cert, then becomes a pointer to the chosen key from this list or the SNI list.
Definition at line 520 of file ssl.h.
Referenced by ssl_add_key_cert(), ssl_handshake_init(), ssl_own_cert(), ssl_own_key(), and ssl_pick_cert().
max. major version client
Definition at line 557 of file ssl.h.
Referenced by ssl_parse_client_hello(), ssl_parse_client_hello_v2(), and ssl_parse_encrypted_pms().
max. minor version client
Definition at line 558 of file ssl.h.
Referenced by ssl_parse_client_hello(), ssl_parse_client_hello_v2(), and ssl_parse_encrypted_pms().
use NewSessionTicket?
Definition at line 562 of file ssl.h.
Referenced by ssl_handshake_client_step(), ssl_handshake_server_step(), ssl_parse_new_session_ticket(), ssl_parse_session_ticket_ext(), ssl_write_new_session_ticket(), ssl_write_server_hello(), and ssl_write_session_ticket_ext().
premaster length
Definition at line 550 of file ssl.h.
Referenced by ssl_derive_keys(), ssl_parse_client_key_exchange(), ssl_parse_encrypted_pms(), ssl_psk_derive_premaster(), ssl_write_client_key_exchange(), and ssl_write_encrypted_pms().
unsigned char _ssl_handshake_params::premaster[POLARSSL_PREMASTER_SIZE] |
premaster secret
Definition at line 554 of file ssl.h.
Referenced by ssl_derive_keys(), ssl_parse_client_key_exchange(), ssl_parse_encrypted_pms(), ssl_psk_derive_premaster(), ssl_write_client_key_exchange(), and ssl_write_encrypted_pms().
unsigned char _ssl_handshake_params::randbytes[64] |
random bytes
Definition at line 552 of file ssl.h.
Referenced by ssl_derive_keys(), ssl_parse_client_hello(), ssl_parse_client_hello_v2(), ssl_parse_server_hello(), ssl_parse_server_key_exchange(), ssl_write_client_hello(), ssl_write_server_hello(), and ssl_write_server_key_exchange().
session resume indicator
Definition at line 556 of file ssl.h.
Referenced by ssl_derive_keys(), ssl_handshake_wrapup(), ssl_parse_finished(), ssl_parse_server_hello(), ssl_parse_session_ticket_ext(), ssl_set_session(), ssl_write_client_hello(), ssl_write_finished(), and ssl_write_server_hello().
Signature algorithm
Definition at line 501 of file ssl.h.
Referenced by ssl_handshake_init(), ssl_parse_signature_algorithms_ext(), and ssl_write_server_key_exchange().
key/cert list from SNI
Definition at line 522 of file ssl.h.
Referenced by ssl_handshake_free(), ssl_pick_cert(), and ssl_sni_wrapper().
int(* _ssl_handshake_params::tls_prf)(const unsigned char *, size_t, const char *, const unsigned char *, size_t, unsigned char *, size_t) |
Referenced by ssl_calc_finished_tls(), ssl_calc_finished_tls_sha256(), ssl_calc_finished_tls_sha384(), and ssl_derive_keys().
void(* _ssl_handshake_params::update_checksum)(ssl_context *, const unsigned char *, size_t) |
Signature algorithm for verify
Definition at line 503 of file ssl.h.
Referenced by ssl_parse_certificate_verify(), and ssl_write_certificate_request().