diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-08-21 12:01:06 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-22 09:08:39 +0200 |
commit | 868623f9a836ef623cacb455f31f6ebbebfce066 (patch) | |
tree | fef2d960807b38af8b9b0eeb46685ebf3ca044a3 /include | |
parent | 49f92cf5cdb32458c52face46769bf021d1e02bf (diff) | |
download | libssh-868623f9a836ef623cacb455f31f6ebbebfce066.tar.gz libssh-868623f9a836ef623cacb455f31f6ebbebfce066.tar.xz libssh-868623f9a836ef623cacb455f31f6ebbebfce066.zip |
libssh: Document ssh_known_hosts_e
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 00a6fff8..280ba578 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -239,11 +239,39 @@ enum ssh_server_known_e { }; enum ssh_known_hosts_e { + /** + * There had been an error checking the host. + */ SSH_KNOWN_HOSTS_ERROR = -2, + + /** + * The known host file does not exist. The host is thus unknown. File will + * be created if host key is accepted. + */ SSH_KNOWN_HOSTS_NOT_FOUND = -1, + + /** + * The server is unknown. User should confirm the public key hash is + * correct. + */ SSH_KNOWN_HOSTS_UNKNOWN = 0, + + /** + * The server is known and has not changed. + */ SSH_KNOWN_HOSTS_OK, + + /** + * 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. + */ SSH_KNOWN_HOSTS_CHANGED, + + /** + * The server gave use a key of a type while we had an other type recorded. + * It is a possible attack. + */ SSH_KNOWN_HOSTS_OTHER, }; |