aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/server.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-22 17:05:48 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-22 18:41:47 +0200
commit8c8a91a9b750e9730327c991fd44d7a4a90c16b6 (patch)
tree06ed20eb7433696512514f3da6000eabb0d3090a /include/libssh/server.h
parentbf2f553fc30b4d4f6476856a6c7d9e6a409e2842 (diff)
downloadlibssh-8c8a91a9b750e9730327c991fd44d7a4a90c16b6.tar.gz
libssh-8c8a91a9b750e9730327c991fd44d7a4a90c16b6.tar.xz
libssh-8c8a91a9b750e9730327c991fd44d7a4a90c16b6.zip
server: Migrate more functions to new pki.
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r--include/libssh/server.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h
index cb12c133..48f0eabd 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -281,6 +281,19 @@ LIBSSH_API const char *ssh_message_auth_user(ssh_message msg);
* @see ssh_message_type()
*/
LIBSSH_API const char *ssh_message_auth_password(ssh_message msg);
+
+/**
+ * @brief Get the publickey of the authenticated user.
+ *
+ * @param[in] msg The message to get the public key from.
+ *
+ * @return The public key or NULL.
+ *
+ * @see ssh_message_get()
+ * @see ssh_message_type()
+ */
+LIBSSH_API ssh_key ssh_message_auth_pubkey(ssh_message msg);
+
LIBSSH_API ssh_public_key ssh_message_auth_publickey(ssh_message msg);
LIBSSH_API int ssh_message_auth_kbdint_is_response(ssh_message msg);
LIBSSH_API enum ssh_publickey_state_e ssh_message_auth_publickey_state(ssh_message msg);