Struct tls_parser::TlsClientHelloContents[][src]

pub struct TlsClientHelloContents<'a> {
    pub version: TlsVersion,
    pub rand_time: u32,
    pub rand_data: &'a [u8],
    pub session_id: Option<&'a [u8]>,
    pub ciphers: Vec<TlsCipherSuiteID>,
    pub comp: Vec<TlsCompressionID>,
    pub ext: Option<&'a [u8]>,
}
Expand description

TLS Client Hello (from TLS 1.0 to TLS 1.2)

Some fields are unparsed (for performance reasons), for ex to parse ext, call the parse_tls_extensions function.

Fields

version: TlsVersion

TLS version of message

rand_time: u32rand_data: &'a [u8]session_id: Option<&'a [u8]>ciphers: Vec<TlsCipherSuiteID>

A list of ciphers supported by client

comp: Vec<TlsCompressionID>

A list of compression methods supported by client

ext: Option<&'a [u8]>

Implementations

Trait Implementations

TLS version of message

A list of ciphers supported by client

A list of compression methods supported by client

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.