diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-26 20:11:14 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-26 20:11:14 +0000 |
commit | 5236fb03afecd3d7a6ec6e96712c79a31be32132 (patch) | |
tree | afee4d3766107cdc205d7da70a66d09014aa1ef6 /nest/password.h | |
parent | 98ac61766d81d9f20c4a7c7e12859c3b82b24f4c (diff) |
Password management redesigned (untested).
Diffstat (limited to 'nest/password.h')
-rw-r--r-- | nest/password.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/nest/password.h b/nest/password.h index 481eeb61..0c453836 100644 --- a/nest/password.h +++ b/nest/password.h @@ -1,7 +1,8 @@ /* * BIRD -- Password handling * - * Copyright 1999 Pavel Machek <pavel@ucw.cz> + * (c) 1999 Pavel Machek <pavel@ucw.cz> + * (c) 2004 Ondrej Filip <feela@network.cz> * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -10,18 +11,18 @@ #define PASSWORD_H #include "lib/timer.h" +#define MD5_AUTH_SIZE 16 + struct password_item { - struct password_item *next; + node n; char *password; int id; - bird_clock_t from, passive, to; + bird_clock_t accfrom, accto, genfrom, gento; }; extern struct password_item *last_password_item; -struct password_item *get_best_password(struct password_item *head, int flags); -extern int password_same(struct password_item *, struct password_item *); -extern void password_strncpy(char *to, char *from, int len); - +struct password_item *password_find(list *); +void password_cpy(char *dst, char *src, int size); #endif |