summaryrefslogtreecommitdiffstats
path: root/include
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 /include
parent3046a5061433b7000964aec5169d127191b6aeed (diff)
downloadlibssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.tar.gz
libssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.tar.xz
libssh-7cc4471168550021eec6b7b97dc24c79d4fb366d.zip
Implemented X11 server side
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h3
-rw-r--r--include/libssh/messages.h6
-rw-r--r--include/libssh/server.h7
3 files changed, 15 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index b4a6a42..3391ed1 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -192,7 +192,8 @@ enum ssh_channel_requests_e {
SSH_CHANNEL_REQUEST_SHELL,
SSH_CHANNEL_REQUEST_ENV,
SSH_CHANNEL_REQUEST_SUBSYSTEM,
- SSH_CHANNEL_REQUEST_WINDOW_CHANGE
+ SSH_CHANNEL_REQUEST_WINDOW_CHANGE,
+ SSH_CHANNEL_REQUEST_X11
};
enum ssh_global_requests_e {
diff --git a/include/libssh/messages.h b/include/libssh/messages.h
index 5001fbe..8f70b5f 100644
--- a/include/libssh/messages.h
+++ b/include/libssh/messages.h
@@ -74,6 +74,12 @@ struct ssh_channel_request {
char *command;
/* subsystem */
char *subsystem;
+
+ /* X11 */
+ uint8_t x11_single_connection;
+ char *x11_auth_protocol;
+ char *x11_auth_cookie;
+ uint32_t x11_screen_number;
};
struct ssh_message_struct {
diff --git a/include/libssh/server.h b/include/libssh/server.h
index 78dea2b..cb12c13 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -325,11 +325,18 @@ LIBSSH_API const char *ssh_message_channel_request_command(ssh_message msg);
LIBSSH_API const char *ssh_message_channel_request_subsystem(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_x11_single_connection(ssh_message msg);
+LIBSSH_API const char *ssh_message_channel_request_x11_auth_protocol(ssh_message msg);
+LIBSSH_API const char *ssh_message_channel_request_x11_auth_cookie(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_x11_screen_number(ssh_message msg);
+
LIBSSH_API const char *ssh_message_global_request_address(ssh_message msg);
LIBSSH_API int ssh_message_global_request_port(ssh_message msg);
LIBSSH_API int ssh_channel_open_reverse_forward(ssh_channel channel, const char *remotehost,
int remoteport, const char *sourcehost, int localport);
+LIBSSH_API int ssh_channel_open_x11(ssh_channel channel,
+ const char *orig_addr, int orig_port);
LIBSSH_API int ssh_channel_request_send_exit_status(ssh_channel channel,
int exit_status);