]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
password_same utility function
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 13:42:46 +0000 (13:42 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 13:42:46 +0000 (13:42 +0000)
nest/password.c
nest/password.h

index 6a02028732e1987caf3378e962e50880da2c18ca..b8acb53b2bd7fe28679c8d2aa48304ac338a738c 100644 (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));
+}
index 119aa707a29c662adede72db82ddc5e0c8bca05b..481eeb61b807ebf49cbb0bee44f142af85582001 100644 (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);