| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef _AUTH_H
- # define _AUTH_H
- # include "crypt.h"
- # ifdef S_AUTHCMDS
- struct auth_t {
- struct userrec *user;
- time_t authtime; /* what time they authed at */
- time_t atime; /* when they last were active */
- int authed;
- int authing;
- # ifdef S_AUTHHASH
- char hash[MD5_HASH_LENGTH + 1]; /* used for dcc authing */
- # endif /* S_AUTHHASH */
- char nick[NICKLEN];
- char hand[NICKLEN];
- char host[UHOSTLEN];
- };
- # endif
- /* S_AUTHCMDS */
- # ifdef S_AUTHCMDS
- int new_auth();
- int findauth(char *);
- void removeauth(int);
- # endif/* S_AUTHCMDS */
- # if defined(S_AUTHHASH) || defined(S_DCCAUTH)
- char *makehash(struct userrec *, char *);
- # endif/* S_AUTHHASH || S_DCCAUTH */
- # ifdef S_AUTHCMDS
- extern int auth_total;
- extern struct auth_t *auth;
- # endif
- /* S_AUTHCMDS */
- # if defined(S_AUTHHASH) || defined(S_DCCAUTH)
- extern char authkey[121];
- # endif
- /* S_AUTHHASH || S_DCCAUTH */
- #endif /* !_AUTH_H */
|