Enum fcp_cryptoauth::auth_failure::AuthFailure
[−]
[src]
pub enum AuthFailure { UnknownAuthMethod(u8), AuthNone, InvalidCredentials(String), WrongPublicKey, UnexpectedPacket(String), PacketTooShort(String), CorruptedPacket(String), LatePacket, Replay, }
Enumeration used for reporting errors in authenticating a handshake or a data packet.
Variants
UnknownAuthMethod(u8)
An incoming peer tried an auth method that is not None/Password/LoginPassword
AuthNone
An incoming peer tried to connect with None auth.
InvalidCredentials(String)
An incoming peer tried to connect with credentials unknown to us.
WrongPublicKey
A peer used a public key different than expected.
UnexpectedPacket(String)
The packet type does not match the session state.
PacketTooShort(String)
The packet was too short to be decrypted (handshake of size < 120, or data of size < 28)
CorruptedPacket(String)
The packet had a bad format or its auth code was invalid.
LatePacket
The packet's nonce is way lower than the max packet nonce (ie. difference > 64) seen so far.
Replay
This packet was already received (detected using the nonce as a packet id)
Trait Implementations
impl Debug for AuthFailure
[src]
impl Clone for AuthFailure
[src]
fn clone(&self) -> AuthFailure
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for AuthFailure
[src]
impl PartialEq for AuthFailure
[src]
fn eq(&self, __arg_0: &AuthFailure) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AuthFailure) -> bool
This method tests for !=
.