aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-30 08:53:54 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-30 08:53:54 (GMT)
commitc3550295fb1785b0b03992640c4b914403d76815 (patch)
tree8d01e1897573761e926cf6cee9456d4b437f02e9 /src/common/wpa_common.h
parent7b1aa4fe30db5020c49af87ea38a87c17256a28b (diff)
downloadhostap-c3550295fb1785b0b03992640c4b914403d76815.zip
hostap-c3550295fb1785b0b03992640c4b914403d76815.tar.gz
hostap-c3550295fb1785b0b03992640c4b914403d76815.tar.bz2
Move WPA cipher information into a shared location
Try to share most of the cipher information like key and RSC lengths and suite selector conversions, etc. in wpa_common.c to avoid having similar code throughout the WPA implementation for handling cipher specific behavior. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index c871ae1..603166b 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -379,4 +379,12 @@ struct wpa_ft_ies {
int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse);
+int wpa_cipher_key_len(int cipher);
+int wpa_cipher_rsc_len(int cipher);
+int wpa_cipher_to_alg(int cipher);
+int wpa_cipher_valid_pairwise(int cipher);
+u32 wpa_cipher_to_suite(int proto, int cipher);
+int rsn_cipher_put_suites(u8 *pos, int ciphers);
+int wpa_cipher_put_suites(u8 *pos, int ciphers);
+
#endif /* WPA_COMMON_H */