eapol/eapol_framework/eapol_common/type/mschapv2/include/eap_type_mschapv2_state.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    21 
    21 
    22 #ifndef _MSCHAPV2_STATE_H_
    22 #ifndef _MSCHAPV2_STATE_H_
    23 #define _MSCHAPV2_STATE_H_
    23 #define _MSCHAPV2_STATE_H_
    24 
    24 
    25 #include "eap_am_export.h"
    25 #include "eap_am_export.h"
       
    26 // Start: added by script change_export_macros.sh.
       
    27 #if defined(EAP_NO_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H)
       
    28 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_NONSHARABLE 
       
    29 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H 
       
    30 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H 
       
    31 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H 
       
    32 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H 
       
    33 #elif defined(EAP_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H)
       
    34 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_EXPORT 
       
    35 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_FUNC_EXPORT 
       
    36 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_C_FUNC_EXPORT 
       
    37 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H EAP_FUNC_EXPORT 
       
    38 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H EAP_C_FUNC_EXPORT 
       
    39 #else
       
    40 	#define EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_IMPORT 
       
    41 	#define EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_FUNC_IMPORT 
       
    42 	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H EAP_C_FUNC_IMPORT 
       
    43 	#define EAP_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H 
       
    44 	#define EAP_C_FUNC_EXPORT_EAP_TYPE_MSCHAPV2_STATE_H 
       
    45 #endif
       
    46 // End: added by script change_export_macros.sh.
    26 #include "abs_eap_am_tools.h"
    47 #include "abs_eap_am_tools.h"
    27 
    48 
    28 /**
    49 /**
    29  * This is the internal state of the MSCHAPV2 EAP type.
    50  * This is the internal state of the MSCHAPV2 EAP type.
    30  */
    51  */
    49 	eap_type_mschapv2_state_success_response,
    70 	eap_type_mschapv2_state_success_response,
    50 	eap_type_mschapv2_state_failure_response,
    71 	eap_type_mschapv2_state_failure_response,
    51 	eap_type_mschapv2_state_change_password_response
    72 	eap_type_mschapv2_state_change_password_response
    52 };
    73 };
    53 
    74 
    54 class EAP_EXPORT eap_type_mschapv2_state_c
    75 class EAP_CLASS_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H eap_type_mschapv2_state_c
    55 {
    76 {
    56 
    77 
    57 private:
    78 private:
    58 
    79 
    59 	/// This is pointer to the tools class.
    80 	/// This is pointer to the tools class.
    67 	bool m_failure_message_received;
    88 	bool m_failure_message_received;
    68 
    89 
    69 public:
    90 public:
    70 	eap_type_mschapv2_state_c(abs_eap_am_tools_c * const tools, const bool client);
    91 	eap_type_mschapv2_state_c(abs_eap_am_tools_c * const tools, const bool client);
    71 
    92 
    72 	EAP_FUNC_IMPORT virtual ~eap_type_mschapv2_state_c();
    93 	EAP_FUNC_VISIBILITY_EAP_TYPE_MSCHAPV2_STATE_H virtual ~eap_type_mschapv2_state_c();
    73 
    94 
    74 	void reset();
    95 	void reset();
    75 
    96 
    76 	eap_type_mschapv2_state_variable_e get_state() const;
    97 	eap_type_mschapv2_state_variable_e get_state() const;
    77 
    98