Struct openssl::ssl::Ssl
[−]
[src]
pub struct Ssl { // some fields omitted }
Methods
impl Ssl
fn new(ctx: &SslContext) -> Result<Ssl, SslError>
fn get_state_string(&self) -> &'static str
fn get_state_string_long(&self) -> &'static str
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).