From 2e22d6ef9931156d837f6747aa9e46943bc51edb Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 20 Dec 2009 18:05:02 +0100 Subject: Add key validation in server side authentication --- libssh/server.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libssh/server.c') 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; -- cgit