aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-12-20 18:51:37 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-12-20 18:51:37 +0100
commit43288bc4f20948e0b3e3dcd6ebf1141517a0fe22 (patch)
tree735bf751530ea65456d8ec2d9f663e92b38095f5 /libssh/server.c
parent2e22d6ef9931156d837f6747aa9e46943bc51edb (diff)
downloadlibssh-43288bc4f20948e0b3e3dcd6ebf1141517a0fe22.tar.gz
libssh-43288bc4f20948e0b3e3dcd6ebf1141517a0fe22.tar.xz
libssh-43288bc4f20948e0b3e3dcd6ebf1141517a0fe22.zip
added ssh_message_auth_reply_pk_ok_simple
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c
index bb260e3f..9a9bdc4b 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -808,6 +808,19 @@ int ssh_message_auth_reply_pk_ok(ssh_message msg, ssh_string algo, ssh_string pu
return packet_send(msg->session);
}
+int ssh_message_auth_reply_pk_ok_simple(ssh_message msg) {
+ ssh_string algo;
+ ssh_string pubkey;
+ int ret;
+ algo=string_from_char(msg->auth_request.public_key->type_c);
+ pubkey=publickey_to_string(msg->auth_request.public_key);
+ ret=ssh_message_auth_reply_pk_ok(msg,algo,pubkey);
+ string_free(algo);
+ string_free(pubkey);
+ return ret;
+}
+
+
char *ssh_message_channel_request_open_originator(ssh_message msg){
return msg->channel_request_open.originator;
}