Struct openssl::ssl::SslSessionRef [−]
Reference to SslSession
.
Methods
impl SslSessionRef
[src]
[−]
impl SslSessionRef
pub fn id(&self) -> &[u8]
[src]
[−]
pub fn id(&self) -> &[u8]
Returns the SSL session ID.
This corresponds to SSL_SESSION_get_id
.
pub fn master_key_len(&self) -> usize
[src]
[−]
pub fn master_key_len(&self) -> usize
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]
[−]
pub fn master_key(&self, buf: &mut [u8]) -> usize
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 to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
[−]
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the session into a DER-encoded structure.
This corresponds to i2d_SSL_SESSION
.
Trait Implementations
impl Borrow<SslSessionRef> for SslSession
[+]
impl Borrow<SslSessionRef> for SslSession
impl AsRef<SslSessionRef> for SslSession
[+]
impl AsRef<SslSessionRef> for SslSession
impl ForeignTypeRef for SslSessionRef
[+]
impl ForeignTypeRef for SslSessionRef
impl Send for SslSessionRef
[src]
impl Send for SslSessionRef
impl Sync for SslSessionRef
[src]
impl Sync for SslSessionRef
impl ToOwned for SslSessionRef
[src]
[+]
impl ToOwned for SslSessionRef