diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-03-31 00:40:00 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-03-31 00:40:00 +0800 |
commit | a0e931005b6f9de407ba2ac5b5df9e34d4a7fb7e (patch) | |
tree | dac556bfd732ac24af552b92713afcd77d57a3cb /session.h | |
parent | 9be0d6b53d6b85a8f273ee28876405fbca49b9fd (diff) | |
download | dropbear-a0e931005b6f9de407ba2ac5b5df9e34d4a7fb7e.tar.gz |
send out our kexinit packet before blocking to read the SSH version string
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -45,7 +45,7 @@ extern int exitflag; void common_session_init(int sock_in, int sock_out); void session_loop(void(*loophandler)()); void common_session_cleanup(); -void session_identification(); +void send_session_identification(); void send_msg_ignore(); const char* get_user_shell(); @@ -111,7 +111,10 @@ struct sshsession { int sock_in; int sock_out; - unsigned char *remoteident; + /* remotehost will be initially NULL as we delay + * reading the remote version string. it will be set + * by the time any recv_() packet methods are called */ + unsigned char *remoteident; int maxfd; /* the maximum file descriptor to check with select() */ |