Struct openssl::ssl::Ssl [] [src]

pub struct Ssl {
    // some fields omitted
}

Methods

impl Ssl

fn new(ctx: &SslContext) -> Result<Ssl, SslError>

fn set_hostname(&self, hostname: &str) -> Result<(), SslError>

Set the host name to be used with SNI (Server Name Indication).

fn get_peer_certificate(&self) -> Option<X509>

fn pending(&self) -> usize

pending() takes into account only bytes from the TLS/SSL record that is currently being processed (if any).

Trait Implementations

impl Send for Ssl

impl Sync for Ssl

impl Debug for Ssl

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Drop for Ssl

fn drop(&mut self)