equal
deleted
inserted
replaced
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 * %version: 4.1.2 % |
20 */ |
20 */ |
21 |
21 |
22 #if !defined(_EAP_CONFIGURATION_FIELD_H_) |
22 #if !defined(_EAP_CONFIGURATION_FIELD_H_) |
23 #define _EAP_CONFIGURATION_FIELD_H_ |
23 #define _EAP_CONFIGURATION_FIELD_H_ |
24 |
24 |
41 eap_configure_type_string, |
41 eap_configure_type_string, |
42 eap_configure_type_hex_data, |
42 eap_configure_type_hex_data, |
43 eap_configure_type_u32array, |
43 eap_configure_type_u32array, |
44 eap_configure_type_section, |
44 eap_configure_type_section, |
45 eap_configure_type_subsection, |
45 eap_configure_type_subsection, |
46 eap_configure_type_all_configurations, //< This is special type to read all configuration options. Data is in message format. Please see eap_tlv_message_data_c. |
|
47 }; |
46 }; |
48 |
47 |
49 //-------------------------------------------------------------------------------------------------- |
48 //-------------------------------------------------------------------------------------------------- |
50 |
49 |
51 class eap_configuration_field_c |
50 class eap_configuration_field_c |
174 delete tmp; |
173 delete tmp; |
175 tmp = 0; |
174 tmp = 0; |
176 } |
175 } |
177 |
176 |
178 return tmp; |
177 return tmp; |
179 } |
|
180 |
|
181 static eap_const_string get_configure_type_string(const eap_configure_type_e type) |
|
182 { |
|
183 #if defined(USE_EAP_TRACE_STRINGS) |
|
184 EAP_IF_RETURN_STRING(type, eap_configure_type_none) |
|
185 else EAP_IF_RETURN_STRING(type, eap_configure_type_u32_t) |
|
186 else EAP_IF_RETURN_STRING(type, eap_configure_type_boolean) |
|
187 else EAP_IF_RETURN_STRING(type, eap_configure_type_string) |
|
188 else EAP_IF_RETURN_STRING(type, eap_configure_type_hex_data) |
|
189 else EAP_IF_RETURN_STRING(type, eap_configure_type_u32array) |
|
190 else EAP_IF_RETURN_STRING(type, eap_configure_type_section) |
|
191 else EAP_IF_RETURN_STRING(type, eap_configure_type_subsection) |
|
192 else EAP_IF_RETURN_STRING(type, eap_configure_type_all_configurations) |
|
193 else |
|
194 #endif // #if defined(USE_EAP_TRACE_STRINGS) |
|
195 { |
|
196 EAP_UNREFERENCED_PARAMETER(type); |
|
197 return EAPL("Unknown EAP-configure_type"); |
|
198 } |
|
199 } |
178 } |
200 |
179 |
201 private: |
180 private: |
202 bool m_is_secret; |
181 bool m_is_secret; |
203 eap_configure_type_e m_type; |
182 eap_configure_type_e m_type; |