]>
git.ipfire.org Git - thirdparty/bird.git/blob - nest/password.c
2 * BIRD -- Password handling
4 * (c) 1999 Pavel Machek <pavel@ucw.cz>
5 * (c) 2004 Ondrej Filip <feela@network.cz>
7 * Can be freely distributed and used under the terms of the GNU GPL.
10 #include "nest/bird.h"
11 #include "nest/password.h"
12 #include "lib/string.h"
14 struct password_item
*last_password_item
= NULL
;
16 struct password_item
*
17 password_find(list
*l
)
19 struct password_item
*pi
;
25 if ((pi
->genfrom
< now
) && (pi
->gento
> now
))
32 void password_cpy(char *dst
, char *src
, int size
)
35 memcpy(dst
, src
, (strlen(src
) < (unsigned) size
? strlen(src
) : (unsigned) size
));