auth.h 532 B

123456789101112131415161718192021222324
  1. #ifndef _AUTH_H
  2. #define _AUTH_H
  3. #include "crypt.h"
  4. struct auth_t {
  5. struct userrec *user;
  6. char hash[MD5_HASH_LENGTH + 1]; /* used for dcc authing */
  7. char nick[NICKLEN];
  8. char host[UHOSTLEN];
  9. int authed;
  10. int authing;
  11. time_t authtime; /* what time they authed at */
  12. time_t atime; /* when they last were active */
  13. };
  14. #ifndef MAKING_MODS
  15. int new_auth();
  16. int findauth(char *);
  17. void removeauth(int);
  18. char *makehash(struct userrec *, char *);
  19. #endif /* !MAKING_MODS */
  20. #endif /* !_AUTH_H */