diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2002-11-21 09:40:35 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2002-11-21 09:40:35 +0000 |
commit | 111e8cf96598d26e13d29b6ed645cd75258191d4 (patch) | |
tree | 0382484351a63e32029068174480c58ddcc462f6 /sbin/isakmpd/hash.h | |
parent | 2536c5ff25921a67417bca335806fddf2572d956 (diff) |
hmac_init and prf_alloc should use unsigned lengths. Problem pointed out by Patrick Latifi.
Diffstat (limited to 'sbin/isakmpd/hash.h')
-rw-r--r-- | sbin/isakmpd/hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/hash.h b/sbin/isakmpd/hash.h index 9f1c9544220..dceb37edb39 100644 --- a/sbin/isakmpd/hash.h +++ b/sbin/isakmpd/hash.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.h,v 1.4 2002/09/11 09:50:43 ho Exp $ */ +/* $OpenBSD: hash.h,v 1.5 2002/11/21 09:40:34 ho Exp $ */ /* $EOM: hash.h,v 1.6 1998/07/25 22:04:36 niklas Exp $ */ /* @@ -59,7 +59,7 @@ struct hash { void (*Init) (void *); void (*Update) (void *, unsigned char *, unsigned int); void (*Final) (unsigned char *, void *); - void (*HMACInit) (struct hash *, unsigned char *, int); + void (*HMACInit) (struct hash *, unsigned char *, unsigned int); void (*HMACFinal) (unsigned char *, struct hash *); }; @@ -70,6 +70,6 @@ struct hash { #define HMAC_BLOCKLEN 64 extern struct hash *hash_get (enum hashes); -extern void hmac_init (struct hash *, unsigned char *, int); +extern void hmac_init (struct hash *, unsigned char *, unsigned int); #endif /* _HASH_H_ */ |