#[non_exhaustive]pub enum InvalidMessage {
Show 28 variants
CertificatePayloadTooLarge,
HandshakePayloadTooLarge,
InvalidCcs,
InvalidContentType,
InvalidCertificateStatusType,
InvalidCertRequest,
InvalidDhParams,
InvalidEmptyPayload,
InvalidKeyUpdate,
InvalidServerName,
MessageTooLarge,
MessageTooShort,
MissingData(&'static str),
MissingKeyExchange,
NoSignatureSchemes,
TrailingData(&'static str),
UnexpectedMessage(&'static str),
UnknownProtocolVersion,
UnsupportedCompression,
UnsupportedCurveType,
UnsupportedKeyExchangeAlgorithm(KeyExchangeAlgorithm),
EmptyTicketValue,
IllegalEmptyList(&'static str),
IllegalEmptyValue,
DuplicateExtension(u16),
PreSharedKeyIsNotFinalExtension,
UnknownHelloRetryRequestExtension,
UnknownCertificateExtension,
}展开描述
导致错误的损坏 TLS 消息有效载荷。
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
CertificatePayloadTooLarge
è¯ä¹¦ææè½½è·è¶ è¿ rustls ç 64KB éå¶
HandshakePayloadTooLarge
广播的消息比预期的更大。
InvalidCcs
此 peer sent us 一个 syntactically incorrect ChangeCipherSpec payload.
InvalidContentType
解码消息时遇到了未知的内容类型。
InvalidCertificateStatusType
对端发送了无效的证书状态类型
InvalidCertRequest
Context was incorrectly attached 到 一个 certificate request during 一个 handshake.
InvalidDhParams
peer ç DH åæ°æ æ³è§£ç
InvalidEmptyPayload
记录类型不允许时,消息长度为零。
InvalidKeyUpdate
对端发送了预期之外的密钥更新请求。
InvalidServerName
peer çæå¡å¨åç§°æ æ³è§£ç
MessageTooLarge
TLS 消息的有效载荷超出了规范允许的大小。
MessageTooShort
消息长度小于期望值
MissingData(&'static str)
Missing data 用于 the named handshake payload value
MissingKeyExchange
对端没有广播它支持的密钥交换群。
NoSignatureSchemes
对端发送了一个空的签名方案列表
TrailingData(&'static str)
Trailing data found 用于 the named handshake payload value
UnexpectedMessage(&'static str)
对端发送了预期之外的消息类型。
UnknownProtocolVersion
消息解码时遇到了未知的 TLS 协议版本。
UnsupportedCompression
A peer sent 一个 non-null compression method.
UnsupportedCurveType
对端发送了未知的楚箭几何类型。
UnsupportedKeyExchangeAlgorithm(KeyExchangeAlgorithm)
A peer sent an unsupported key exchange 算法.
EmptyTicketValue
服务器发送了一个空 ticket
IllegalEmptyList(&'static str)
A peer sent an empty list of items, but 一个 non-empty list is required.
此 argument names the context.
IllegalEmptyValue
A peer sent an empty value, but 一个 non-empty value is required.
DuplicateExtension(u16)
A peer sent 一个 message where 一个 given extension type was repeated
A peer sent 一个 message with 一个 PSK offer extension in wrong position
UnknownHelloRetryRequestExtension
A server sent 一个 HelloRetryRequest with an unknown extension
UnknownCertificateExtension
此 peer sent 一个 TLS 1.3 Certificate with an unknown extension
Trait 实现§
Source§impl Clone for InvalidMessage
impl Clone for InvalidMessage
Source§fn clone(&self) -> InvalidMessage
fn clone(&self) -> InvalidMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. 更多信息