eapol/eapol_framework/eapol_common/include/eap_master_session_key.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    22 #if !defined(_EAP_MASTER_SESSION_KEY_H_)
    22 #if !defined(_EAP_MASTER_SESSION_KEY_H_)
    23 #define _EAP_MASTER_SESSION_KEY_H_
    23 #define _EAP_MASTER_SESSION_KEY_H_
    24 
    24 
    25 #include "eap_am_types.h"
    25 #include "eap_am_types.h"
    26 #include "eap_am_export.h"
    26 #include "eap_am_export.h"
       
    27 // Start: added by script change_export_macros.sh.
       
    28 #if defined(EAP_NO_EXPORT_EAP_MASTER_SESSION_KEY_H)
       
    29 	#define EAP_CLASS_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_NONSHARABLE 
       
    30 	#define EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H 
       
    31 	#define EAP_C_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H 
       
    32 	#define EAP_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H 
       
    33 	#define EAP_C_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H 
       
    34 #elif defined(EAP_EXPORT_EAP_MASTER_SESSION_KEY_H)
       
    35 	#define EAP_CLASS_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_EXPORT 
       
    36 	#define EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_FUNC_EXPORT 
       
    37 	#define EAP_C_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_C_FUNC_EXPORT 
       
    38 	#define EAP_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H EAP_FUNC_EXPORT 
       
    39 	#define EAP_C_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H EAP_C_FUNC_EXPORT 
       
    40 #else
       
    41 	#define EAP_CLASS_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_IMPORT 
       
    42 	#define EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_FUNC_IMPORT 
       
    43 	#define EAP_C_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H EAP_C_FUNC_IMPORT 
       
    44 	#define EAP_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H 
       
    45 	#define EAP_C_FUNC_EXPORT_EAP_MASTER_SESSION_KEY_H 
       
    46 #endif
       
    47 // End: added by script change_export_macros.sh.
    27 //#include "eap_am_memory.h"
    48 //#include "eap_am_memory.h"
    28 #include "eap_am_assert.h"
    49 #include "eap_am_assert.h"
    29 #include "eap_status.h"
    50 #include "eap_status.h"
    30 #include "eap_variable_data.h"
    51 #include "eap_variable_data.h"
    31 #include "eap_header.h"
    52 #include "eap_header.h"
    34 
    55 
    35 class abs_eap_am_tools_c;
    56 class abs_eap_am_tools_c;
    36 
    57 
    37 
    58 
    38 /// This class stores data of master session key.
    59 /// This class stores data of master session key.
    39 class EAP_EXPORT eap_master_session_key_c
    60 class EAP_CLASS_VISIBILITY_EAP_MASTER_SESSION_KEY_H eap_master_session_key_c
    40 : public eap_variable_data_c
    61 : public eap_variable_data_c
    41 {
    62 {
    42 private:
    63 private:
    43 	//--------------------------------------------------
    64 	//--------------------------------------------------
    44 
    65 
    61 
    82 
    62 	/**
    83 	/**
    63 	 * Destructor of the eap_variable_data class will release 
    84 	 * Destructor of the eap_variable_data class will release 
    64 	 * the buffer if attribute m_free_buffer is true.
    85 	 * the buffer if attribute m_free_buffer is true.
    65 	 */
    86 	 */
    66 	EAP_FUNC_IMPORT virtual ~eap_master_session_key_c();
    87 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H virtual ~eap_master_session_key_c();
    67 
    88 
    68 	/**
    89 	/**
    69 	 * Constructor takes only one parameter called tools.
    90 	 * Constructor takes only one parameter called tools.
    70 	 * @param tools is pointer to the tools class. @see abs_eap_am_tools_c.
    91 	 * @param tools is pointer to the tools class. @see abs_eap_am_tools_c.
    71 	 */
    92 	 */
    72 	EAP_FUNC_IMPORT eap_master_session_key_c(
    93 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H eap_master_session_key_c(
    73 		abs_eap_am_tools_c * const tools,
    94 		abs_eap_am_tools_c * const tools,
    74 		const eap_type_value_e eap_type);
    95 		const eap_type_value_e eap_type);
    75 
    96 
    76 	EAP_FUNC_IMPORT eap_type_value_e get_eap_type() const;
    97 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H eap_type_value_e get_eap_type() const;
    77 
    98 
    78 	EAP_FUNC_IMPORT void set_eap_type(eap_type_value_e type);
    99 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H void set_eap_type(eap_type_value_e type);
    79 
   100 
    80 	EAP_FUNC_IMPORT const eap_variable_data_c * get_leap_password() const;
   101 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H const eap_variable_data_c * get_leap_password() const;
    81 
   102 
    82 	EAP_FUNC_IMPORT eap_status_e copy_leap_password(const eap_variable_data_c * const key);
   103 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H eap_status_e copy_leap_password(const eap_variable_data_c * const key);
    83 
   104 
    84 	EAP_FUNC_IMPORT eap_status_e set_copy(const eap_master_session_key_c * const msk);
   105 	EAP_FUNC_VISIBILITY_EAP_MASTER_SESSION_KEY_H eap_status_e set_copy(const eap_master_session_key_c * const msk);
    85 
   106 
    86 	//--------------------------------------------------
   107 	//--------------------------------------------------
    87 }; // class eap_master_session_key_c
   108 }; // class eap_master_session_key_c
    88 
   109 
    89 
   110