Struct openssl::ssl::SslStream
[-]
[+]
[src]
pub struct SslStream<S> { // some fields omitted }
A stream wrapper which handles SSL encryption for an underlying stream.
Methods
impl<S: Stream> SslStream<S>
fn new_from(ssl: Ssl, stream: S) -> Result<SslStream<S>, SslError>
Attempts to create a new SSL stream from a given Ssl
instance.
fn new(ctx: &SslContext, stream: S) -> Result<SslStream<S>, SslError>
Creates a new SSL stream
fn get_compression(&self) -> Option<String>
Get the compression currently in use. The result will be either None, indicating no compression is in use, or a string with the compression name.