use num_enum::{IntoPrimitive, TryFromPrimitive};
#[derive(Debug, IntoPrimitive, TryFromPrimitive)]
#[repr(u16)]
pub enum TlsExtension {
ServerNameIndication = 0,
MaxFragmentLength = 1,
ClientCertificateUrl = 2,
TrustedCaKeys = 3,
TruncatedHmac = 4,
StatusRequest = 5,
UserMapping = 6,
ClientAuthz = 7,
ServerAuthz = 8,
CertType = 9,
SupportedGroups = 10,
EcPointFormats = 11,
Srp = 12,
SignatureAlgorithms = 13,
UseSrtp = 14,
Heartbeat = 15,
Alpn = 16,
StatusRequest2 = 17,
SignedCertificateTimestamp = 18,
ClientCertificateType = 19,
ServerCertificateType = 20,
Padding = 21,
EncryptThenMac = 22,
ExtendedMainSecret = 23,
TokenBinding = 24,
CachedInfo = 25,
TlsLts = 26,
CompressCertificate = 27,
RecordSizeLimit = 28,
PwdProtect = 29,
PwdClear = 30,
PasswordSalt = 31,
TicketPinning = 32,
TlsCertWithExternPsk = 33,
DelegatedCredential = 34,
SessionTicket = 35,
Tlsmp = 36,
TlsmpProxying = 37,
TlsmpDelegate = 38,
SupportedEktCiphers = 39,
PreSharedKey = 41,
EarlyData = 42,
SupportedVersions = 43,
Cookie = 44,
PskKeyExchangeModes = 45,
CertificateAuthorities = 47,
OidFilters = 48,
PostHandshakeAuth = 49,
SignatureAlgorithmsCert = 50,
KeyShare = 51,
TransparencyInfo = 52,
DeprecatedConnectionId = 53,
ConnectionId = 54,
ExternalIdHash = 55,
ExternalSessionId = 56,
QuicTransportParameters = 57,
TicketRequest = 58,
DnssecChain = 59,
SequenceNoEncryptionAlgorithms = 60,
Rrc = 61,
TlsFlags = 62,
EchOuterExtensions = 6476,
EncryptedClientHello = 65037,
RenegotiationInfo = 65281,
}