diff options
| author | 2008-07-21 19:27:26 +0000 | |
|---|---|---|
| committer | 2008-07-21 19:27:26 +0000 | |
| commit | 6aaa29fa19e000258c7d74124b91791d14d193ad (patch) | |
| tree | 087f7606255020d33dc1f75212db909916665ab0 /sys/net80211/ieee80211_crypto.c | |
| parent | fix ugly debug dump output. found with bluhm@ (diff) | |
| download | wireguard-openbsd-6aaa29fa19e000258c7d74124b91791d14d193ad.tar.xz wireguard-openbsd-6aaa29fa19e000258c7d74124b91791d14d193ad.zip | |
add ieee80211_priv.h file: contains definitions private to net80211.
this must not be included by drivers.
Diffstat (limited to 'sys/net80211/ieee80211_crypto.c')
| -rw-r--r-- | sys/net80211/ieee80211_crypto.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c index 2b989435719..4cdd07c2fa9 100644 --- a/sys/net80211/ieee80211_crypto.c +++ b/sys/net80211/ieee80211_crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_crypto.c,v 1.42 2008/06/16 18:32:04 damien Exp $ */ +/* $OpenBSD: ieee80211_crypto.c,v 1.43 2008/07/21 19:27:26 damien Exp $ */ /*- * Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr> @@ -40,6 +40,7 @@ #endif #include <net80211/ieee80211_var.h> +#include <net80211/ieee80211_priv.h> #include <dev/rndvar.h> #include <crypto/arc4.h> @@ -466,17 +467,6 @@ ieee80211_derive_pmkid(const u_int8_t *pmk, size_t pmk_len, const u_int8_t *aa, memcpy(pmkid, hash, IEEE80211_PMKID_LEN); } -/* unaligned big endian access */ -#define BE_READ_2(p) \ - ((u_int16_t) \ - ((((const u_int8_t *)(p))[0] << 8) | \ - (((const u_int8_t *)(p))[1]))) - -#define BE_WRITE_2(p, v) do { \ - ((u_int8_t *)(p))[0] = (v) >> 8; \ - ((u_int8_t *)(p))[1] = (v) & 0xff; \ -} while (0) - /* * Compute the Key MIC field of an EAPOL-Key frame using the specified Key * Confirmation Key (KCK). The hash function can be either HMAC-MD5 or |
