Enum rustls::error::PeerMisbehaved
source · #[non_exhaustive]pub enum PeerMisbehaved {
Show 66 variants
AttemptedDowngradeToTls12WhenTls13IsSupported,
BadCertChainExtensions,
DisallowedEncryptedExtension,
DuplicateClientHelloExtensions,
DuplicateEncryptedExtensions,
DuplicateHelloRetryRequestExtensions,
DuplicateNewSessionTicketExtensions,
DuplicateServerHelloExtensions,
DuplicateServerNameTypes,
EarlyDataAttemptedInSecondClientHello,
EarlyDataExtensionWithoutResumption,
EarlyDataOfferedWithVariedCipherSuite,
HandshakeHashVariedAfterRetry,
IllegalHelloRetryRequestWithEmptyCookie,
IllegalHelloRetryRequestWithNoChanges,
IllegalHelloRetryRequestWithOfferedGroup,
IllegalHelloRetryRequestWithUnofferedCipherSuite,
IllegalHelloRetryRequestWithUnofferedNamedGroup,
IllegalHelloRetryRequestWithUnsupportedVersion,
IllegalHelloRetryRequestWithWrongSessionId,
IllegalMiddleboxChangeCipherSpec,
IllegalTlsInnerPlaintext,
IncorrectBinder,
InvalidMaxEarlyDataSize,
InvalidKeyShare,
InvalidSctList,
KeyEpochWithPendingFragment,
KeyUpdateReceivedInQuicConnection,
MessageInterleavedWithHandshakeMessage,
MissingBinderInPskExtension,
MissingKeyShare,
MissingPskModesExtension,
MissingQuicTransportParameters,
OfferedDuplicateKeyShares,
OfferedEarlyDataWithOldProtocolVersion,
OfferedEmptyApplicationProtocol,
OfferedIncorrectCompressions,
PskExtensionMustBeLast,
PskExtensionWithMismatchedIdsAndBinders,
RefusedToFollowHelloRetryRequest,
RejectedEarlyDataInterleavedWithHandshakeMessage,
ResumptionAttemptedWithVariedEms,
ResumptionOfferedWithVariedCipherSuite,
ResumptionOfferedWithVariedEms,
ResumptionOfferedWithIncompatibleCipherSuite,
SelectedDifferentCipherSuiteAfterRetry,
SelectedInvalidPsk,
SelectedTls12UsingTls13VersionExtension,
SelectedUnofferedApplicationProtocol,
SelectedUnofferedCipherSuite,
SelectedUnofferedCompression,
SelectedUnofferedKxGroup,
SelectedUnofferedPsk,
SelectedUnusableCipherSuiteForVersion,
ServerHelloMustOfferUncompressedEcPoints,
ServerNameDifferedOnRetry,
ServerNameMustContainOneHostName,
SignedKxWithWrongAlgorithm,
SignedHandshakeWithUnadvertisedSigScheme,
TooMuchEarlyDataReceived,
UnexpectedCleartextExtension,
UnsolicitedCertExtension,
UnsolicitedEncryptedExtension,
UnsolicitedSctList,
UnsolicitedServerHelloExtension,
WrongGroupForKeyShare,
}
Expand description
The set of cases where we failed to make a connection because we thought the peer was misbehaving.
This is non_exhaustive
: we might add or stop using items here in minor
versions. We also don’t document what they mean. Generally a user of
rustls shouldn’t vary its behaviour on these error codes, and there is
nothing it can do to improve matters.
Please file a bug against rustls if you see Error::PeerMisbehaved
in
the wild.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AttemptedDowngradeToTls12WhenTls13IsSupported
BadCertChainExtensions
DisallowedEncryptedExtension
DuplicateClientHelloExtensions
DuplicateEncryptedExtensions
DuplicateHelloRetryRequestExtensions
DuplicateNewSessionTicketExtensions
DuplicateServerHelloExtensions
DuplicateServerNameTypes
EarlyDataAttemptedInSecondClientHello
EarlyDataExtensionWithoutResumption
EarlyDataOfferedWithVariedCipherSuite
HandshakeHashVariedAfterRetry
IllegalHelloRetryRequestWithEmptyCookie
IllegalHelloRetryRequestWithNoChanges
IllegalHelloRetryRequestWithOfferedGroup
IllegalHelloRetryRequestWithUnofferedCipherSuite
IllegalHelloRetryRequestWithUnofferedNamedGroup
IllegalHelloRetryRequestWithUnsupportedVersion
IllegalHelloRetryRequestWithWrongSessionId
IllegalMiddleboxChangeCipherSpec
IllegalTlsInnerPlaintext
IncorrectBinder
InvalidMaxEarlyDataSize
InvalidSctList
KeyEpochWithPendingFragment
KeyUpdateReceivedInQuicConnection
MessageInterleavedWithHandshakeMessage
MissingBinderInPskExtension
MissingPskModesExtension
MissingQuicTransportParameters
OfferedEarlyDataWithOldProtocolVersion
OfferedEmptyApplicationProtocol
OfferedIncorrectCompressions
PskExtensionMustBeLast
PskExtensionWithMismatchedIdsAndBinders
RefusedToFollowHelloRetryRequest
RejectedEarlyDataInterleavedWithHandshakeMessage
ResumptionAttemptedWithVariedEms
ResumptionOfferedWithVariedCipherSuite
ResumptionOfferedWithVariedEms
ResumptionOfferedWithIncompatibleCipherSuite
SelectedDifferentCipherSuiteAfterRetry
SelectedInvalidPsk
SelectedTls12UsingTls13VersionExtension
SelectedUnofferedApplicationProtocol
SelectedUnofferedCipherSuite
SelectedUnofferedCompression
SelectedUnofferedKxGroup
SelectedUnofferedPsk
SelectedUnusableCipherSuiteForVersion
ServerHelloMustOfferUncompressedEcPoints
ServerNameDifferedOnRetry
ServerNameMustContainOneHostName
SignedKxWithWrongAlgorithm
SignedHandshakeWithUnadvertisedSigScheme
TooMuchEarlyDataReceived
UnexpectedCleartextExtension
UnsolicitedCertExtension
UnsolicitedEncryptedExtension
UnsolicitedSctList
UnsolicitedServerHelloExtension
Trait Implementations§
source§impl Clone for PeerMisbehaved
impl Clone for PeerMisbehaved
source§fn clone(&self) -> PeerMisbehaved
fn clone(&self) -> PeerMisbehaved
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PeerMisbehaved
impl Debug for PeerMisbehaved
source§impl From<PeerMisbehaved> for Error
impl From<PeerMisbehaved> for Error
source§fn from(e: PeerMisbehaved) -> Self
fn from(e: PeerMisbehaved) -> Self
Converts to this type from the input type.
source§impl PartialEq for PeerMisbehaved
impl PartialEq for PeerMisbehaved
source§fn eq(&self, other: &PeerMisbehaved) -> bool
fn eq(&self, other: &PeerMisbehaved) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PeerMisbehaved
Auto Trait Implementations§
impl Freeze for PeerMisbehaved
impl RefUnwindSafe for PeerMisbehaved
impl Send for PeerMisbehaved
impl Sync for PeerMisbehaved
impl Unpin for PeerMisbehaved
impl UnwindSafe for PeerMisbehaved
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more