comparison 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
comparison
equal deleted inserted replaced
725:49f68a7b7a55 726:78eda530c000
43 extern int exitflag; 43 extern int exitflag;
44 44
45 void common_session_init(int sock_in, int sock_out); 45 void common_session_init(int sock_in, int sock_out);
46 void session_loop(void(*loophandler)()); 46 void session_loop(void(*loophandler)());
47 void common_session_cleanup(); 47 void common_session_cleanup();
48 void session_identification(); 48 void send_session_identification();
49 void send_msg_ignore(); 49 void send_msg_ignore();
50 50
51 const char* get_user_shell(); 51 const char* get_user_shell();
52 void fill_passwd(const char* username); 52 void fill_passwd(const char* username);
53 53
109 respecting AUTH_TIMEOUT any more) */ 109 respecting AUTH_TIMEOUT any more) */
110 110
111 int sock_in; 111 int sock_in;
112 int sock_out; 112 int sock_out;
113 113
114 unsigned char *remoteident; 114 /* remotehost will be initially NULL as we delay
115 * reading the remote version string. it will be set
116 * by the time any recv_() packet methods are called */
117 unsigned char *remoteident;
115 118
116 int maxfd; /* the maximum file descriptor to check with select() */ 119 int maxfd; /* the maximum file descriptor to check with select() */
117 120
118 121
119 /* Packet buffers/values etc */ 122 /* Packet buffers/values etc */