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).