version 1.79, 2000/12/27 11:51:54 |
version 1.80, 2001/01/13 18:32:50 |
|
|
} |
} |
} |
} |
/* Tell the packet module whether this is an interactive session. */ |
/* Tell the packet module whether this is an interactive session. */ |
packet_set_interactive(interactive, options.keepalives); |
packet_set_interactive(interactive); |
|
|
|
|
/* Request authentication agent forwarding if appropriate. */ |
/* Request authentication agent forwarding if appropriate. */ |
check_agent_present(); |
check_agent_present(); |
|
|
|
|
ssh_session2_callback(int id, void *arg) |
ssh_session2_callback(int id, void *arg) |
{ |
{ |
int len; |
int len; |
|
int interactive = 0; |
|
|
debug("client_init id %d arg %d", id, (int)arg); |
debug("client_init id %d arg %d", id, (int)arg); |
|
|
if (no_shell_flag) |
if (no_shell_flag) |
|
|
packet_put_int(ws.ws_ypixel); |
packet_put_int(ws.ws_ypixel); |
packet_put_cstring(""); /* XXX: encode terminal modes */ |
packet_put_cstring(""); /* XXX: encode terminal modes */ |
packet_send(); |
packet_send(); |
|
interactive = 1; |
/* XXX wait for reply */ |
/* XXX wait for reply */ |
} |
} |
if (options.forward_x11 && |
if (options.forward_x11 && |
|
|
/* Request forwarding with authentication spoofing. */ |
/* Request forwarding with authentication spoofing. */ |
debug("Requesting X11 forwarding with authentication spoofing."); |
debug("Requesting X11 forwarding with authentication spoofing."); |
x11_request_forwarding_with_spoofing(id, proto, data); |
x11_request_forwarding_with_spoofing(id, proto, data); |
|
interactive = 1; |
/* XXX wait for reply */ |
/* XXX wait for reply */ |
} |
} |
|
|
|
|
/* channel_callback(id, SSH2_MSG_OPEN_CONFIGMATION, client_init, 0); */ |
/* channel_callback(id, SSH2_MSG_OPEN_CONFIGMATION, client_init, 0); */ |
done: |
done: |
/* register different callback, etc. XXX */ |
/* register different callback, etc. XXX */ |
|
packet_set_interactive(interactive); |
client_set_session_ident(id); |
client_set_session_ident(id); |
} |
} |
|
|