Statistics
| Branch: | Revision:

iof-bird-daemon / nest / password.h @ 8c6ce98b

History | View | Annotate | Download (614 Bytes)

1 1a2ded45 Pavel Machek
/*
2
 *        BIRD -- Password handling
3
 *
4
 *        Copyright 1999 Pavel Machek <pavel@ucw.cz>
5
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8
9 858a7177 Pavel Machek
#ifndef PASSWORD_H
10
#define PASSWORD_H
11 900d5470 Pavel Machek
#include "lib/timer.h"
12
13 1a2ded45 Pavel Machek
struct password_item {
14
  struct password_item *next;
15
  char *password;
16
  int id;
17 900d5470 Pavel Machek
  bird_clock_t from, passive, to;
18 1a2ded45 Pavel Machek
};
19
20
extern struct password_item *last_password_item;
21 900d5470 Pavel Machek
22
struct password_item *get_best_password(struct password_item *head, int flags);
23 45a48e2d Pavel Machek
extern int password_same(struct password_item *, struct password_item *);
24 2e6197d6 Pavel Machek
extern void password_strncpy(char *to, char *from, int len);
25
26 900d5470 Pavel Machek
27 858a7177 Pavel Machek
#endif