eapol/eapol_framework/eapol_common/include/eapol_key_types.h
branchRCL_3
changeset 9 aa67149e0134
parent 2 1c7bc153c08e
child 18 bad0cc58d154
equal deleted inserted replaced
8:66f897dce0dc 9:aa67149e0134
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 19 %
    19 * %version: 19.1.2 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_EAPOL_KEY_TYPES_H_)
    22 #if !defined(_EAPOL_KEY_TYPES_H_)
    23 #define _EAPOL_KEY_TYPES_H_
    23 #define _EAPOL_KEY_TYPES_H_
    24 
    24 
   100 	eapol_key_authentication_type_none = 0,
   100 	eapol_key_authentication_type_none = 0,
   101 	eapol_key_authentication_type_RSNA_EAP = 1,   ///< Authentication is RSNA 802.11i EAP-authentication, 4-Way, Group Key and STAKey Handshakes.
   101 	eapol_key_authentication_type_RSNA_EAP = 1,   ///< Authentication is RSNA 802.11i EAP-authentication, 4-Way, Group Key and STAKey Handshakes.
   102 	eapol_key_authentication_type_RSNA_PSK = 2,    ///< Authentication is RNSA 802.11i PSK (pre shared key), 4-Way and Group Key Handshakes.
   102 	eapol_key_authentication_type_RSNA_PSK = 2,    ///< Authentication is RNSA 802.11i PSK (pre shared key), 4-Way and Group Key Handshakes.
   103 	eapol_key_authentication_type_WPA_EAP = 3,    ///< Authentication is WPA EAP-authentication, 4-Way and Group Key Handshakes.
   103 	eapol_key_authentication_type_WPA_EAP = 3,    ///< Authentication is WPA EAP-authentication, 4-Way and Group Key Handshakes.
   104 	eapol_key_authentication_type_WPA_PSK = 4,    ///< Authentication is WPA PSK (pre shared key), 4-Way and Group Key Handshakes.
   104 	eapol_key_authentication_type_WPA_PSK = 4,    ///< Authentication is WPA PSK (pre shared key), 4-Way and Group Key Handshakes.
   105 	eapol_key_authentication_type_802_1X = 5, ///< Authentication is dynamic WEP (802.1X). EAP-authentication with simple EAPOL RC4 key message.
   105 	eapol_key_authentication_type_dynamic_WEP = 5, ///< Authentication is dynamic WEP (802.1X). EAP-authentication with simple EAPOL RC4 key message.
   106 	eapol_key_authentication_type_WPXM = 6,    ///< Authentication is WPXM.
   106 	eapol_key_authentication_type_WPXM = 6,    ///< Authentication is WPXM.
   107 	eapol_key_authentication_type_WFA_SC = 7,  ///< Authentication is Wi-Fi Alliance Simple Configure.
   107 	eapol_key_authentication_type_WFA_SC = 7,  ///< Authentication is Wi-Fi Alliance Simple Configure.
   108 #if defined(USE_WAPI_CORE)
   108 #if defined(USE_WAPI_CORE)
   109 	eapol_key_authentication_type_WAI_PSK = 8,  ///< Authentication is WAI PSK.
   109 	eapol_key_authentication_type_WAI_PSK = 8,  ///< Authentication is WAI PSK.
   110 	eapol_key_authentication_type_WAI_certificate = 9,  ///< Authentication is WAI certificate.
   110 	eapol_key_authentication_type_WAI_certificate = 9,  ///< Authentication is WAI certificate.
   111 #endif //#if defined(USE_WAPI_CORE)
   111 #endif //#if defined(USE_WAPI_CORE)
       
   112 	eapol_key_authentication_type_EAP_authentication_no_encryption = 10, ///< Authentication is EAP-authentication without EAPOL RC4 key message. WLAN data will be plain text.
   112 };
   113 };
   113 
   114 
   114 /**
   115 /**
   115  * This is enumeration of 802.11 authentication modes.
   116  * This is enumeration of 802.11 authentication modes.
   116  * NOTE, do not change the values, these are used in interface.
   117  * NOTE, do not change the values, these are used in interface.
   139 	eapol_key_handshake_type_WPXM_reassociation = 6,
   140 	eapol_key_handshake_type_WPXM_reassociation = 6,
   140 #endif //#if defined(EAP_USE_WPXM)
   141 #endif //#if defined(EAP_USE_WPXM)
   141 #if defined(USE_WAPI_CORE)
   142 #if defined(USE_WAPI_CORE)
   142 	eapol_key_handshake_type_wai_handshake = 7,
   143 	eapol_key_handshake_type_wai_handshake = 7,
   143 #endif //#if defined(USE_WAPI_CORE)
   144 #endif //#if defined(USE_WAPI_CORE)
       
   145 	eapol_key_handshake_type_EAP_authentication_no_encryption = 8,
       
   146 	eapol_key_handshake_type_authenticated = 9,
   144 };
   147 };
   145 
   148 
   146 /**
   149 /**
   147  * This is enumeration of EAPOL states.
   150  * This is enumeration of EAPOL states.
   148  * NOTE, do not change the values, these are used in interface.
   151  * NOTE, do not change the values, these are used in interface.
   303 	cf_str_EAPOL_key_authentication_type_config_value_dynamic_WEP,
   306 	cf_str_EAPOL_key_authentication_type_config_value_dynamic_WEP,
   304 	"dynamic_WEP",
   307 	"dynamic_WEP",
   305 	eap_configure_type_string,
   308 	eap_configure_type_string,
   306 	false);
   309 	false);
   307 
   310 
       
   311 EAP_CONFIGURATION_FIELD(
       
   312 	cf_str_EAPOL_key_authentication_type_config_value_EAP_authentication_no_encryption,
       
   313 	"EAP_authentication_no_encryption",
       
   314 	eap_configure_type_string,
       
   315 	false);
       
   316 
       
   317 
   308 #if defined(EAP_USE_WPXM)
   318 #if defined(EAP_USE_WPXM)
   309 EAP_CONFIGURATION_FIELD(
   319 EAP_CONFIGURATION_FIELD(
   310 	cf_str_EAPOL_key_authentication_type_config_value_WPXM,
   320 	cf_str_EAPOL_key_authentication_type_config_value_WPXM,
   311 	"WPXM",
   321 	"WPXM",
   312 	eap_configure_type_string,
   322 	eap_configure_type_string,