diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2002-09-11 09:50:45 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2002-09-11 09:50:45 +0000 |
commit | e61e8d34c013f7d9405d5bf2fdd76d2d750f7db8 (patch) | |
tree | 29e85398fc18e15f3bec403793d062b5dcde3995 /sbin/isakmpd/key.c | |
parent | 3077f36a703beaa821b0880e5d2c796015b4ec88 (diff) |
signed vs unsigned, some void * arithmetic, from -pedantic. niklas@ ok.
Diffstat (limited to 'sbin/isakmpd/key.c')
-rw-r--r-- | sbin/isakmpd/key.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/isakmpd/key.c b/sbin/isakmpd/key.c index eb717907be6..ca0f7a003c0 100644 --- a/sbin/isakmpd/key.c +++ b/sbin/isakmpd/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.11 2002/06/10 18:08:58 ho Exp $ */ +/* $OpenBSD: key.c,v 1.12 2002/09/11 09:50:44 ho Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -58,7 +58,7 @@ key_serialize (int type, int private, void *key, u_int8_t **data, size_t *datale { case ISAKMP_KEY_PASSPHRASE: *datalen = strlen ((char *)key); - *data = strdup ((char *)key); + *data = (u_int8_t *)strdup ((char *)key); break; case ISAKMP_KEY_RSA: switch (private) @@ -130,7 +130,7 @@ key_internalize (int type, int private, u_int8_t *data, int datalen) switch (type) { case ISAKMP_KEY_PASSPHRASE: - return strdup (data); + return strdup ((char *)data); case ISAKMP_KEY_RSA: switch (private) { @@ -161,13 +161,13 @@ key_internalize (int type, int private, u_int8_t *data, int datalen) /* Convert from printable to serialized */ void key_from_printable (int type, int private, char *key, u_int8_t **data, - int *datalen) + u_int32_t *datalen) { switch (type) { case ISAKMP_KEY_PASSPHRASE: *datalen = strlen (key); - *data = strdup (key); + *data = (u_int8_t *)strdup (key); break; case ISAKMP_KEY_RSA: |