From de2a27e255b6ec834d11c005909b28a150c7c0db Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 25 Oct 2016 17:04:17 +0200 Subject: Add generic message authentication interface Add generic interface for generating and verifying MACs (message authentication codes). Replace multiple HMAC implementation with a generic one. --- nest/password.c | 2 +- nest/password.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/password.c b/nest/password.c index 91aaa418..d6e2087f 100644 --- a/nest/password.c +++ b/nest/password.c @@ -37,7 +37,7 @@ password_find(list *l, int first_fit) } struct password_item * -password_find_by_id(list *l, int id) +password_find_by_id(list *l, uint id) { struct password_item *pi; diff --git a/nest/password.h b/nest/password.h index 1d9de53c..a45261e6 100644 --- a/nest/password.h +++ b/nest/password.h @@ -21,7 +21,7 @@ struct password_item { extern struct password_item *last_password_item; struct password_item *password_find(list *l, int first_fit); -struct password_item *password_find_by_id(list *l, int id); +struct password_item *password_find_by_id(list *l, uint id); struct password_item *password_find_by_value(list *l, char *pass, uint size); static inline int password_verify(struct password_item *p1, char *p2, uint size) -- cgit v1.2.3