26 #include "eap_tools.h" |
26 #include "eap_tools.h" |
27 #include "eap_am_tools.h" |
27 #include "eap_am_tools.h" |
28 #include "eap_type_all_types.h" |
28 #include "eap_type_all_types.h" |
29 #include "eap_configuration_field.h" |
29 #include "eap_configuration_field.h" |
30 #include "simple_config_attribute_type.h" |
30 #include "simple_config_attribute_type.h" |
|
31 #include "eap_am_export.h" |
|
32 // Start: added by script change_export_macros.sh. |
|
33 #if defined(EAP_NO_EXPORT_SIMPLE_CONFIG_TYPES_H) |
|
34 #define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_NONSHARABLE |
|
35 #define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H |
|
36 #define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H |
|
37 #define EAP_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H |
|
38 #define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H |
|
39 #elif defined(EAP_EXPORT_SIMPLE_CONFIG_TYPES_H) |
|
40 #define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_EXPORT |
|
41 #define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_FUNC_EXPORT |
|
42 #define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_C_FUNC_EXPORT |
|
43 #define EAP_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H EAP_FUNC_EXPORT |
|
44 #define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H EAP_C_FUNC_EXPORT |
|
45 #else |
|
46 #define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_IMPORT |
|
47 #define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_FUNC_IMPORT |
|
48 #define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H EAP_C_FUNC_IMPORT |
|
49 #define EAP_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H |
|
50 #define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_TYPES_H |
|
51 #endif |
|
52 // End: added by script change_export_macros.sh. |
|
53 |
31 |
54 |
32 /** @file simple_config_types.h |
55 /** @file simple_config_types.h |
33 * @brief This file defines the constants of the protected setup protocol. |
56 * @brief This file defines the constants of the protected setup protocol. |
34 */ |
57 */ |
35 |
58 |
302 simple_config_state_failure, ///< Authentication failure. |
325 simple_config_state_failure, ///< Authentication failure. |
303 }; |
326 }; |
304 |
327 |
305 //---------------------------------------------------------------------------- |
328 //---------------------------------------------------------------------------- |
306 |
329 |
307 class EAP_EXPORT network_key_and_index_c |
330 class EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_TYPES_H network_key_and_index_c |
308 { |
331 { |
309 |
332 |
310 private: |
333 private: |
311 |
334 |
312 /// This is pointer to the tools class. @see abs_eap_am_tools_c. |
335 /// This is pointer to the tools class. @see abs_eap_am_tools_c. |
318 |
341 |
319 bool m_is_valid; |
342 bool m_is_valid; |
320 |
343 |
321 public: |
344 public: |
322 |
345 |
323 EAP_FUNC_IMPORT virtual ~network_key_and_index_c(); |
346 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H virtual ~network_key_and_index_c(); |
324 |
347 |
325 EAP_FUNC_IMPORT network_key_and_index_c( |
348 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H network_key_and_index_c( |
326 abs_eap_am_tools_c * const m_am_tools); |
349 abs_eap_am_tools_c * const m_am_tools); |
327 |
350 |
328 EAP_FUNC_IMPORT u8_t get_network_key_index() const; |
351 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H u8_t get_network_key_index() const; |
329 |
352 |
330 EAP_FUNC_IMPORT void set_network_key_index(u8_t index); |
353 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H void set_network_key_index(u8_t index); |
331 |
354 |
332 EAP_FUNC_IMPORT eap_variable_data_c * get_network_key(); |
355 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_variable_data_c * get_network_key(); |
333 |
356 |
334 EAP_FUNC_IMPORT const eap_variable_data_c * get_network_key_const() const; |
357 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H const eap_variable_data_c * get_network_key_const() const; |
335 |
358 |
336 EAP_FUNC_IMPORT network_key_and_index_c * copy(); |
359 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H network_key_and_index_c * copy(); |
337 |
360 |
338 EAP_FUNC_IMPORT bool get_is_valid(); |
361 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H bool get_is_valid(); |
339 |
362 |
340 EAP_FUNC_IMPORT bool get_is_valid_data(); |
363 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H bool get_is_valid_data(); |
341 }; |
364 }; |
342 |
365 |
343 //---------------------------------------------------------------------------- |
366 //---------------------------------------------------------------------------- |
344 |
367 |
345 /** |
368 /** |
400 /** @} */ // End of group SIMPLE_CONFIG_config_options. |
423 /** @} */ // End of group SIMPLE_CONFIG_config_options. |
401 //-------------------------------------------------------------------- |
424 //-------------------------------------------------------------------- |
402 |
425 |
403 |
426 |
404 /// This class includes the debug strings of the simple_config_cipher_suites_e, simple_config_certificate_type_e and simple_config_compression_method_e. |
427 /// This class includes the debug strings of the simple_config_cipher_suites_e, simple_config_certificate_type_e and simple_config_compression_method_e. |
405 class EAP_EXPORT eap_simple_config_trace_string_c |
428 class EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_simple_config_trace_string_c |
406 { |
429 { |
407 public: |
430 public: |
408 |
431 |
409 EAP_FUNC_IMPORT virtual ~eap_simple_config_trace_string_c(); |
432 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H virtual ~eap_simple_config_trace_string_c(); |
410 |
433 |
411 EAP_FUNC_IMPORT eap_simple_config_trace_string_c(); |
434 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_simple_config_trace_string_c(); |
412 |
435 |
413 /** |
436 /** |
414 * Function returns string of simple_config_state_e. |
437 * Function returns string of simple_config_state_e. |
415 * @param state is the queried string. |
438 * @param state is the queried string. |
416 */ |
439 */ |
417 EAP_FUNC_IMPORT eap_const_string get_state_string(const simple_config_state_e state) const; |
440 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_const_string get_state_string(const simple_config_state_e state) const; |
418 |
441 |
419 /** |
442 /** |
420 * Function returns string of simple_config_Message_Type_e. |
443 * Function returns string of simple_config_Message_Type_e. |
421 * @param type is the queried string. |
444 * @param type is the queried string. |
422 */ |
445 */ |
423 EAP_FUNC_IMPORT eap_const_string get_message_type_string(const simple_config_Message_Type_e type) const; |
446 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_const_string get_message_type_string(const simple_config_Message_Type_e type) const; |
424 |
447 |
425 /** |
448 /** |
426 * Function returns string of simple_config_Attribute_Type_e. |
449 * Function returns string of simple_config_Attribute_Type_e. |
427 * @param type is the queried string. |
450 * @param type is the queried string. |
428 */ |
451 */ |
429 EAP_FUNC_IMPORT eap_const_string get_attribute_type_string(const simple_config_Attribute_Type_e type) const; |
452 EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_TYPES_H eap_const_string get_attribute_type_string(const simple_config_Attribute_Type_e type) const; |
430 |
453 |
431 }; |
454 }; |
432 |
455 |
433 |
456 |
434 //-------------------------------------------------- |
457 //-------------------------------------------------- |