Mercurial > dropbear
comparison svr-session.c @ 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 | 3be7ae2e8dfa 740e782679be |
comparison
equal
deleted
inserted
replaced
156:8c2b3506f112 | 158:364a75cfebab |
---|---|
72 &svr_chan_tcpdirect, | 72 &svr_chan_tcpdirect, |
73 #endif | 73 #endif |
74 NULL /* Null termination is mandatory. */ | 74 NULL /* Null termination is mandatory. */ |
75 }; | 75 }; |
76 | 76 |
77 void svr_session(int sock, int childpipe, char* remotehost) { | 77 void svr_session(int sock, int childpipe, |
78 char* remotehost, char *addrstring) { | |
78 | 79 |
79 struct timeval timeout; | 80 struct timeval timeout; |
80 | 81 |
81 crypto_init(); | 82 crypto_init(); |
82 common_session_init(sock, remotehost); | 83 common_session_init(sock, remotehost); |
83 | 84 |
84 /* Initialise server specific parts of the session */ | 85 /* Initialise server specific parts of the session */ |
85 svr_ses.childpipe = childpipe; | 86 svr_ses.childpipe = childpipe; |
87 svr_ses.addrstring = addrstring; | |
86 svr_authinitialise(); | 88 svr_authinitialise(); |
87 chaninitialise(svr_chantypes); | 89 chaninitialise(svr_chantypes); |
88 svr_chansessinitialise(); | 90 svr_chansessinitialise(); |
89 | 91 |
90 if (gettimeofday(&timeout, 0) < 0) { | 92 if (gettimeofday(&timeout, 0) < 0) { |