Enum libssh_rs::KnownHosts [−][src]
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
The known host file does not exist. The host is thus unknown. File will be created if host key is accepted.
The server is unknown. User should confirm the public key hash is correct.
The server is known and has not 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.
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