aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_common/eap_defs.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-08-17 08:36:20 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-17 08:36:20 (GMT)
commit5f2301a6da95bb88edc56db9871fff0cf5edffc9 (patch)
treed87b3f0be212faf925c10e2e27e124e3a910b2ba /src/eap_common/eap_defs.h
parent542913943e6a2cfae1b301aedc1e7980b5032911 (diff)
downloadhostap-5f2301a6da95bb88edc56db9871fff0cf5edffc9.zip
hostap-5f2301a6da95bb88edc56db9871fff0cf5edffc9.tar.gz
hostap-5f2301a6da95bb88edc56db9871fff0cf5edffc9.tar.bz2
Replace EapType typedef with enum eap_type
This cleans up coding style of the EAP implementation by avoiding typedef of an enum hiding the type of the variables. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_common/eap_defs.h')
-rw-r--r--src/eap_common/eap_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eap_common/eap_defs.h b/src/eap_common/eap_defs.h
index bc3047c..70999c4 100644
--- a/src/eap_common/eap_defs.h
+++ b/src/eap_common/eap_defs.h
@@ -64,7 +64,7 @@ enum eap_erp_cryptosuite {
* EAP Method Types as allocated by IANA:
* http://www.iana.org/assignments/eap-numbers
*/
-typedef enum {
+enum eap_type {
EAP_TYPE_NONE = 0,
EAP_TYPE_IDENTITY = 1 /* RFC 3748 */,
EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */,
@@ -94,7 +94,7 @@ typedef enum {
EAP_TYPE_EKE = 53 /* RFC 6124 */,
EAP_TYPE_TEAP = 55 /* RFC 7170 */,
EAP_TYPE_EXPANDED = 254 /* RFC 3748 */
-} EapType;
+};
/* SMI Network Management Private Enterprise Code for vendor specific types */