From 14c682e7d0c588300f1984d3de1a7a0c1370ef15 Mon Sep 17 00:00:00 2001 From: Chad Loder Date: Tue, 15 Nov 2005 22:10:50 +0000 Subject: Be cleaner about signed vs. unsigned when it's easy to do so. OK hshoexer --- sbin/isakmpd/key.c | 6 +++--- sbin/isakmpd/key.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sbin') diff --git a/sbin/isakmpd/key.c b/sbin/isakmpd/key.c index 8c4a2573dcb..19c8e11efa3 100644 --- a/sbin/isakmpd/key.c +++ b/sbin/isakmpd/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.23 2005/11/15 21:49:04 cloder Exp $ */ +/* $OpenBSD: key.c,v 1.24 2005/11/15 22:10:49 cloder Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -93,7 +93,7 @@ key_serialize(int type, int private, void *key, u_int8_t **data, /* Convert from serialized to printable */ char * -key_printable(int type, int private, u_int8_t *data, int datalen) +key_printable(int type, int private, u_int8_t *data, size_t datalen) { switch (type) { case ISAKMP_KEY_PASSPHRASE: @@ -111,7 +111,7 @@ key_printable(int type, int private, u_int8_t *data, int datalen) /* Convert from serialized to internal. */ void * -key_internalize(int type, int private, u_int8_t *data, int datalen) +key_internalize(int type, int private, u_int8_t *data, size_t datalen) { switch (type) { case ISAKMP_KEY_PASSPHRASE: diff --git a/sbin/isakmpd/key.h b/sbin/isakmpd/key.h index 81b13289046..38d5e993fce 100644 --- a/sbin/isakmpd/key.h +++ b/sbin/isakmpd/key.h @@ -1,4 +1,4 @@ -/* $OpenBSD: key.h,v 1.7 2004/04/15 18:39:26 deraadt Exp $ */ +/* $OpenBSD: key.h,v 1.8 2005/11/15 22:10:49 cloder Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -33,7 +33,7 @@ void key_free(int, int, void *); void key_serialize(int, int, void *, u_int8_t **, size_t *); -char *key_printable(int, int, u_int8_t *, int); +char *key_printable(int, int, u_int8_t *, size_t); void key_from_printable(int, int, char *, u_int8_t **, u_int32_t *); -void *key_internalize(int, int, u_int8_t *, int); +void *key_internalize(int, int, u_int8_t *, size_t); #endif /* _KEY_H_ */ -- cgit v1.2.3