Struct openssl::ssl::SslSessionRef
[−]
pub struct SslSessionRef(_);
Methods
impl SslSessionRef
[src]
fn id(&self) -> &[u8]
Returns the SSL session ID.
fn master_key_len(&self) -> usize
Returns the length of the master key.
fn master_key(&self, buf: &mut [u8]) -> usize
Copies the master key into the provided buffer.
Returns the number of bytes written.
Trait Implementations
impl ForeignTypeRef for SslSessionRef
type CType = SSL_SESSION
The raw C type.
unsafe fn from_ptr(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
impl ToOwned for SslSessionRef
[src]
type Owned = SslSession
fn to_owned(&self) -> SslSession
Creates owned data from borrowed data, usually by cloning. Read more