Struct isahc::config::SslOption [−][src]
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
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.
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.
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
Auto Trait Implementations
impl RefUnwindSafe for SslOption
impl UnwindSafe for SslOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more