summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2007-09-11 19:03:33 +0000
committerdamien <damien@openbsd.org>2007-09-11 19:03:33 +0000
commitf6ff884f584392cfe5f6dfadf1e408d1af021ec2 (patch)
tree1a24384333f9e1f21408495d298159367f90a2de
parents/iwn_edcaupdate/iwn_updateedca/ + hook it into net80211 (diff)
downloadwireguard-openbsd-f6ff884f584392cfe5f6dfadf1e408d1af021ec2.tar.xz
wireguard-openbsd-f6ff884f584392cfe5f6dfadf1e408d1af021ec2.zip
remove horrid casts now that SHA1Update() has been constified.
-rw-r--r--sys/net80211/ieee80211_crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c
index 4f18d2b1a52..219bc7b6411 100644
--- a/sys/net80211/ieee80211_crypto.c
+++ b/sys/net80211/ieee80211_crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_crypto.c,v 1.35 2007/08/29 19:54:46 damien Exp $ */
+/* $OpenBSD: ieee80211_crypto.c,v 1.36 2007/09/11 19:03:33 damien Exp $ */
/* $NetBSD: ieee80211_crypto.c,v 1.5 2003/12/14 09:56:53 dyoung Exp $ */
/*-
@@ -721,7 +721,7 @@ ieee80211_hmac_sha1_v(const struct vector *vec, int vcnt, const u_int8_t *key,
if (key_len > SHA1_BLOCK_LENGTH) {
SHA1Init(&ctx);
- SHA1Update(&ctx, (u_int8_t *)key, key_len);
+ SHA1Update(&ctx, key, key_len);
SHA1Final(tk, &ctx);
key = tk;
@@ -736,7 +736,7 @@ ieee80211_hmac_sha1_v(const struct vector *vec, int vcnt, const u_int8_t *key,
SHA1Init(&ctx);
SHA1Update(&ctx, k_pad, SHA1_BLOCK_LENGTH);
for (i = 0; i < vcnt; i++)
- SHA1Update(&ctx, (u_int8_t *)vec[i].base, vec[i].len);
+ SHA1Update(&ctx, vec[i].base, vec[i].len);
SHA1Final(digest, &ctx);
bzero(k_pad, sizeof k_pad);