version 1.56, 2000/05/03 18:03:06 |
version 1.57, 2000/05/08 17:42:24 |
|
|
int ret = x11_open_helper(c); |
int ret = x11_open_helper(c); |
if (ret == 1) { |
if (ret == 1) { |
c->type = SSH_CHANNEL_OPEN; |
c->type = SSH_CHANNEL_OPEN; |
channel_pre_open_15(c, readset, writeset); |
if (compat20) |
|
channel_pre_open_20(c, readset, writeset); |
|
else |
|
channel_pre_open_15(c, readset, writeset); |
} else if (ret == -1) { |
} else if (ret == -1) { |
debug("X11 rejected %d i%d/o%d", c->self, c->istate, c->ostate); |
debug("X11 rejected %d i%d/o%d", c->self, c->istate, c->ostate); |
chan_read_failed(c); /** force close? */ |
chan_read_failed(c); /** force close? */ |
|
|
packet_put_int(c->local_maxpacket); |
packet_put_int(c->local_maxpacket); |
/* originator host and port */ |
/* originator host and port */ |
packet_put_cstring(remote_hostname); |
packet_put_cstring(remote_hostname); |
packet_put_int(remote_port); |
if (datafellows & SSH_BUG_X11FWD) { |
|
debug("ssh2 x11 bug compat mode"); |
|
} else { |
|
packet_put_int(remote_port); |
|
} |
packet_send(); |
packet_send(); |
} else { |
} else { |
packet_start(SSH_SMSG_X11_OPEN); |
packet_start(SSH_SMSG_X11_OPEN); |