summaryrefslogtreecommitdiff
path: root/nest/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/password.c')
-rw-r--r--nest/password.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nest/password.c b/nest/password.c
index 6a020287..b8acb53b 100644
--- a/nest/password.c
+++ b/nest/password.c
@@ -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));
+}