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
MaxFragmentLength(u8)
Tuple Fields of MaxFragmentLength
0: u8
EllipticCurves(Vec<NamedGroup>)
Tuple Fields of EllipticCurves
0: Vec<NamedGroup>
RecordSizeLimit(u16)
Tuple Fields of RecordSizeLimit
0: u16
SupportedVersions(Vec<TlsVersion>)
Tuple Fields of SupportedVersions
0: Vec<TlsVersion>
Heartbeat(u8)
Tuple Fields of Heartbeat
0: u8
Fields of EncryptedServerName
Unknown(TlsExtensionType, &'a [u8])
Tuple Fields of Unknown
0: TlsExtensionType
1: &'a [u8]
Trait Implementations
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
impl<'a> RefUnwindSafe for TlsExtension<'a>
impl<'a> Send for TlsExtension<'a>
impl<'a> Sync for TlsExtension<'a>
impl<'a> Unpin for TlsExtension<'a>
impl<'a> UnwindSafe for TlsExtension<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more