Struct mbedtls_sys::mbedtls_ssl_config
[−]
[src]
#[repr(C)]pub struct mbedtls_ssl_config { pub ciphersuite_list: [*const c_int; 4], pub f_dbg: Option<unsafe extern "C" fn(_: *mut c_void, _: c_int, _: *const c_char, _: c_int, _: *const c_char)>, pub p_dbg: *mut c_void, pub f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_uchar, _: size_t) -> c_int>, pub p_rng: *mut c_void, pub f_get_cache: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_session) -> c_int>, pub f_set_cache: Option<unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session) -> c_int>, pub p_cache: *mut c_void, pub f_sni: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_context, _: *const c_uchar, _: size_t) -> c_int>, pub p_sni: *mut c_void, pub f_vrfy: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_x509_crt, _: c_int, _: *mut uint32_t) -> c_int>, pub p_vrfy: *mut c_void, pub f_psk: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_context, _: *const c_uchar, _: size_t) -> c_int>, pub p_psk: *mut c_void, pub f_cookie_write: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut *mut c_uchar, _: *mut c_uchar, _: *const c_uchar, _: size_t) -> c_int>, pub f_cookie_check: Option<unsafe extern "C" fn(_: *mut c_void, _: *const c_uchar, _: size_t, _: *const c_uchar, _: size_t) -> c_int>, pub p_cookie: *mut c_void, pub f_ticket_write: Option<unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session, _: *mut c_uchar, _: *const c_uchar, _: *mut size_t, _: *mut uint32_t) -> c_int>, pub f_ticket_parse: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_session, _: *mut c_uchar, _: size_t) -> c_int>, pub p_ticket: *mut c_void, pub cert_profile: *const mbedtls_x509_crt_profile, pub key_cert: *mut mbedtls_ssl_key_cert, pub ca_chain: *mut mbedtls_x509_crt, pub ca_crl: *mut mbedtls_x509_crl, pub sig_hashes: *const c_int, pub curve_list: *const mbedtls_ecp_group_id, pub dhm_P: mbedtls_mpi, pub dhm_G: mbedtls_mpi, pub psk: *mut c_uchar, pub psk_len: size_t, pub psk_identity: *mut c_uchar, pub psk_identity_len: size_t, pub alpn_list: *mut *const c_char, pub read_timeout: uint32_t, pub hs_timeout_min: uint32_t, pub hs_timeout_max: uint32_t, pub badmac_limit: c_uint, pub dhm_min_bitlen: c_uint, pub max_major_ver: c_uchar, pub max_minor_ver: c_uchar, pub min_major_ver: c_uchar, pub min_minor_ver: c_uchar, pub _bindgen_bitfield_1_: c_uint, }
Fields
ciphersuite_list: [*const c_int; 4]
f_dbg: Option<unsafe extern "C" fn(_: *mut c_void, _: c_int, _: *const c_char, _: c_int, _: *const c_char)>
p_dbg: *mut c_void
f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_uchar, _: size_t) -> c_int>
p_rng: *mut c_void
f_get_cache: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_session) -> c_int>
f_set_cache: Option<unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session) -> c_int>
p_cache: *mut c_void
f_sni: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_context, _: *const c_uchar, _: size_t) -> c_int>
p_sni: *mut c_void
f_vrfy: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_x509_crt, _: c_int, _: *mut uint32_t) -> c_int>
p_vrfy: *mut c_void
f_psk: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_context, _: *const c_uchar, _: size_t) -> c_int>
p_psk: *mut c_void
f_ticket_write: Option<unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session, _: *mut c_uchar, _: *const c_uchar, _: *mut size_t, _: *mut uint32_t) -> c_int>
f_ticket_parse: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_session, _: *mut c_uchar, _: size_t) -> c_int>
p_ticket: *mut c_void
cert_profile: *const mbedtls_x509_crt_profile
key_cert: *mut mbedtls_ssl_key_cert
ca_chain: *mut mbedtls_x509_crt
ca_crl: *mut mbedtls_x509_crl
sig_hashes: *const c_int
curve_list: *const mbedtls_ecp_group_id
dhm_P: mbedtls_mpi
dhm_G: mbedtls_mpi
psk: *mut c_uchar
psk_len: size_t
psk_identity: *mut c_uchar
psk_identity_len: size_t
alpn_list: *mut *const c_char
read_timeout: uint32_t
hs_timeout_min: uint32_t
hs_timeout_max: uint32_t
badmac_limit: c_uint
dhm_min_bitlen: c_uint
max_major_ver: c_uchar
max_minor_ver: c_uchar
min_major_ver: c_uchar
min_minor_ver: c_uchar
_bindgen_bitfield_1_: c_uint
Trait Implementations
impl Copy for mbedtls_ssl_config
[src]
impl Clone for mbedtls_ssl_config
[src]
fn clone(&self) -> mbedtls_ssl_config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more