[−]Struct openssl::ssl::SslSessionRef
Reference to SslSession
.
Methods
impl SslSessionRef
[src][−]
pub fn id(&self) -> &[u8]
[src][−]
Returns the SSL session ID.
This corresponds to SSL_SESSION_get_id
.
pub fn master_key_len(&self) -> usize
[src][−]
Returns the length of the master key.
This corresponds to SSL_SESSION_get_master_key
.
pub fn master_key(&self, buf: &mut [u8]) -> usize
[src][−]
Copies the master key into the provided buffer.
Returns the number of bytes written, or the size of the master key if the buffer is empty.
This corresponds to SSL_SESSION_get_master_key
.
pub fn time(&self) -> i64
[src][−]
Returns the time at which the session was established, in seconds since the Unix epoch.
This corresponds to SSL_SESSION_get_time
.
pub fn timeout(&self) -> i64
[src][−]
Returns the sessions timeout, in seconds.
A session older than this time should not be used for session resumption.
This corresponds to SSL_SESSION_get_timeout
.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src][−]
Serializes the session into a DER-encoded structure.
This corresponds to i2d_SSL_SESSION
.
Trait Implementations
impl AsRef<SslSessionRef> for SslSession
[+]
impl Borrow<SslSessionRef> for SslSession
[+]
impl ForeignTypeRef for SslSessionRef
[+]
impl Send for SslSessionRef
[src]
impl Sync for SslSessionRef
[src]
impl ToOwned for SslSessionRef
[src][+]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,