Skip to main content

ssl_config

Struct ssl_config 

Source
#[repr(C)]
pub struct ssl_config {
Show 62 fields 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 endpoint: u8, pub transport: u8, pub authmode: u8, pub allow_legacy_renegotiation: u8, pub arc4_disabled: u8, pub mfl_code: u8, pub encrypt_then_mac: u8, pub extended_ms: u8, pub anti_replay: u8, pub cbc_record_splitting: u8, pub disable_renegotiation: u8, pub trunc_hmac: u8, pub session_tickets: u8, pub fallback: u8, pub cert_req_ca_list: u8, pub read_timeout: u32, pub hs_timeout_min: u32, pub hs_timeout_max: u32, pub renego_max_records: c_int, pub renego_period: [c_uchar; 8], pub badmac_limit: c_uint, pub dhm_min_bitlen: c_uint, pub ciphersuite_list: [*const c_int; 4], pub 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 p_dbg: *mut c_void, pub f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>, pub p_rng: *mut c_void, pub f_get_cache: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_session) -> c_int>, pub f_set_cache: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const ssl_session) -> c_int>, pub p_cache: *mut c_void, pub f_sni: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>, pub p_sni: *mut c_void, pub f_vrfy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut x509_crt, arg3: c_int, arg4: *mut u32) -> c_int>, pub p_vrfy: *mut c_void, pub f_psk: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>, pub p_psk: *mut c_void, pub f_cookie_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut *mut c_uchar, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: usize) -> c_int>, pub f_cookie_check: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: usize, arg4: *const c_uchar, arg5: usize) -> c_int>, pub p_cookie: *mut c_void, pub f_ticket_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const ssl_session, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: *mut usize, arg6: *mut u32) -> c_int>, pub f_ticket_parse: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_session, arg3: *mut c_uchar, arg4: usize) -> c_int>, pub p_ticket: *mut c_void, pub f_export_keys: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: *const c_uchar, arg4: usize, arg5: usize, arg6: usize) -> c_int>, pub f_export_keys_ext: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: *const c_uchar, arg4: usize, arg5: usize, arg6: usize, arg7: *const c_uchar, arg8: *const c_uchar, arg9: tls_prf_types) -> c_int>, pub p_export_keys: *mut c_void, pub cert_profile: *const x509_crt_profile, pub key_cert: *mut ssl_key_cert, pub ca_chain: *mut x509_crt, pub ca_crl: *mut x509_crl, pub sig_hashes: *const c_int, pub curve_list: *const ecp_group_id, pub dhm_P: mpi, pub dhm_G: mpi, pub psk: *mut c_uchar, pub psk_len: usize, pub psk_identity: *mut c_uchar, pub psk_identity_len: usize, pub alpn_list: *mut *const c_char,
}

Fields§

§max_major_ver: c_uchar§max_minor_ver: c_uchar§min_major_ver: c_uchar§min_minor_ver: c_uchar§endpoint: u8§transport: u8§authmode: u8§allow_legacy_renegotiation: u8§arc4_disabled: u8§mfl_code: u8§encrypt_then_mac: u8§extended_ms: u8§anti_replay: u8§cbc_record_splitting: u8§disable_renegotiation: u8§trunc_hmac: u8§session_tickets: u8§fallback: u8§cert_req_ca_list: u8§read_timeout: u32§hs_timeout_min: u32§hs_timeout_max: u32§renego_max_records: c_int§renego_period: [c_uchar; 8]§badmac_limit: c_uint§dhm_min_bitlen: c_uint§ciphersuite_list: [*const c_int; 4]§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)>§p_dbg: *mut c_void§f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>§p_rng: *mut c_void§f_get_cache: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_session) -> c_int>§f_set_cache: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const ssl_session) -> c_int>§p_cache: *mut c_void§f_sni: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>§p_sni: *mut c_void§f_vrfy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut x509_crt, arg3: c_int, arg4: *mut u32) -> c_int>§p_vrfy: *mut c_void§f_psk: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_context, arg3: *const c_uchar, arg4: usize) -> c_int>§p_psk: *mut c_void§f_cookie_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut *mut c_uchar, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: usize) -> c_int>§f_cookie_check: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: usize, arg4: *const c_uchar, arg5: usize) -> c_int>§p_cookie: *mut c_void§f_ticket_write: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const ssl_session, arg3: *mut c_uchar, arg4: *const c_uchar, arg5: *mut usize, arg6: *mut u32) -> c_int>§f_ticket_parse: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut ssl_session, arg3: *mut c_uchar, arg4: usize) -> c_int>§p_ticket: *mut c_void§f_export_keys: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: *const c_uchar, arg4: usize, arg5: usize, arg6: usize) -> c_int>§f_export_keys_ext: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const c_uchar, arg3: *const c_uchar, arg4: usize, arg5: usize, arg6: usize, arg7: *const c_uchar, arg8: *const c_uchar, arg9: tls_prf_types) -> c_int>§p_export_keys: *mut c_void§cert_profile: *const x509_crt_profile§key_cert: *mut ssl_key_cert§ca_chain: *mut x509_crt§ca_crl: *mut x509_crl§sig_hashes: *const c_int§curve_list: *const ecp_group_id§dhm_P: mpi§dhm_G: mpi§psk: *mut c_uchar§psk_len: usize§psk_identity: *mut c_uchar§psk_identity_len: usize§alpn_list: *mut *const c_char

Trait Implementations§

Source§

impl Clone for ssl_config

Source§

fn clone(&self) -> ssl_config

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for ssl_config

Source§

fn default() -> Self

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

impl Copy for ssl_config

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.