0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

password_same utility function

This commit is contained in:
Pavel Machek 2000-05-10 13:42:46 +00:00
parent a3f657ac76
commit 45a48e2de2
2 changed files with 9 additions and 0 deletions

View File

@ -51,3 +51,11 @@ password_strncpy(char *to, char *from, int len)
}
}
int
password_same(struct password_item *old, struct password_item *new)
{
return ((old->from == new->from) &&
(old->to == new->to) &&
(old->passive == new->passive) &&
password_same(old, new));
}

View File

@ -20,6 +20,7 @@ struct password_item {
extern struct password_item *last_password_item;
struct password_item *get_best_password(struct password_item *head, int flags);
extern int password_same(struct password_item *, struct password_item *);
extern void password_strncpy(char *to, char *from, int len);