Statistics
| Branch: | Revision:

iof-bird-daemon / nest / password.h @ 7e95c05d

History | View | Annotate | Download (567 Bytes)

1
/*
2
 *        BIRD -- Password handling
3
 *
4
 *        (c) 1999 Pavel Machek <pavel@ucw.cz>
5
 *        (c) 2004 Ondrej Filip <feela@network.cz>
6
 *
7
 *        Can be freely distributed and used under the terms of the GNU GPL.
8
 */
9

    
10
#ifndef PASSWORD_H
11
#define PASSWORD_H
12
#include "lib/timer.h"
13

    
14
#define MD5_AUTH_SIZE 16
15

    
16
struct password_item {
17
  node n;
18
  char *password;
19
  int id;
20
  bird_clock_t accfrom, accto, genfrom, gento;
21
};
22

    
23
extern struct password_item *last_password_item;
24

    
25
struct password_item *password_find(list *l, int first_fit);
26
void password_cpy(char *dst, char *src, int size);
27

    
28
#endif