Struct postgres::tls::openssl::OpenSsl
[−]
[src]
pub struct OpenSsl { /* fields omitted */ }
A TlsHandshake
implementation that uses OpenSSL.
Requires the with-openssl
feature.
Methods
impl OpenSsl
[src]
fn new() -> Result<OpenSsl, ErrorStack>
Creates a OpenSsl
with SslConnector
's default configuration.
fn connector(&self) -> &SslConnector
Returns a reference to the inner SslConnector
.
fn connector_mut(&mut self) -> &mut SslConnector
Returns a mutable reference to the inner SslConnector
.
fn danger_disable_hostname_verification(&mut self, disable_verification: bool)
If set, the
SslConnector::danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indication
method will be used to connect.
If certificate verification has been disabled in the SslConnector
, verification must be
additionally disabled here for that setting to take effect.
Trait Implementations
impl Debug for OpenSsl
[src]
impl From<SslConnector> for OpenSsl
[src]
fn from(connector: SslConnector) -> OpenSsl
Performs the conversion.