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

source§

fn clone(&self) -> mbedtls_ssl_context

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for mbedtls_ssl_context

source§

fn default() -> mbedtls_ssl_context

Returns the “default value” for a type. Read more
source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.