Mercurial > dropbear
diff session.h @ 726:78eda530c000
send out our kexinit packet before blocking to read the SSH version string
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 31 Mar 2013 00:40:00 +0800 |
parents | 4a274f47eabd |
children | 00bc3df3a9c3 cd201dc2da9a |
line wrap: on
line diff
--- a/session.h Sun Mar 24 00:02:20 2013 +0800 +++ b/session.h Sun Mar 31 00:40:00 2013 +0800 @@ -45,7 +45,7 @@ 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 @@ 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() */