Struct esp_idf_sys::mbedtls_ssl_config
source · #[repr(C)]pub struct mbedtls_ssl_config {Show 42 fields
pub private_max_tls_version: mbedtls_ssl_protocol_version,
pub private_min_tls_version: mbedtls_ssl_protocol_version,
pub private_endpoint: u8,
pub private_transport: u8,
pub private_authmode: u8,
pub private_allow_legacy_renegotiation: u8,
pub private_mfl_code: u8,
pub private_encrypt_then_mac: u8,
pub private_extended_ms: u8,
pub private_disable_renegotiation: u8,
pub private_session_tickets: u8,
pub private_cert_req_ca_list: u8,
pub private_respect_cli_pref: u8,
pub private_ciphersuite_list: *const c_int,
pub private_f_dbg: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: *const c_char)>,
pub private_p_dbg: *mut c_void,
pub private_f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>,
pub private_p_rng: *mut c_void,
pub private_f_get_cache: mbedtls_ssl_cache_get_t,
pub private_f_set_cache: mbedtls_ssl_cache_set_t,
pub private_p_cache: *mut c_void,
pub private_f_sni: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>,
pub private_p_sni: *mut c_void,
pub private_f_vrfy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_x509_crt, arg3: c_int, arg4: *mut u32) -> c_int>,
pub private_p_vrfy: *mut c_void,
pub private_f_ticket_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const mbedtls_ssl_session, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: *mut usize, arg6: *mut u32) -> c_int>,
pub private_f_ticket_parse: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_session, arg3: *mut c_uchar, arg4: usize) -> c_int>,
pub private_p_ticket: *mut c_void,
pub private_cert_profile: *const mbedtls_x509_crt_profile,
pub private_key_cert: *mut mbedtls_ssl_key_cert,
pub private_ca_chain: *mut mbedtls_x509_crt,
pub private_ca_crl: *mut mbedtls_x509_crl,
pub private_sig_algs: *const u16,
pub private_group_list: *const u16,
pub private_alpn_list: *mut *const c_char,
pub private_read_timeout: u32,
pub private_renego_max_records: c_int,
pub private_renego_period: [c_uchar; 8],
pub private_badmac_limit: c_uint,
pub private_user_data: mbedtls_ssl_user_data_t,
pub private_f_cert_cb: mbedtls_ssl_hs_cb_t,
pub private_dn_hints: *const mbedtls_x509_crt,
}
Expand description
SSL/TLS configuration to be shared between mbedtls_ssl_context structures.
Fields§
§private_max_tls_version: mbedtls_ssl_protocol_version
§private_min_tls_version: mbedtls_ssl_protocol_version
§private_endpoint: u8
§private_transport: u8
§private_authmode: u8
§private_allow_legacy_renegotiation: u8
§private_mfl_code: u8
§private_encrypt_then_mac: u8
§private_extended_ms: u8
§private_disable_renegotiation: u8
§private_session_tickets: u8
§private_cert_req_ca_list: u8
§private_respect_cli_pref: u8
§private_ciphersuite_list: *const c_int
§private_f_dbg: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: *const c_char)>
§private_p_dbg: *mut c_void
§private_f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>
§private_p_rng: *mut c_void
§private_f_get_cache: mbedtls_ssl_cache_get_t
§private_f_set_cache: mbedtls_ssl_cache_set_t
§private_p_cache: *mut c_void
§private_f_sni: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>
§private_p_sni: *mut c_void
§private_f_vrfy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_x509_crt, arg3: c_int, arg4: *mut u32) -> c_int>
§private_p_vrfy: *mut c_void
§private_f_ticket_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const mbedtls_ssl_session, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: *mut usize, arg6: *mut u32) -> c_int>
§private_f_ticket_parse: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_ssl_session, arg3: *mut c_uchar, arg4: usize) -> c_int>
§private_p_ticket: *mut c_void
§private_cert_profile: *const mbedtls_x509_crt_profile
§private_key_cert: *mut mbedtls_ssl_key_cert
§private_ca_chain: *mut mbedtls_x509_crt
§private_ca_crl: *mut mbedtls_x509_crl
§private_sig_algs: *const u16
§private_group_list: *const u16
§private_alpn_list: *mut *const c_char
§private_read_timeout: u32
§private_renego_max_records: c_int
§private_renego_period: [c_uchar; 8]
§private_badmac_limit: c_uint
§private_user_data: mbedtls_ssl_user_data_t
§private_f_cert_cb: mbedtls_ssl_hs_cb_t
§private_dn_hints: *const mbedtls_x509_crt
Trait Implementations§
source§impl Clone for mbedtls_ssl_config
impl Clone for mbedtls_ssl_config
source§fn clone(&self) -> mbedtls_ssl_config
fn clone(&self) -> mbedtls_ssl_config
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for mbedtls_ssl_config
impl Default for mbedtls_ssl_config
impl Copy for mbedtls_ssl_config
Auto Trait Implementations§
impl Freeze for mbedtls_ssl_config
impl RefUnwindSafe for mbedtls_ssl_config
impl !Send for mbedtls_ssl_config
impl !Sync for mbedtls_ssl_config
impl Unpin for mbedtls_ssl_config
impl UnwindSafe for mbedtls_ssl_config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)