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>

Trait Implementations

impl Debug for Ssl

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

impl Drop for Ssl

fn drop(&mut self)