diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2007-09-11 19:03:34 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2007-09-11 19:03:34 +0000 |
commit | 74d17e9294521ce905bfcfe3391da47d35d12b01 (patch) | |
tree | f3589aef59370d935bd535d7c5e998f051baefe3 /sys/net80211 | |
parent | a24fca2e5515c6c288b1f05c416b805c24cd1316 (diff) |
remove horrid casts now that SHA1Update() has been constified.
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_crypto.c | 6 |
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); |