pub trait CertifiedConn {
// Required methods
fn export_keying_material(
&self,
len: usize,
label: &[u8],
context: Option<&[u8]>,
) -> IoResult<Vec<u8>>;
fn peer_certificate(&self) -> IoResult<Option<Cow<'_, [u8]>>>;
fn own_certificate(&self) -> IoResult<Option<Cow<'_, [u8]>>>;
}Expand description
An object with a peer certificate: typically a TLS connection.
Required Methods§
Sourcefn export_keying_material(
&self,
len: usize,
label: &[u8],
context: Option<&[u8]>,
) -> IoResult<Vec<u8>>
fn export_keying_material( &self, len: usize, label: &[u8], context: Option<&[u8]>, ) -> IoResult<Vec<u8>>
Return the keying material (RFC 5705) given a label and an optional context.
Implementations on Foreign Types§
Source§impl<S> CertifiedConn for TlsStream<S>
Available on (crate features native-tls or rustls) and (crate features async-std or tokio or smol) and crate feature rustls only.
impl<S> CertifiedConn for TlsStream<S>
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio or smol) and crate feature rustls only.Source§impl<S> CertifiedConn for TlsStream<S>where
S: AsyncRead + AsyncWrite + Unpin,
Available on (crate features native-tls or rustls) and (crate features async-std or tokio or smol) and crate feature native-tls only.
impl<S> CertifiedConn for TlsStream<S>where
S: AsyncRead + AsyncWrite + Unpin,
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio or smol) and crate feature native-tls only.Implementors§
impl CertifiedConn for UnimplementedTls
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio or smol) only.impl<S: AsyncRead + AsyncWrite + Unpin> CertifiedConn for RustlsServerStream<S>
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio or smol) and crate feature rustls and crate feature tls-server only.