diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-20 18:05:02 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-20 18:05:02 +0100 |
commit | 2e22d6ef9931156d837f6747aa9e46943bc51edb (patch) | |
tree | db9269139bbaa5d736923e3a65801be5cdab4d01 /libssh/server.c | |
parent | 6509b6e7421f480e481d087d613f334779cfb38b (diff) | |
download | libssh-2e22d6ef9931156d837f6747aa9e46943bc51edb.tar.gz libssh-2e22d6ef9931156d837f6747aa9e46943bc51edb.tar.xz libssh-2e22d6ef9931156d837f6747aa9e46943bc51edb.zip |
Add key validation in server side authentication
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 d465c81e..bb260e3f 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; |