summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-15 22:10:50 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-15 22:10:50 +0000
commit14c682e7d0c588300f1984d3de1a7a0c1370ef15 (patch)
tree86afd8712a2da9d6236721be9f70a6cb5186444f /sbin
parent7dd64f492b258a954a6cdedb8ae0e8329055d5b5 (diff)
Be cleaner about signed vs. unsigned when it's easy to do so. OK hshoexer
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/key.c6
-rw-r--r--sbin/isakmpd/key.h6
2 files changed, 6 insertions, 6 deletions
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_ */