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:
parent
a3f657ac76
commit
45a48e2de2
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user