Mercurial > dropbear
comparison loginrec.h @ 150:82fcf3185616
Cleaning out various dead wood found with -dead_strip
bignum.c: mptobytes now resides in dss.c
loginrec.c: remove lastlog code since it isn't used.
dbutil.c: removed obselete usingsyslog variable
channel.h: client channel type only defined for client compile
common-algo.c: s/rijndael/aes/
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 20 Dec 2004 14:24:57 +0000 |
parents | 5c6f9d27ea1c |
children | 39d872718d4b |
comparison
equal
deleted
inserted
replaced
149:ed9ca2a9705c | 150:82fcf3185616 |
---|---|
148 * login recording functions | 148 * login recording functions |
149 */ | 149 */ |
150 | 150 |
151 /** 'public' functions */ | 151 /** 'public' functions */ |
152 | 152 |
153 /* construct a new login entry */ | |
154 struct logininfo *login_alloc_entry(int pid, const char *username, | 153 struct logininfo *login_alloc_entry(int pid, const char *username, |
155 const char *hostname, const char *line); | 154 const char *hostname, const char *line); |
156 /* free a structure */ | 155 /* free a structure */ |
157 void login_free_entry(struct logininfo *li); | 156 void login_free_entry(struct logininfo *li); |
158 /* fill out a pre-allocated structure with useful information */ | 157 /* fill out a pre-allocated structure with useful information */ |
176 | 175 |
177 /* set the network address based on network address type */ | 176 /* set the network address based on network address type */ |
178 void login_set_addr(struct logininfo *li, const struct sockaddr *sa, | 177 void login_set_addr(struct logininfo *li, const struct sockaddr *sa, |
179 const unsigned int sa_size); | 178 const unsigned int sa_size); |
180 | 179 |
181 /* | |
182 * lastlog retrieval functions | |
183 */ | |
184 /* lastlog *entry* functions fill out a logininfo */ | |
185 struct logininfo *login_get_lastlog(struct logininfo *li, const int uid); | |
186 /* lastlog *time* functions return time_t equivalent (uint) */ | |
187 unsigned int login_get_lastlog_time(const int uid); | |
188 | |
189 /* produce various forms of the line filename */ | 180 /* produce various forms of the line filename */ |
190 char *line_fullname(char *dst, const char *src, size_t dstsize); | 181 char *line_fullname(char *dst, const char *src, size_t dstsize); |
191 char *line_stripname(char *dst, const char *src, size_t dstsize); | 182 char *line_stripname(char *dst, const char *src, size_t dstsize); |
192 char *line_abbrevname(char *dst, const char *src, size_t dstsize); | 183 char *line_abbrevname(char *dst, const char *src, size_t dstsize); |
193 | 184 |