Struct quicr::ClientConfig[][src]

pub struct ClientConfig<'a> {
    pub server_name: Option<&'a str>,
    pub session_ticket: Option<&'a [u8]>,
    pub accept_insecure_certs: bool,
}

Fields

The name of the server the client intends to connect to.

Used for both certificate validation, and for disambiguating between multiple domains hosted by the same IP address (using SNI).

A ticket to resume a previous session faster than performing a full handshake.

Required for transmitting 0-RTT data.

Whether to accept inauthentic or unverifiable peer certificates.

Turning this off exposes clients to man-in-the-middle attacks in the same manner as an unencrypted TCP connection, but allows them to connect to servers that are using self-signed certificates.

Trait Implementations

impl<'a> Default for ClientConfig<'a>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a> Send for ClientConfig<'a>

impl<'a> Sync for ClientConfig<'a>