summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h7
-rw-r--r--include/libssh/server.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 4ea7430..114b993 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -186,6 +186,13 @@ enum ssh_channel_requests_e {
SSH_CHANNEL_REQUEST_WINDOW_CHANGE,
};
+enum ssh_publickey_state_e {
+ SSH_PUBLICKEY_STATE_ERROR=-1,
+ SSH_PUBLICKEY_STATE_NONE=0,
+ SSH_PUBLICKEY_STATE_VALID=1,
+ SSH_PUBLICKEY_STATE_WRONG=2
+};
+
/* status flags */
#define SSH_CLOSED 0x01
#define SSH_READ_PENDING 0x02
diff --git a/include/libssh/server.h b/include/libssh/server.h
index 9bfade6..993a140 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -148,6 +148,7 @@ LIBSSH_API int ssh_message_reply_default(ssh_message msg);
LIBSSH_API char *ssh_message_auth_user(ssh_message msg);
LIBSSH_API char *ssh_message_auth_password(ssh_message msg);
LIBSSH_API ssh_public_key ssh_message_auth_publickey(ssh_message msg);
+LIBSSH_API enum ssh_publickey_state_e ssh_message_auth_publickey_state(ssh_message msg);
LIBSSH_API int ssh_message_auth_reply_success(ssh_message msg,int partial);
LIBSSH_API int ssh_message_auth_reply_pk_ok(ssh_message msg, ssh_string algo, ssh_string pubkey);
LIBSSH_API int ssh_message_auth_set_methods(ssh_message msg, int methods);