aboutsummaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-03-11 13:39:29 +0100
committermilo <milo@r0ot.me>2011-04-14 14:05:44 +0200
commit7cc4471168550021eec6b7b97dc24c79d4fb366d (patch)
tree3c54819ef232295fd62296d5a37d70e6ed6f2275 /src/server.c
parent3046a5061433b7000964aec5169d127191b6aeed (diff)
downloadlibssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.tar.gz
libssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.tar.xz
libssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.zip
Implemented X11 server side
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c
index ae27efaa..e693fe95 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1009,6 +1009,22 @@ const char *ssh_message_channel_request_subsystem(ssh_message msg){
return msg->channel_request.subsystem;
}
+int ssh_message_channel_request_x11_single_connection(ssh_message msg){
+ return msg->channel_request.x11_single_connection ? 1 : 0;
+}
+
+const char *ssh_message_channel_request_x11_auth_protocol(ssh_message msg){
+ return msg->channel_request.x11_auth_protocol;
+}
+
+const char *ssh_message_channel_request_x11_auth_cookie(ssh_message msg){
+ return msg->channel_request.x11_auth_cookie;
+}
+
+int ssh_message_channel_request_x11_screen_number(ssh_message msg){
+ return msg->channel_request.x11_screen_number;
+}
+
const char *ssh_message_global_request_address(ssh_message msg){
return msg->global_request.bind_address;
}