#[repr(C)]pub struct mbedtls_ssl_ticket_context {
pub private_keys: [mbedtls_ssl_ticket_key; 2],
pub private_active: c_uchar,
pub private_ticket_lifetime: u32,
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,
}Expand description
\brief Context for session ticket handling functions
Fields§
§private_keys: [mbedtls_ssl_ticket_key; 2]< ticket protection keys
private_active: c_uchar< index of the currently active key
private_ticket_lifetime: u32< lifetime of tickets in seconds
private_f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>Callback for getting (pseudo-)random numbers
private_p_rng: *mut c_void< context for the RNG function
Trait Implementations§
Source§impl Clone for mbedtls_ssl_ticket_context
impl Clone for mbedtls_ssl_ticket_context
Source§fn clone(&self) -> mbedtls_ssl_ticket_context
fn clone(&self) -> mbedtls_ssl_ticket_context
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mbedtls_ssl_ticket_context
Source§impl Debug for mbedtls_ssl_ticket_context
impl Debug for mbedtls_ssl_ticket_context
Auto Trait Implementations§
impl !Send for mbedtls_ssl_ticket_context
impl !Sync for mbedtls_ssl_ticket_context
impl Freeze for mbedtls_ssl_ticket_context
impl RefUnwindSafe for mbedtls_ssl_ticket_context
impl Unpin for mbedtls_ssl_ticket_context
impl UnsafeUnpin for mbedtls_ssl_ticket_context
impl UnwindSafe for mbedtls_ssl_ticket_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,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)