Struct esp_idf_sys::mbedtls_ssl_session
source · #[repr(C)]pub struct mbedtls_ssl_session {Show 16 fields
pub private_mfl_code: c_uchar,
pub private_exported: c_uchar,
pub private_endpoint: u8,
pub private_tls_version: mbedtls_ssl_protocol_version,
pub private_start: mbedtls_time_t,
pub private_ciphersuite: c_int,
pub private_id_len: usize,
pub private_id: [c_uchar; 32],
pub private_master: [c_uchar; 48],
pub private_peer_cert: *mut mbedtls_x509_crt,
pub private_verify_result: u32,
pub private_ticket: *mut c_uchar,
pub private_ticket_len: usize,
pub private_ticket_lifetime: u32,
pub private_ticket_creation_time: mbedtls_ms_time_t,
pub private_encrypt_then_mac: c_int,
}
Fields§
§private_mfl_code: c_uchar
< MaxFragmentLength negotiated by peer
private_exported: c_uchar
§private_endpoint: u8
< 0: client, 1: server
private_tls_version: mbedtls_ssl_protocol_version
TLS version negotiated in the session. Used if and when renegotiating or resuming a session instead of the configured minor TLS version.
private_start: mbedtls_time_t
< start time of current session
private_ciphersuite: c_int
< chosen ciphersuite
private_id_len: usize
< session id length
private_id: [c_uchar; 32]
< session identifier
private_master: [c_uchar; 48]
< the master secret
private_peer_cert: *mut mbedtls_x509_crt
< peer X.509 cert chain
private_verify_result: u32
< verification result
private_ticket: *mut c_uchar
< RFC 5077 session ticket
private_ticket_len: usize
< session ticket length
private_ticket_lifetime: u32
< ticket lifetime hint
private_ticket_creation_time: mbedtls_ms_time_t
When a ticket is created by a TLS server as part of an established TLS session, the ticket creation time may need to be saved for the ticket module to be able to check the ticket age when the ticket is used. That’s the purpose of this field. Before creating a new ticket, an Mbed TLS server set this field with its current time in milliseconds. This time may then be saved in the session ticket data by the session ticket writing function and recovered by the ticket parsing function later when the ticket is used. The ticket module may then use this time to compute the ticket age and determine if it has expired or not. The Mbed TLS implementations of the session ticket writing and parsing functions save and retrieve the ticket creation time as part of the session ticket data. The session ticket parsing function relies on the mbedtls_ssl_session_get_ticket_creation_time() API to get the ticket creation time from the session ticket data.
private_encrypt_then_mac: c_int
< flag for EtM activation
Trait Implementations§
source§impl Clone for mbedtls_ssl_session
impl Clone for mbedtls_ssl_session
source§fn clone(&self) -> mbedtls_ssl_session
fn clone(&self) -> mbedtls_ssl_session
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for mbedtls_ssl_session
impl Debug for mbedtls_ssl_session
source§impl Default for mbedtls_ssl_session
impl Default for mbedtls_ssl_session
impl Copy for mbedtls_ssl_session
Auto Trait Implementations§
impl Freeze for mbedtls_ssl_session
impl RefUnwindSafe for mbedtls_ssl_session
impl !Send for mbedtls_ssl_session
impl !Sync for mbedtls_ssl_session
impl Unpin for mbedtls_ssl_session
impl UnwindSafe for mbedtls_ssl_session
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
§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)
clone_to_uninit
)§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)
clone_to_uninit
)