Struct esp_idf_svc::hal::sys::mbedtls_ssl_context
source · #[repr(C)]pub struct mbedtls_ssl_context {Show 59 fields
pub private_conf: *const mbedtls_ssl_config,
pub private_state: i32,
pub private_renego_status: i32,
pub private_renego_records_seen: i32,
pub private_tls_version: u32,
pub private_badmac_seen: u32,
pub private_f_vrfy: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_x509_crt, _: i32, _: *mut u32) -> i32>,
pub private_p_vrfy: *mut c_void,
pub private_f_send: Option<unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize) -> i32>,
pub private_f_recv: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>,
pub private_f_recv_timeout: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize, _: u32) -> i32>,
pub private_p_bio: *mut c_void,
pub private_session_in: *mut mbedtls_ssl_session,
pub private_session_out: *mut mbedtls_ssl_session,
pub private_session: *mut mbedtls_ssl_session,
pub private_session_negotiate: *mut mbedtls_ssl_session,
pub private_handshake: *mut mbedtls_ssl_handshake_params,
pub private_transform_in: *mut mbedtls_ssl_transform,
pub private_transform_out: *mut mbedtls_ssl_transform,
pub private_transform: *mut mbedtls_ssl_transform,
pub private_transform_negotiate: *mut mbedtls_ssl_transform,
pub private_p_timer: *mut c_void,
pub private_f_set_timer: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: u32)>,
pub private_f_get_timer: Option<unsafe extern "C" fn(_: *mut c_void) -> i32>,
pub private_in_buf: *mut u8,
pub private_in_ctr: *mut u8,
pub private_in_hdr: *mut u8,
pub private_in_len: *mut u8,
pub private_in_iv: *mut u8,
pub private_in_msg: *mut u8,
pub private_in_offt: *mut u8,
pub private_in_msgtype: i32,
pub private_in_msglen: usize,
pub private_in_left: usize,
pub private_in_hslen: usize,
pub private_nb_zero: i32,
pub private_keep_current_message: i32,
pub private_send_alert: u8,
pub private_alert_type: u8,
pub private_alert_reason: i32,
pub private_out_buf: *mut u8,
pub private_out_ctr: *mut u8,
pub private_out_hdr: *mut u8,
pub private_out_len: *mut u8,
pub private_out_iv: *mut u8,
pub private_out_msg: *mut u8,
pub private_out_msgtype: i32,
pub private_out_msglen: usize,
pub private_out_left: usize,
pub private_cur_out_ctr: [u8; 8],
pub private_hostname: *mut i8,
pub private_alpn_chosen: *const i8,
pub private_secure_renegotiation: i32,
pub private_verify_data_len: usize,
pub private_own_verify_data: [i8; 12],
pub private_peer_verify_data: [i8; 12],
pub private_f_export_keys: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: *const u8, _: usize, _: *const u8, _: *const u8, _: u32)>,
pub private_p_export_keys: *mut c_void,
pub private_user_data: mbedtls_ssl_user_data_t,
}
Fields§
§private_conf: *const mbedtls_ssl_config
§private_state: i32
§private_renego_status: i32
§private_renego_records_seen: i32
§private_tls_version: u32
§private_badmac_seen: u32
§private_f_vrfy: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_x509_crt, _: i32, _: *mut u32) -> i32>
§private_p_vrfy: *mut c_void
§private_f_send: Option<unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize) -> i32>
§private_f_recv: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>
§private_f_recv_timeout: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize, _: u32) -> i32>
§private_p_bio: *mut c_void
§private_session_in: *mut mbedtls_ssl_session
§private_session_out: *mut mbedtls_ssl_session
§private_session: *mut mbedtls_ssl_session
§private_session_negotiate: *mut mbedtls_ssl_session
§private_handshake: *mut mbedtls_ssl_handshake_params
§private_transform_in: *mut mbedtls_ssl_transform
§private_transform_out: *mut mbedtls_ssl_transform
§private_transform: *mut mbedtls_ssl_transform
§private_transform_negotiate: *mut mbedtls_ssl_transform
§private_p_timer: *mut c_void
§private_f_set_timer: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: u32)>
§private_f_get_timer: Option<unsafe extern "C" fn(_: *mut c_void) -> i32>
§private_in_buf: *mut u8
§private_in_ctr: *mut u8
§private_in_hdr: *mut u8
§private_in_len: *mut u8
§private_in_iv: *mut u8
§private_in_msg: *mut u8
§private_in_offt: *mut u8
§private_in_msgtype: i32
§private_in_msglen: usize
§private_in_left: usize
§private_in_hslen: usize
§private_nb_zero: i32
§private_keep_current_message: i32
§private_send_alert: u8
§private_alert_type: u8
§private_alert_reason: i32
§private_out_buf: *mut u8
§private_out_ctr: *mut u8
§private_out_hdr: *mut u8
§private_out_len: *mut u8
§private_out_iv: *mut u8
§private_out_msg: *mut u8
§private_out_msgtype: i32
§private_out_msglen: usize
§private_out_left: usize
§private_cur_out_ctr: [u8; 8]
§private_hostname: *mut i8
§private_alpn_chosen: *const i8
§private_secure_renegotiation: i32
§private_verify_data_len: usize
§private_own_verify_data: [i8; 12]
§private_peer_verify_data: [i8; 12]
§private_f_export_keys: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: *const u8, _: usize, _: *const u8, _: *const u8, _: u32)>
§private_p_export_keys: *mut c_void
§private_user_data: mbedtls_ssl_user_data_t
Trait Implementations§
source§impl Clone for mbedtls_ssl_context
impl Clone for mbedtls_ssl_context
source§fn clone(&self) -> mbedtls_ssl_context
fn clone(&self) -> mbedtls_ssl_context
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_context
impl Default for mbedtls_ssl_context
source§fn default() -> mbedtls_ssl_context
fn default() -> mbedtls_ssl_context
Returns the “default value” for a type. Read more
impl Copy for mbedtls_ssl_context
Auto Trait Implementations§
impl Freeze for mbedtls_ssl_context
impl RefUnwindSafe for mbedtls_ssl_context
impl !Send for mbedtls_ssl_context
impl !Sync for mbedtls_ssl_context
impl Unpin for mbedtls_ssl_context
impl UnwindSafe for mbedtls_ssl_context
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
)