version 1.310, 2010/11/24 01:24:14 |
version 1.311, 2011/06/22 22:08:42 |
|
|
*/ |
*/ |
void |
void |
x11_request_forwarding_with_spoofing(int client_session_id, const char *disp, |
x11_request_forwarding_with_spoofing(int client_session_id, const char *disp, |
const char *proto, const char *data) |
const char *proto, const char *data, int want_reply) |
{ |
{ |
u_int data_len = (u_int) strlen(data) / 2; |
u_int data_len = (u_int) strlen(data) / 2; |
u_int i, value; |
u_int i, value; |
|
|
|
|
/* Send the request packet. */ |
/* Send the request packet. */ |
if (compat20) { |
if (compat20) { |
channel_request_start(client_session_id, "x11-req", 0); |
channel_request_start(client_session_id, "x11-req", want_reply); |
packet_put_char(0); /* XXX bool single connection */ |
packet_put_char(0); /* XXX bool single connection */ |
} else { |
} else { |
packet_start(SSH_CMSG_X11_REQUEST_FORWARDING); |
packet_start(SSH_CMSG_X11_REQUEST_FORWARDING); |