diff options
author | Dan Williams <dcbw@redhat.com> | 2005-12-14 19:12:20 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2005-12-14 19:12:20 +0000 |
commit | 423383c0e573bdb2463d2abb9181ba5e8490c533 (patch) | |
tree | 44ca11dc0e6f1f62bfc28cbb1ae19ee096b50b97 /src/wpa.h | |
parent | 1da42ec8355692be864bf0f5721b145de1e679a6 (diff) | |
download | NetworkManager-423383c0e573bdb2463d2abb9181ba5e8490c533.tar.gz |
2005-12-14 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
- Add 802.11-specific capability for 802.1x key
management
* src/wpa.[ch]
- Pull in WPA IE and RSN IE parsing code from
wpa_supplicant so we can determine access point
capabilities
- Move WPA-related constants here from NetworkManagerAP.h
and NetworkManagerDevice.c
* src/NetworkManagerDevice.c
src/NetworkManagerAP.[ch]
- Use WPA-related constants from wpa.h
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1190 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/wpa.h')
-rw-r--r-- | src/wpa.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/wpa.h b/src/wpa.h new file mode 100644 index 0000000000..2f5035193e --- /dev/null +++ b/src/wpa.h @@ -0,0 +1,38 @@ +/* + * wpa_supplicant - WPA definitions + * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this file may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + +#ifndef WPA_H +#define WPA_H + +#include <stdint.h> + +#define WPA_GENERIC_INFO_ELEM 0xdd +#define WPA_RSN_INFO_ELEM 0x30 + +#define WPA_MAX_IE_LEN 40 + +struct wpa_ie_data { + int proto; + int pairwise_cipher; + int group_cipher; + int key_mgmt; + int capabilities; + int num_pmkid; + const uint8_t *pmkid; +}; + + +int wpa_parse_wpa_ie(const uint8_t *wpa_ie, size_t wpa_ie_len, struct wpa_ie_data *data); + +#endif /* WPA_H */ |