Statistics
| Branch: | Revision:

iof-bird-daemon / nest / password.h @ 11361a10

History | View | Annotate | Download (567 Bytes)

1 1a2ded45 Pavel Machek
/*
2
 *        BIRD -- Password handling
3
 *
4 5236fb03 Ondrej Filip
 *        (c) 1999 Pavel Machek <pavel@ucw.cz>
5
 *        (c) 2004 Ondrej Filip <feela@network.cz>
6 1a2ded45 Pavel Machek
 *
7
 *        Can be freely distributed and used under the terms of the GNU GPL.
8
 */
9
10 858a7177 Pavel Machek
#ifndef PASSWORD_H
11
#define PASSWORD_H
12 900d5470 Pavel Machek
#include "lib/timer.h"
13
14 5236fb03 Ondrej Filip
#define MD5_AUTH_SIZE 16
15
16 1a2ded45 Pavel Machek
struct password_item {
17 5236fb03 Ondrej Filip
  node n;
18 1a2ded45 Pavel Machek
  char *password;
19
  int id;
20 5236fb03 Ondrej Filip
  bird_clock_t accfrom, accto, genfrom, gento;
21 1a2ded45 Pavel Machek
};
22
23
extern struct password_item *last_password_item;
24 900d5470 Pavel Machek
25 b21f68b4 Ondrej Zajicek
struct password_item *password_find(list *l, int first_fit);
26 5236fb03 Ondrej Filip
void password_cpy(char *dst, char *src, int size);
27 900d5470 Pavel Machek
28 858a7177 Pavel Machek
#endif