pub struct SslOption(_);
Expand description
A flag that can be used to alter the behavior of SSL/TLS connections.
Most options are for disabling security checks that introduce security risks, but may be required as a last resort.
Implementations
sourceimpl SslOption
impl SslOption
sourcepub const DANGER_ACCEPT_INVALID_CERTS: Self = _
pub const DANGER_ACCEPT_INVALID_CERTS: Self = _
Disables certificate validation.
Warning
You should think very carefully before using this method. If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
sourcepub const DANGER_ACCEPT_INVALID_HOSTS: Self = _
pub const DANGER_ACCEPT_INVALID_HOSTS: Self = _
Disables hostname verification on certificates.
Warning
You should think very carefully before you use this method. If hostname verification is not used, any valid certificate for any site will be trusted for use from any other. This introduces a significant vulnerability to man-in-the-middle attacks.
sourcepub const DANGER_ACCEPT_REVOKED_CERTS: Self = _
pub const DANGER_ACCEPT_REVOKED_CERTS: Self = _
Disables certificate revocation checks for backends where such behavior is present.
This option is only supported for Schannel (the native Windows SSL library).
Trait Implementations
sourceimpl BitOrAssign<SslOption> for SslOption
impl BitOrAssign<SslOption> for SslOption
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read more