[][src]Struct isahc::config::SslOption

pub struct SslOption(_);

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

impl SslOption[src]

pub const NONE: Self[src]

An empty set of options. This is the default.

pub const DANGER_ACCEPT_INVALID_CERTS: Self[src]

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.

pub const DANGER_ACCEPT_INVALID_HOSTS: Self[src]

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.

pub const DANGER_ACCEPT_REVOKED_CERTS: Self[src]

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

impl BitOr<SslOption> for SslOption[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<SslOption> for SslOption[src]

impl Clone for SslOption[src]

impl Copy for SslOption[src]

impl Debug for SslOption[src]

impl Default for SslOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]