version 1.432, 2015/12/11 03:20:09 |
version 1.433, 2016/01/13 23:04:47 |
|
|
struct winsize ws; |
struct winsize ws; |
char *cp; |
char *cp; |
const char *display; |
const char *display; |
|
char *proto = NULL, *data = NULL; |
|
|
/* Enable compression if requested. */ |
/* Enable compression if requested. */ |
if (options.compression) { |
if (options.compression) { |
|
|
display = getenv("DISPLAY"); |
display = getenv("DISPLAY"); |
if (display == NULL && options.forward_x11) |
if (display == NULL && options.forward_x11) |
debug("X11 forwarding requested but DISPLAY not set"); |
debug("X11 forwarding requested but DISPLAY not set"); |
if (options.forward_x11 && display != NULL) { |
if (options.forward_x11 && client_x11_get_proto(display, |
char *proto, *data; |
options.xauth_location, options.forward_x11_trusted, |
/* Get reasonable local authentication information. */ |
options.forward_x11_timeout, &proto, &data) == 0) { |
client_x11_get_proto(display, options.xauth_location, |
|
options.forward_x11_trusted, |
|
options.forward_x11_timeout, |
|
&proto, &data); |
|
/* Request forwarding with authentication spoofing. */ |
/* Request forwarding with authentication spoofing. */ |
debug("Requesting X11 forwarding with authentication " |
debug("Requesting X11 forwarding with authentication " |
"spoofing."); |
"spoofing."); |
|
|
extern char **environ; |
extern char **environ; |
const char *display; |
const char *display; |
int interactive = tty_flag; |
int interactive = tty_flag; |
|
char *proto = NULL, *data = NULL; |
|
|
if (!success) |
if (!success) |
return; /* No need for error message, channels code sens one */ |
return; /* No need for error message, channels code sens one */ |
|
|
display = getenv("DISPLAY"); |
display = getenv("DISPLAY"); |
if (display == NULL && options.forward_x11) |
if (display == NULL && options.forward_x11) |
debug("X11 forwarding requested but DISPLAY not set"); |
debug("X11 forwarding requested but DISPLAY not set"); |
if (options.forward_x11 && display != NULL) { |
if (options.forward_x11 && client_x11_get_proto(display, |
char *proto, *data; |
options.xauth_location, options.forward_x11_trusted, |
/* Get reasonable local authentication information. */ |
options.forward_x11_timeout, &proto, &data) == 0) { |
client_x11_get_proto(display, options.xauth_location, |
|
options.forward_x11_trusted, |
|
options.forward_x11_timeout, &proto, &data); |
|
/* Request forwarding with authentication spoofing. */ |
/* Request forwarding with authentication spoofing. */ |
debug("Requesting X11 forwarding with authentication " |
debug("Requesting X11 forwarding with authentication " |
"spoofing."); |
"spoofing."); |