summaryrefslogtreecommitdiffstats
path: root/nest/password.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-26 22:11:14 +0200
committerOndrej Filip <feela@network.cz>2004-06-26 22:11:14 +0200
commit5236fb03afecd3d7a6ec6e96712c79a31be32132 (patch)
treeafee4d3766107cdc205d7da70a66d09014aa1ef6 /nest/password.h
parent98ac61766d81d9f20c4a7c7e12859c3b82b24f4c (diff)
downloadbird-5236fb03afecd3d7a6ec6e96712c79a31be32132.tar
bird-5236fb03afecd3d7a6ec6e96712c79a31be32132.zip
Password management redesigned (untested).
Diffstat (limited to 'nest/password.h')
-rw-r--r--nest/password.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/nest/password.h b/nest/password.h
index 481eeb6..0c45383 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