eapol/eapol_framework/eapol_common/type/mschapv2/include/eap_type_mschapv2_payloads.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    21 
    21 
    22 #ifndef _MSCHAPV2_PAYLOADS_H_
    22 #ifndef _MSCHAPV2_PAYLOADS_H_
    23 #define _MSCHAPV2_PAYLOADS_H_
    23 #define _MSCHAPV2_PAYLOADS_H_
    24 
    24 
    25 #include "eap_variable_data.h"
    25 #include "eap_variable_data.h"
       
    26 #include "eap_am_export.h"
       
    27 // Start: added by script change_export_macros.sh.
       
    28 #if defined(EAP_NO_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H)
       
    29 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_NONSHARABLE 
       
    30 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    31 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    32 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    33 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    34 #elif defined(EAP_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H)
       
    35 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_EXPORT 
       
    36 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_FUNC_EXPORT 
       
    37 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_C_FUNC_EXPORT 
       
    38 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_FUNC_EXPORT 
       
    39 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_C_FUNC_EXPORT 
       
    40 #else
       
    41 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_IMPORT 
       
    42 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_FUNC_IMPORT 
       
    43 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H EAP_C_FUNC_IMPORT 
       
    44 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    45 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_PAYLOADS_H 
       
    46 #endif
       
    47 // End: added by script change_export_macros.sh.
    26 
    48 
    27 class EAP_EXPORT mschapv2_data_c
    49 
       
    50 class EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H mschapv2_data_c
    28 {
    51 {
    29 private:
    52 private:
    30 
    53 
    31     eap_variable_data_c m_username; // Ascii
    54     eap_variable_data_c m_username; // Ascii
    32 	eap_variable_data_c m_password; // Unicode
    55 	eap_variable_data_c m_password; // Unicode
    47 
    70 
    48 protected:
    71 protected:
    49 
    72 
    50 public:
    73 public:
    51 
    74 
    52 	EAP_FUNC_IMPORT ~mschapv2_data_c();
    75 	EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H ~mschapv2_data_c();
    53 
    76 
    54 	EAP_FUNC_IMPORT mschapv2_data_c(abs_eap_am_tools_c * const tools);
    77 	EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_PAYLOADS_H mschapv2_data_c(abs_eap_am_tools_c * const tools);
    55 
    78 
    56     eap_boolean_e get_password_prompt_enabled() const;
    79     eap_boolean_e get_password_prompt_enabled() const;
    57 
    80 
    58     void set_password_prompt_enabled(eap_boolean_e is_enabled);
    81     void set_password_prompt_enabled(eap_boolean_e is_enabled);
    59 
    82