Struct quicr_core::ClientConfig [−][src]
pub struct ClientConfig<'a> { pub server_name: Option<&'a str>, pub session_ticket: Option<&'a [u8]>, pub accept_insecure_certs: bool, }
Fields
server_name: Option<&'a str>
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).
session_ticket: Option<&'a [u8]>
A ticket to resume a previous session faster than performing a full handshake.
Required for transmitting 0-RTT data.
accept_insecure_certs: bool
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]
impl<'a> Default for ClientConfig<'a>
Auto Trait Implementations
impl<'a> Send for ClientConfig<'a>
impl<'a> Send for ClientConfig<'a>
impl<'a> Sync for ClientConfig<'a>
impl<'a> Sync for ClientConfig<'a>