Struct mbedtls_sys::ssl_handshake_params
source · [−]#[repr(C)]pub struct ssl_handshake_params {Show 43 fields
pub max_major_ver: u8,
pub max_minor_ver: u8,
pub resume: u8,
pub cli_exts: u8,
pub sni_authmode: u8,
pub new_session_ticket: u8,
pub extended_ms: u8,
pub retransmit_state: c_uchar,
pub hash_algs: ssl_sig_hash_set_t,
pub pmslen: size_t,
pub ciphersuite_info: *const ssl_ciphersuite_t,
pub update_checksum: Option<unsafe extern "C" fn(arg1: *mut ssl_context, arg2: *const c_uchar, arg3: size_t)>,
pub calc_verify: Option<unsafe extern "C" fn(arg1: *const ssl_context, arg2: *mut c_uchar, arg3: *mut size_t)>,
pub calc_finished: Option<unsafe extern "C" fn(arg1: *mut ssl_context, arg2: *mut c_uchar, arg3: c_int)>,
pub tls_prf: ssl_tls_prf_cb,
pub dhm_ctx: dhm_context,
pub ecdh_ctx: ecdh_context,
pub curves: *mut *const ecp_curve_info,
pub psk: *mut c_uchar,
pub psk_len: size_t,
pub key_cert: *mut ssl_key_cert,
pub sni_key_cert: *mut ssl_key_cert,
pub sni_ca_chain: *mut x509_crt,
pub sni_ca_crl: *mut x509_crl,
pub buffering: ssl_handshake_params__bindgen_ty_1,
pub out_msg_seq: c_uint,
pub in_msg_seq: c_uint,
pub verify_cookie: *mut c_uchar,
pub verify_cookie_len: c_uchar,
pub retransmit_timeout: u32,
pub flight: *mut ssl_flight_item,
pub cur_msg: *mut ssl_flight_item,
pub cur_msg_p: *mut c_uchar,
pub in_flight_start_seq: c_uint,
pub alt_transform_out: *mut ssl_transform,
pub alt_out_ctr: [c_uchar; 8],
pub mtu: u16,
pub fin_md5: md5_context,
pub fin_sha1: sha1_context,
pub fin_sha256: sha256_context,
pub fin_sha512: sha512_context,
pub randbytes: [c_uchar; 64],
pub premaster: [c_uchar; 1060],
}
Fields
max_major_ver: u8
max_minor_ver: u8
resume: u8
cli_exts: u8
sni_authmode: u8
new_session_ticket: u8
extended_ms: u8
retransmit_state: c_uchar
hash_algs: ssl_sig_hash_set_t
pmslen: size_t
ciphersuite_info: *const ssl_ciphersuite_t
update_checksum: Option<unsafe extern "C" fn(arg1: *mut ssl_context, arg2: *const c_uchar, arg3: size_t)>
calc_verify: Option<unsafe extern "C" fn(arg1: *const ssl_context, arg2: *mut c_uchar, arg3: *mut size_t)>
calc_finished: Option<unsafe extern "C" fn(arg1: *mut ssl_context, arg2: *mut c_uchar, arg3: c_int)>
tls_prf: ssl_tls_prf_cb
dhm_ctx: dhm_context
ecdh_ctx: ecdh_context
curves: *mut *const ecp_curve_info
psk: *mut c_uchar
psk_len: size_t
key_cert: *mut ssl_key_cert
sni_key_cert: *mut ssl_key_cert
sni_ca_chain: *mut x509_crt
sni_ca_crl: *mut x509_crl
buffering: ssl_handshake_params__bindgen_ty_1
out_msg_seq: c_uint
in_msg_seq: c_uint
retransmit_timeout: u32
flight: *mut ssl_flight_item
cur_msg: *mut ssl_flight_item
cur_msg_p: *mut c_uchar
in_flight_start_seq: c_uint
alt_transform_out: *mut ssl_transform
alt_out_ctr: [c_uchar; 8]
mtu: u16
fin_md5: md5_context
fin_sha1: sha1_context
fin_sha256: sha256_context
fin_sha512: sha512_context
randbytes: [c_uchar; 64]
premaster: [c_uchar; 1060]
Trait Implementations
sourceimpl Clone for ssl_handshake_params
impl Clone for ssl_handshake_params
sourcefn clone(&self) -> ssl_handshake_params
fn clone(&self) -> ssl_handshake_params
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ssl_handshake_params
impl Default for ssl_handshake_params
impl Copy for ssl_handshake_params
Auto Trait Implementations
impl RefUnwindSafe for ssl_handshake_params
impl !Send for ssl_handshake_params
impl !Sync for ssl_handshake_params
impl Unpin for ssl_handshake_params
impl UnwindSafe for ssl_handshake_params
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more