Enum tls_parser::TlsExtension[][src]

pub enum TlsExtension<'a> {
Show 28 variants SNI(Vec<(SNIType, &'a [u8])>), MaxFragmentLength(u8), StatusRequest(Option<(CertificateStatusType, &'a [u8])>), EllipticCurves(Vec<NamedGroup>), EcPointFormats(&'a [u8]), SignatureAlgorithms(Vec<u16>), RecordSizeLimit(u16), SessionTicket(&'a [u8]), KeyShareOld(&'a [u8]), KeyShare(&'a [u8]), PreSharedKey(&'a [u8]), EarlyData(Option<u32>), SupportedVersions(Vec<TlsVersion>), Cookie(&'a [u8]), PskExchangeModes(Vec<u8>), Heartbeat(u8), ALPN(Vec<&'a [u8]>), SignedCertificateTimestamp(Option<&'a [u8]>), Padding(&'a [u8]), EncryptThenMac, ExtendedMasterSecret, OidFilters(Vec<OidFilter<'a>>), PostHandshakeAuth, NextProtocolNegotiation, RenegotiationInfo(&'a [u8]), EncryptedServerName { ciphersuite: TlsCipherSuiteID, group: NamedGroup, key_share: &'a [u8], record_digest: &'a [u8], encrypted_sni: &'a [u8], }, Grease(u16&'a [u8]), Unknown(TlsExtensionType&'a [u8]),
}
Expand description

TLS extensions

Variants

Tuple Fields of SNI

0: Vec<(SNIType, &'a [u8])>
MaxFragmentLength(u8)

Tuple Fields of MaxFragmentLength

0: u8

Tuple Fields of StatusRequest

0: Option<(CertificateStatusType, &'a [u8])>
EllipticCurves(Vec<NamedGroup>)

Tuple Fields of EllipticCurves

0: Vec<NamedGroup>
EcPointFormats(&'a [u8])

Tuple Fields of EcPointFormats

0: &'a [u8]
SignatureAlgorithms(Vec<u16>)

Tuple Fields of SignatureAlgorithms

0: Vec<u16>
RecordSizeLimit(u16)

Tuple Fields of RecordSizeLimit

0: u16
SessionTicket(&'a [u8])

Tuple Fields of SessionTicket

0: &'a [u8]
KeyShareOld(&'a [u8])

Tuple Fields of KeyShareOld

0: &'a [u8]
KeyShare(&'a [u8])

Tuple Fields of KeyShare

0: &'a [u8]
PreSharedKey(&'a [u8])

Tuple Fields of PreSharedKey

0: &'a [u8]
EarlyData(Option<u32>)

Tuple Fields of EarlyData

0: Option<u32>
SupportedVersions(Vec<TlsVersion>)

Tuple Fields of SupportedVersions

0: Vec<TlsVersion>
Cookie(&'a [u8])

Tuple Fields of Cookie

0: &'a [u8]
PskExchangeModes(Vec<u8>)

Tuple Fields of PskExchangeModes

0: Vec<u8>
Heartbeat(u8)

Tuple Fields of Heartbeat

0: u8
ALPN(Vec<&'a [u8]>)

Tuple Fields of ALPN

0: Vec<&'a [u8]>
SignedCertificateTimestamp(Option<&'a [u8]>)

Tuple Fields of SignedCertificateTimestamp

0: Option<&'a [u8]>
Padding(&'a [u8])

Tuple Fields of Padding

0: &'a [u8]
EncryptThenMac
ExtendedMasterSecret
OidFilters(Vec<OidFilter<'a>>)

Tuple Fields of OidFilters

0: Vec<OidFilter<'a>>
PostHandshakeAuth
NextProtocolNegotiation
RenegotiationInfo(&'a [u8])

Tuple Fields of RenegotiationInfo

0: &'a [u8]
EncryptedServerName

Fields of EncryptedServerName

ciphersuite: TlsCipherSuiteIDgroup: NamedGroupkey_share: &'a [u8]record_digest: &'a [u8]encrypted_sni: &'a [u8]
Grease(u16&'a [u8])

Tuple Fields of Grease

0: u161: &'a [u8]

Tuple Fields of Unknown

0: TlsExtensionType1: &'a [u8]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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.