eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_peap_types.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 45.1.2 %
    19 * %version: 45.1.4 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_TLS_PEAP_TYPES_H_)
    22 #if !defined(_TLS_PEAP_TYPES_H_)
    23 #define _TLS_PEAP_TYPES_H_
    23 #define _TLS_PEAP_TYPES_H_
    24 
    24 
    29 #include "eap_configuration_field.h"
    29 #include "eap_configuration_field.h"
    30 
    30 
    31 #if defined(USE_FAST_EAP_TYPE)
    31 #if defined(USE_FAST_EAP_TYPE)
    32 	#include "eap_fast_types.h"
    32 	#include "eap_fast_types.h"
    33 #endif //#if defined(USE_FAST_EAP_TYPE)
    33 #endif //#if defined(USE_FAST_EAP_TYPE)
       
    34 
       
    35 #include "eap_am_export.h"
       
    36 // Start: added by script change_export_macros.sh.
       
    37 #if defined(EAP_NO_EXPORT_TLS_PEAP_TYPES_H)
       
    38 	#define EAP_CLASS_VISIBILITY_TLS_PEAP_TYPES_H EAP_NONSHARABLE 
       
    39 	#define EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H 
       
    40 	#define EAP_C_FUNC_VISIBILITY_TLS_PEAP_TYPES_H 
       
    41 	#define EAP_FUNC_EXPORT_TLS_PEAP_TYPES_H 
       
    42 	#define EAP_C_FUNC_EXPORT_TLS_PEAP_TYPES_H 
       
    43 #elif defined(EAP_EXPORT_TLS_PEAP_TYPES_H)
       
    44 	#define EAP_CLASS_VISIBILITY_TLS_PEAP_TYPES_H EAP_EXPORT 
       
    45 	#define EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H EAP_FUNC_EXPORT 
       
    46 	#define EAP_C_FUNC_VISIBILITY_TLS_PEAP_TYPES_H EAP_C_FUNC_EXPORT 
       
    47 	#define EAP_FUNC_EXPORT_TLS_PEAP_TYPES_H EAP_FUNC_EXPORT 
       
    48 	#define EAP_C_FUNC_EXPORT_TLS_PEAP_TYPES_H EAP_C_FUNC_EXPORT 
       
    49 #else
       
    50 	#define EAP_CLASS_VISIBILITY_TLS_PEAP_TYPES_H EAP_IMPORT 
       
    51 	#define EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H EAP_FUNC_IMPORT 
       
    52 	#define EAP_C_FUNC_VISIBILITY_TLS_PEAP_TYPES_H EAP_C_FUNC_IMPORT 
       
    53 	#define EAP_FUNC_EXPORT_TLS_PEAP_TYPES_H 
       
    54 	#define EAP_C_FUNC_EXPORT_TLS_PEAP_TYPES_H 
       
    55 #endif
       
    56 // End: added by script change_export_macros.sh.
    34 
    57 
    35 
    58 
    36 /** @file tls_peap_types.h 
    59 /** @file tls_peap_types.h 
    37  *  @brief This file defines the constants of the TLS and PEAP.
    60  *  @brief This file defines the constants of the TLS and PEAP.
    38  */
    61  */
   748 /** @} */ // End of group TLS_PEAP_config_options.
   771 /** @} */ // End of group TLS_PEAP_config_options.
   749 //--------------------------------------------------------------------
   772 //--------------------------------------------------------------------
   750 
   773 
   751 
   774 
   752 /// This class includes the debug strings of the tls_cipher_suites_e, tls_certificate_type_e and tls_compression_method_e.
   775 /// This class includes the debug strings of the tls_cipher_suites_e, tls_certificate_type_e and tls_compression_method_e.
   753 class EAP_EXPORT eap_tls_trace_string_c
   776 class EAP_CLASS_VISIBILITY_TLS_PEAP_TYPES_H eap_tls_trace_string_c
   754 {
   777 {
   755 public:
   778 public:
   756 
   779 
   757 	EAP_FUNC_IMPORT virtual ~eap_tls_trace_string_c();
   780 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H virtual ~eap_tls_trace_string_c();
   758 
   781 
   759 	EAP_FUNC_IMPORT eap_tls_trace_string_c();
   782 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H eap_tls_trace_string_c();
   760 
   783 
   761 #if defined(USE_FAST_EAP_TYPE)
   784 #if defined(USE_FAST_EAP_TYPE)
   762 	/**
   785 	/**
   763 	 * Function returns string of eap_fast_state_e.
   786 	 * Function returns string of eap_fast_state_e.
   764 	 * @param state is the queried string.
   787 	 * @param state is the queried string.
   765 	 */
   788 	 */
   766 	EAP_FUNC_IMPORT static eap_const_string get_eap_fast_state_string(const eap_fast_state_e state);
   789 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_eap_fast_state_string(const eap_fast_state_e state);
   767 #endif //#if defined(USE_FAST_EAP_TYPE)
   790 #endif //#if defined(USE_FAST_EAP_TYPE)
   768 
   791 
   769 	/**
   792 	/**
   770 	 * Function returns string of tls_cipher_suites_e.
   793 	 * Function returns string of tls_cipher_suites_e.
   771 	 * @param suite is the queried string.
   794 	 * @param suite is the queried string.
   772 	 */
   795 	 */
   773 	EAP_FUNC_IMPORT static eap_const_string get_cipher_suite_string(const tls_cipher_suites_e suite);
   796 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_cipher_suite_string(const tls_cipher_suites_e suite);
   774 
   797 
   775 	/**
   798 	/**
   776 	 * Function returns string of tls_certificate_type_e.
   799 	 * Function returns string of tls_certificate_type_e.
   777 	 * @param suite is the queried string.
   800 	 * @param suite is the queried string.
   778 	 */
   801 	 */
   779 	EAP_FUNC_IMPORT static eap_const_string get_certificate_type_string(const tls_certificate_type_e certificate_type);
   802 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_certificate_type_string(const tls_certificate_type_e certificate_type);
   780 
   803 
   781 	/**
   804 	/**
   782 	 * Function returns string of tls_compression_method_e.
   805 	 * Function returns string of tls_compression_method_e.
   783 	 * @param suite is the queried string.
   806 	 * @param suite is the queried string.
   784 	 */
   807 	 */
   785 	EAP_FUNC_IMPORT static eap_const_string get_compression_method_string(const tls_compression_method_e compression_method);
   808 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_compression_method_string(const tls_compression_method_e compression_method);
   786 
   809 
   787 	/**
   810 	/**
   788 	 * Function returns string of tls_peap_state_e.
   811 	 * Function returns string of tls_peap_state_e.
   789 	 * @param state is the queried string.
   812 	 * @param state is the queried string.
   790 	 */
   813 	 */
   791 	EAP_FUNC_IMPORT static eap_const_string get_state_string(const tls_peap_state_e state);
   814 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_state_string(const tls_peap_state_e state);
   792 
   815 
   793 	/**
   816 	/**
   794 	 * Function returns string of peap_version_e.
   817 	 * Function returns string of peap_version_e.
   795 	 * @param peap_version is the queried string.
   818 	 * @param peap_version is the queried string.
   796 	 */
   819 	 */
   797 	EAP_FUNC_IMPORT static eap_const_string get_peap_version_string(const peap_version_e peap_version);
   820 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_peap_version_string(const peap_version_e peap_version);
   798 
   821 
   799 	/**
   822 	/**
   800 	 * Function returns string of tls_alert_level_e.
   823 	 * Function returns string of tls_alert_level_e.
   801 	 * @param alert_level is the queried string.
   824 	 * @param alert_level is the queried string.
   802 	 */
   825 	 */
   803 	EAP_FUNC_IMPORT static eap_const_string get_alert_level_string(const tls_alert_level_e alert_level);
   826 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_alert_level_string(const tls_alert_level_e alert_level);
   804 
   827 
   805 	/**
   828 	/**
   806 	 * Function returns string of tls_alert_description_e.
   829 	 * Function returns string of tls_alert_description_e.
   807 	 * @param alert_level is the queried string.
   830 	 * @param alert_level is the queried string.
   808 	 */
   831 	 */
   809 	EAP_FUNC_IMPORT static eap_const_string get_alert_description_string(const tls_alert_description_e alert_description);
   832 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_alert_description_string(const tls_alert_description_e alert_description);
   810 
   833 
   811 	/**
   834 	/**
   812 	 * Function returns string of tls_session_type_e.
   835 	 * Function returns string of tls_session_type_e.
   813 	 * @param tls_session_type is the queried string.
   836 	 * @param tls_session_type is the queried string.
   814 	 */
   837 	 */
   815 	EAP_FUNC_IMPORT static eap_const_string get_tls_session_type_string(const tls_session_type_e tls_session_type);
   838 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_tls_session_type_string(const tls_session_type_e tls_session_type);
   816 
   839 
   817 	/**
   840 	/**
   818 	 * Function returns string of eap_ttls_tunneled_message_state_e.
   841 	 * Function returns string of eap_ttls_tunneled_message_state_e.
   819 	 * @param ttls_state is the queried string.
   842 	 * @param ttls_state is the queried string.
   820 	 */
   843 	 */
   821 	EAP_FUNC_IMPORT static eap_const_string get_ttls_state_string(const eap_ttls_tunneled_message_state_e ttls_state);
   844 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_ttls_state_string(const eap_ttls_tunneled_message_state_e ttls_state);
   822 
   845 
   823 	/**
   846 	/**
   824 	 * Function returns string of tls_identity_privacy_handshake_state_e.
   847 	 * Function returns string of tls_identity_privacy_handshake_state_e.
   825 	 * @param ttls_state is the queried string.
   848 	 * @param ttls_state is the queried string.
   826 	 */
   849 	 */
   827 	EAP_FUNC_IMPORT static eap_const_string get_tls_identity_privacy_handshake_state_string(const tls_identity_privacy_handshake_state_e privacy_state);
   850 	EAP_FUNC_VISIBILITY_TLS_PEAP_TYPES_H static eap_const_string get_tls_identity_privacy_handshake_state_string(const tls_identity_privacy_handshake_state_e privacy_state);
   828 };
   851 };
   829 
   852 
   830 
   853 
   831 //--------------------------------------------------
   854 //--------------------------------------------------
   832 
   855