diff options
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c index d465c81..bb260e3 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -760,6 +760,13 @@ ssh_public_key ssh_message_auth_publickey(ssh_message msg){ return msg->auth_request.public_key; } +enum ssh_publickey_state_e ssh_message_auth_publickey_state(ssh_message msg){ + if (msg == NULL) { + return -1; + } + return msg->auth_request.signature_state; +} + int ssh_message_auth_set_methods(ssh_message msg, int methods) { if (msg == NULL || msg->session == NULL) { return -1; |