Enum libssh_rs::KnownHosts
source · [−]pub enum KnownHosts {
NotFound,
Unknown,
Ok,
Changed,
Other,
}
Expand description
Indicates the state of known-host matching, an important set to detect and avoid MITM attacks.
Variants
NotFound
The known host file does not exist. The host is thus unknown. File will be created if host key is accepted.
Unknown
The server is unknown. User should confirm the public key hash is correct.
Ok
The server is known and has not changed.
Changed
The server key has changed. Either you are under attack or the administrator changed the key. You HAVE to warn the user about a possible attack.
Other
The server gave use a key of a type while we had an other type recorded. It is a possible attack.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KnownHosts
impl Send for KnownHosts
impl Sync for KnownHosts
impl Unpin for KnownHosts
impl UnwindSafe for KnownHosts
Blanket Implementations
Mutably borrows from an owned value. Read more