aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-21 12:01:06 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-22 09:08:39 +0200
commit868623f9a836ef623cacb455f31f6ebbebfce066 (patch)
treefef2d960807b38af8b9b0eeb46685ebf3ca044a3 /include
parent49f92cf5cdb32458c52face46769bf021d1e02bf (diff)
downloadlibssh-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.h28
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,
};