Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (614 Bytes)

1
/*
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
#ifndef PASSWORD_H
10
#define PASSWORD_H
11
#include "lib/timer.h"
12

    
13
struct password_item {
14
  struct password_item *next;
15
  char *password;
16
  int id;
17
  bird_clock_t from, passive, to;
18
};
19

    
20
extern struct password_item *last_password_item;
21

    
22
struct password_item *get_best_password(struct password_item *head, int flags);
23
extern int password_same(struct password_item *, struct password_item *);
24
extern void password_strncpy(char *to, char *from, int len);
25

    
26

    
27
#endif