43 } |
43 } |
44 |
44 |
45 //-------------------------------------------------- |
45 //-------------------------------------------------- |
46 |
46 |
47 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_state_string( |
47 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_state_string( |
48 const eapol_key_state_e state) const |
48 const eapol_key_state_e state) |
49 { |
49 { |
50 #if defined(USE_EAP_TRACE_STRINGS) |
50 #if defined(USE_EAP_TRACE_STRINGS) |
51 EAP_IF_RETURN_STRING(state, eapol_key_state_none) |
51 EAP_IF_RETURN_STRING(state, eapol_key_state_none) |
52 else EAP_IF_RETURN_STRING(state, eapol_key_state_preauthenticated) |
52 else EAP_IF_RETURN_STRING(state, eapol_key_state_preauthenticated) |
53 else EAP_IF_RETURN_STRING(state, eapol_key_state_eap_authentication_running) |
53 else EAP_IF_RETURN_STRING(state, eapol_key_state_eap_authentication_running) |
85 } |
85 } |
86 |
86 |
87 //-------------------------------------------------- |
87 //-------------------------------------------------- |
88 |
88 |
89 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_handshake_type_string( |
89 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_handshake_type_string( |
90 const eapol_key_handshake_type_e handshake_type) const |
90 const eapol_key_handshake_type_e handshake_type) |
91 { |
91 { |
92 |
92 |
93 #if defined(USE_EAP_TRACE_STRINGS) |
93 #if defined(USE_EAP_TRACE_STRINGS) |
94 EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_none) |
94 EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_none) |
95 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_4_way_handshake) |
95 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_4_way_handshake) |
101 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_WPXM_reassociation) |
101 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_WPXM_reassociation) |
102 #endif //#if defined(EAP_USE_WPXM) |
102 #endif //#if defined(EAP_USE_WPXM) |
103 #if defined(USE_WAPI_CORE) |
103 #if defined(USE_WAPI_CORE) |
104 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_wai_handshake) |
104 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_wai_handshake) |
105 #endif //#if defined(USE_WAPI_CORE) |
105 #endif //#if defined(USE_WAPI_CORE) |
|
106 else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_authenticated) |
106 else |
107 else |
107 #endif // #if defined(USE_EAP_TRACE_STRINGS) |
108 #endif // #if defined(USE_EAP_TRACE_STRINGS) |
108 { |
109 { |
109 EAP_UNREFERENCED_PARAMETER(handshake_type); |
110 EAP_UNREFERENCED_PARAMETER(handshake_type); |
110 |
111 |
113 } |
114 } |
114 |
115 |
115 //-------------------------------------------------- |
116 //-------------------------------------------------- |
116 |
117 |
117 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_authentication_type_string( |
118 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_authentication_type_string( |
118 const eapol_key_authentication_type_e authentication_type) const |
119 const eapol_key_authentication_type_e authentication_type) |
119 { |
120 { |
120 |
121 |
121 #if defined(USE_EAP_TRACE_STRINGS) |
122 #if defined(USE_EAP_TRACE_STRINGS) |
122 EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_none) |
123 EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_none) |
123 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_RSNA_EAP) |
124 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_RSNA_EAP) |
124 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_RSNA_PSK) |
125 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_RSNA_PSK) |
125 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_EAP) |
126 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_EAP) |
126 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_PSK) |
127 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_PSK) |
127 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_802_1X) |
128 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_dynamic_WEP) |
128 #if defined(EAP_USE_WPXM) |
129 #if defined(EAP_USE_WPXM) |
129 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPXM) |
130 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPXM) |
130 #endif //#if defined(EAP_USE_WPXM) |
131 #endif //#if defined(EAP_USE_WPXM) |
131 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WFA_SC) |
132 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPS) |
132 #if defined(USE_WAPI_CORE) |
133 #if defined(USE_WAPI_CORE) |
133 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_PSK) |
134 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_PSK) |
134 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_certificate) |
135 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_certificate) |
135 #endif //#if defined(USE_WAPI_CORE) |
136 #endif //#if defined(USE_WAPI_CORE) |
|
137 else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_EAP_authentication_no_encryption) |
|
138 |
136 else |
139 else |
137 #endif // #if defined(USE_EAP_TRACE_STRINGS) |
140 #endif // #if defined(USE_EAP_TRACE_STRINGS) |
138 { |
141 { |
139 EAP_UNREFERENCED_PARAMETER(authentication_type); |
142 EAP_UNREFERENCED_PARAMETER(authentication_type); |
140 |
143 |
142 } |
145 } |
143 } |
146 } |
144 |
147 |
145 //-------------------------------------------------- |
148 //-------------------------------------------------- |
146 |
149 |
147 eap_const_string eapol_key_state_string_c::get_eapol_key_descriptor_type_string( |
150 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_descriptor_type_string( |
148 const eapol_key_descriptor_type_e key_descriptor_type) const |
151 const eapol_key_descriptor_type_e key_descriptor_type) |
149 { |
152 { |
150 |
153 |
151 #if defined(USE_EAP_TRACE_STRINGS) |
154 #if defined(USE_EAP_TRACE_STRINGS) |
152 EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_none) |
155 EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_none) |
153 else EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_RC4) |
156 else EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_RC4) |