comparison session.h @ 158:364a75cfebab

Log the IP along with auth success/fail attempts
author Matt Johnston <matt@ucc.asn.au>
date Thu, 23 Dec 2004 17:00:15 +0000
parents 8c2b3506f112
children 2c5741e4b855
comparison
equal deleted inserted replaced
156:8c2b3506f112 158:364a75cfebab
46 void common_session_cleanup(); 46 void common_session_cleanup();
47 void session_identification(); 47 void session_identification();
48 48
49 49
50 /* Server */ 50 /* Server */
51 void svr_session(int sock, int childpipe, char *remotehost); 51 void svr_session(int sock, int childpipe, char *remotehost, char *addrstring);
52 void svr_dropbear_exit(int exitcode, const char* format, va_list param); 52 void svr_dropbear_exit(int exitcode, const char* format, va_list param);
53 void svr_dropbear_log(int priority, const char* format, va_list param); 53 void svr_dropbear_log(int priority, const char* format, va_list param);
54 54
55 /* Client */ 55 /* Client */
56 void cli_session(int sock, char *remotehost); 56 void cli_session(int sock, char *remotehost);
178 178
179 /* Used to avoid a race in the exit returncode handling - see 179 /* Used to avoid a race in the exit returncode handling - see
180 * svr-chansession.c for details */ 180 * svr-chansession.c for details */
181 struct exitinfo lastexit; 181 struct exitinfo lastexit;
182 182
183 /* The numeric address they connected from, used for logging */
184 char * addrstring;
185
183 }; 186 };
184 187
185 typedef enum { 188 typedef enum {
186 KEX_NOTHING, 189 KEX_NOTHING,
187 KEXINIT_RCVD, 190 KEXINIT_RCVD,