eapol/eapol_framework/eapol_common/type/gsmsim/include/eap_type_gsmsim.h
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
--- a/eapol/eapol_framework/eapol_common/type/gsmsim/include/eap_type_gsmsim.h	Fri Sep 03 09:22:44 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/gsmsim/include/eap_type_gsmsim.h	Thu Sep 16 13:07:04 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: 8 %
+* %version: 9 %
 */
 
 #if !defined(_GSMSIM_CORE_H_)
@@ -24,6 +24,27 @@
 
 #include "eap_tools.h"
 #include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAP_TYPE_GSMSIM_H)
+	#define EAP_CLASS_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H 
+	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H 
+	#define EAP_FUNC_EXPORT_EAP_TYPE_GSMSIM_H 
+	#define EAP_C_FUNC_EXPORT_EAP_TYPE_GSMSIM_H 
+#elif defined(EAP_EXPORT_EAP_TYPE_GSMSIM_H)
+	#define EAP_CLASS_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_EAP_TYPE_GSMSIM_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_EAP_TYPE_GSMSIM_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_EAP_TYPE_GSMSIM_H 
+	#define EAP_C_FUNC_EXPORT_EAP_TYPE_GSMSIM_H 
+#endif
+// End: added by script change_export_macros.sh.
 #include "eap_base_type.h"
 #include "eap_variable_data.h"
 #include "eap_type_gsmsim_types.h"
@@ -44,7 +65,7 @@
 
 
 /// This class is implementation of GSMSIM EAP-type.
-class EAP_EXPORT eap_type_gsmsim_c
+class EAP_CLASS_VISIBILITY_EAP_TYPE_GSMSIM_H eap_type_gsmsim_c
 : public abs_eap_type_gsmsim_state_c
 , public abs_eap_am_type_gsmsim_c
 , public abs_eap_base_timer_c
@@ -330,19 +351,19 @@
 	/**
 	 * This function selects best version from version list payload.
 	 */
-	EAP_FUNC_IMPORT eap_gsmsim_version select_version(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_gsmsim_version select_version(
 		const gsmsim_variable_data_c * const version_payload,
 		bool * const includes_other_version_than_1);
 
 	/**
 	 * This function returns string of the current state. This is for trace purposes.
 	 */
-	EAP_FUNC_IMPORT eap_const_string get_state_string() const;
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_const_string get_state_string() const;
 
 	/**
 	 * This function returns string of the current state. This is for trace purposes.
 	 */
-	EAP_FUNC_IMPORT eap_const_string get_saved_previous_state_string() const;
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_const_string get_saved_previous_state_string() const;
 
 	/**
 	 * This function sets the new state and notifies the lower layer of this change.
@@ -365,12 +386,12 @@
 	 * This function checks the received GSMSIM subtype is valid in current state.
 	 * This is used for quick check.
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_valid_state(gsmsim_subtype_e type);
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_valid_state(gsmsim_subtype_e type);
 
 	/**
 	 * This function returns the eap_type_gsmsim_state_variable_parameters_c object of current state.
 	 */
-	EAP_FUNC_IMPORT const eap_type_gsmsim_state_variable_parameters_c * get_state_variable();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H const eap_type_gsmsim_state_variable_parameters_c * get_state_variable();
 
 #endif //#if !defined(NO_EAP_TYPE_GSMSIM_MESSAGE_STATE_CHECK)
 
@@ -379,17 +400,17 @@
 	 * This function saves the current m_state to m_saved_previous_state.
 	 * The saved state is restored in error case.
 	 */
-	EAP_FUNC_IMPORT void save_current_state();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void save_current_state();
 
 	/**
 	 * This function restores the saved state.
 	 */
-	EAP_FUNC_IMPORT void restore_saved_previous_state();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void restore_saved_previous_state();
 
 	/**
 	 * This function stores identity.
 	 */
-	EAP_FUNC_IMPORT eap_status_e store_identity(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e store_identity(
 		const eap_variable_data_c * const IMSI_or_pseudonym,
 		const bool IMSI_is_used);
 
@@ -397,7 +418,7 @@
 	/**
 	 * This function initializes the allowed messages within one specific state.
 	 */
-	EAP_FUNC_IMPORT void initialize_state(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void initialize_state(
 		const eap_type_gsmsim_state_variable_e state,
 		const bool must_be_initiator,
 		const bool must_be_responder,
@@ -412,7 +433,7 @@
 	 *  expansion_0 = prf(key, seed | 0)
 	 *  expansion_i = prf(key, expansion_i-1 | seed | i), where i = 1, 2...
 	 */
-	EAP_FUNC_IMPORT eap_status_e data_exp(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e data_exp(
 		const u32_t key_length,
 		eap_variable_data_c * const expansion,
 		const eap_variable_data_c * const key,
@@ -421,7 +442,7 @@
 	/**
 	 * This function generates K_encr, K_aut and master_session_key.
 	 */
-	EAP_FUNC_IMPORT eap_status_e generate_shared_secred_keys(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e generate_shared_secred_keys(
 		const u32_t key_length,
 		const eap_variable_data_c * const n_Kc,
 		const eap_variable_data_c * const n_sres,
@@ -434,7 +455,7 @@
 	/**
 	 * This function generates K_encr, K_aut and master_session_key.
 	 */
-	EAP_FUNC_IMPORT eap_status_e generate_reauth_shared_secred_keys(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e generate_reauth_shared_secred_keys(
 		const u32_t key_length,
 		const eap_variable_data_c * const orig_XKEY,
 		const u32_t reauth_counter,
@@ -452,7 +473,7 @@
 	/**
 	 * This function saves version list from version list payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e save_version(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e save_version(
 		const u16_t * const payload_version_list,
 		const u32_t version_count,
 		const eap_gsmsim_version selected_version);
@@ -460,7 +481,7 @@
 	/**
 	 * This function generates a new NAI from domain and IMSI.
 	 */
-	EAP_FUNC_IMPORT eap_status_e generate_nai(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e generate_nai(
 		eap_variable_data_c * const new_nai, ///< This is the new generated NAI.
 		const bool use_manual_default_realm, ///< When true uses realm parameter, when false generates automatic realm.
 		const eap_variable_data_c * const realm, ///< This is the domain part of the NAI.
@@ -497,7 +518,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_variable_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_variable_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
@@ -538,7 +559,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_pseudonym_or_imsi_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_pseudonym_or_imsi_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
@@ -577,7 +598,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_version_list(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_version_list(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -613,7 +634,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_version_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_version_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -646,7 +667,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_counter_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_counter_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -679,7 +700,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_simple_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_simple_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -712,7 +733,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_notification_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_notification_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -745,7 +766,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_client_error_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_client_error_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t gsmsim_buffer_length,
 		const u32_t eap_header_size,
@@ -784,7 +805,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_mac_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_mac_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
@@ -821,7 +842,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_padding_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_padding_payload(
 		gsmsim_header_c * const gsmsim_packet,
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
@@ -835,7 +856,7 @@
 	 * This function verifies the message authentication code (MAC) is correct.
 	 * @see add_mac_payload().
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_message_authentication_code(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_message_authentication_code(
 		const eap_variable_data_c * const authentication_key,
 		gsmsim_payloads_c * const p_gsmsim_payloads, ///< This is pointer to all payloads of the received EAP packet.
 		const gsmsim_header_c * const gsmsim_packet,
@@ -853,7 +874,7 @@
 	 * Third is analysed the GSMSIM EAP packet. This includes the payload and values of each payload.
 	 * See also analyse_gsmsim_packet().
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_gsmsim_packet(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_gsmsim_packet(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_length, ///< This is length of received GSMSIM EAP packet.
@@ -866,7 +887,7 @@
 	 * @see Client messages are handled in handle_start_request_message() and handle_challenge_request_message(). 
 	 * @see Server messages are handled in handle_start_response_message() and handle_challenge_response_message(). 
 	 */
-	EAP_FUNC_IMPORT eap_status_e analyse_gsmsim_packet(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e analyse_gsmsim_packet(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
@@ -881,7 +902,7 @@
 	 * function returns eap_status_header_corrupted.
 	 * Also error is returned when illegal payload attribute is recognised.
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_gsmsim_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e parse_gsmsim_payload(
 		const gsmsim_payload_AT_header_c * const p_payload, ///< This is the start of the buffer and the first parsed payload.
 		u32_t * const buffer_length, ///< This is the length of the buffer. This must match with the length of all payloads.
 		gsmsim_payloads_c * const p_gsmsim_payloads, ///< This is pointer to all payloads of the received EAP packet.
@@ -891,7 +912,7 @@
 	/**
 	 * This function checks the version list payload of the GSMSIM EAP packet is correct.
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_version_list(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_version_list(
 		const gsmsim_payload_AT_header_c * const payload,
 		const u16_t version_list_length,
 		u8_t * version_list,
@@ -902,7 +923,7 @@
 	 * Payloads are stored to p_gsmsim_payloads.
 	 * @see parse_gsmsim_payload().
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_gsmsim_packet(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e parse_gsmsim_packet(
 		gsmsim_header_c * const gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
 		gsmsim_payloads_c * const p_gsmsim_payloads ///< This is pointer to all payloads of the received EAP packet.
@@ -913,7 +934,7 @@
 	 * @return If payload attribute is illegal function returns eap_status_header_corrupted.
 	 * If payload attribute is unknown function returns eap_status_unsupported_gsmsim_payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_generic_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e parse_generic_payload(
 		const gsmsim_payload_AT_type_e current_payload, ///< This is the type of current payload attribute.
 		const gsmsim_payload_AT_header_c * const payload, ///< This is the current parsed payload.
 		gsmsim_payloads_c * const p_gsmsim_payloads, ///< This is pointer to all payloads of the received EAP packet.
@@ -924,7 +945,7 @@
 	/**
 	 * This function sends the EAP-Request/SIM/Re-authentication message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_reauthentication_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_reauthentication_request_message(
 		const eap_variable_data_c * const username,
 		const bool pseudonym_decode_failed,
 		const u8_t eap_identifier);
@@ -935,7 +956,7 @@
 	/**
 	 * This function sends the EAP-Request/SIM/Start message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_start_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_start_request_message(
 		const bool pseudonym_decode_failed, ///< This identifies whether the pseudonym decode was failed (true). We must send a IMSI request.
 		const u8_t eap_identifier ///< This is the EAP-Identifier used with this message.
 		);
@@ -945,7 +966,7 @@
 	/**
 	 * This function sends the EAP-Response/SIM/Start message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_start_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_start_response_message(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet. NOTE received.
 		const u8_t received_eap_identifier, ///< This is the EAP-identifier of the received EAP-request message.
 		const eap_gsmsim_version version, ///< This is the selected GSMSIM version.
@@ -957,7 +978,7 @@
 	/**
 	 * This function sends the EAP-Response/SIM/Notification message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_gsmsim_notification_response(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_gsmsim_notification_response(
 		const eap_gsmsim_notification_codes_e notification_code, ///< This is the status of the failed triplet query.
 		const bool add_at_counter_attribute
 		);
@@ -965,14 +986,14 @@
 	/**
 	 * This function sends the EAP-Response/SIM/Client-Error message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_gsmsim_client_error_response();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_gsmsim_client_error_response();
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 	/**
 	 * This function sends the EAP-Request/SIM/Challenge message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_challenge_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_challenge_request_message(
 		const u8_t eap_identifier ///< This is the EAP-Identifier used with this message.
 		);
 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
@@ -981,10 +1002,10 @@
 	/**
 	 * This function sends the EAP-Response/SIM/Challenge message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_challenge_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_challenge_response_message(
 		eap_variable_data_c * const K_aut);
 
-	EAP_FUNC_IMPORT eap_status_e send_reauthentication_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_reauthentication_response_message(
 		const eap_variable_data_c * const orig_XKEY,
 		const eap_variable_data_c * const orig_K_aut,
 		const eap_variable_data_c * const orig_K_encr,
@@ -1000,7 +1021,7 @@
 	 * This function sends the EAP-Request/SIM/Notification message.
 	 * Message includes the localizable notification string.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_gsmsim_notification_request(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_gsmsim_notification_request(
 		const eap_gsmsim_notification_codes_e notification_code, ///< This is the status of the failed triplet query.
 		const bool add_at_counter_attribute
 		);
@@ -1010,7 +1031,7 @@
 	/**
 	 * This function encrypts the payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e encrypt_DATA_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e encrypt_DATA_payload(
 		u8_t * const EAP_data, ///< This is pointer to the begin of the encrypted payload.
 		const u32_t cbc_aes_data_length, ///< This is the length of the encrypted payload. This must be aligned to AES block length.
 		const eap_variable_data_c * const IV,
@@ -1022,7 +1043,7 @@
 	 * This function decrypts the payload.
 	 * p_gsmsim_payloads->get_ENCR_DATA() points to the decrypted payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e decrypt_DATA_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e decrypt_DATA_payload(
 		gsmsim_payloads_c * const p_gsmsim_payloads, ///< This is pointer to all payloads of the received EAP packet.
 		const eap_variable_data_c * const encryption_key
 		);
@@ -1032,7 +1053,7 @@
 	 * The received encrypte payload have been decrypted before thiscall.
 	 * p_gsmsim_payloads->get_ENCR_DATA() includes decrypted DATA payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_DATA_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_DATA_payload(
 		const gsmsim_subtype_e subtype,
 		gsmsim_payloads_c * const p_gsmsim_payloads ///< This is pointer to all payloads of the received EAP packet.
 		);
@@ -1042,14 +1063,14 @@
 	/**
 	 * This function generate a new NONCE of nonce_size octets length.
 	 */
-	EAP_FUNC_IMPORT eap_status_e generate_nonce(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e generate_nonce(
 		const u32_t nonce_size,
 		eap_variable_data_c * const nonce);
 
 	/**
 	 * This function returns the domain name.
 	 */
-	EAP_FUNC_IMPORT eap_variable_data_c * get_nai_realm();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_variable_data_c * get_nai_realm();
 
 	/**
 	 * This is the situation before the update_buffer_indexes() call.
@@ -1084,7 +1105,7 @@
 	 *
 	 * Note maximum_buffer_size could be larger than (m_gsmsim_header_offset + m_MTU + m_trailer_length).
 	 */
-	EAP_FUNC_IMPORT void update_buffer_indexes(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void update_buffer_indexes(
 		const u32_t maximum_buffer_size,
 		const u32_t payload_size,
 		u32_t * const buffer_offset,
@@ -1131,7 +1152,7 @@
 	 *
 	 * Note maximum_buffer_size could be larger than (m_gsmsim_header_offset + m_MTU + m_trailer_length).
 	 */
-	EAP_FUNC_IMPORT void update_payload_indexes(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void update_payload_indexes(
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
 		const u32_t payload_size,
@@ -1161,7 +1182,7 @@
 	 *
 	 * @return Other return values are errors.
 	 */
-	EAP_FUNC_IMPORT eap_status_e query_SIM_IMSI_or_pseudonym_or_reauthentication_id(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e query_SIM_IMSI_or_pseudonym_or_reauthentication_id(
 		eap_variable_data_c * const IMSI, ///< Pointer to IMSI. Buffer for IMSI is allocated during the call.
 		eap_variable_data_c * const pseudonym_identity, ///< Pointer to pseudonym. Buffer for pseudonym is allocated during the call.
 		eap_variable_data_c * const reauthentication_identity, ///< Pointer to reauthentication_identity. Buffer for reauthentication_identity is allocated during the call.
@@ -1189,7 +1210,7 @@
 	 *
 	 * @return Other return values are errors.
 	 */
-	EAP_FUNC_IMPORT eap_status_e query_SIM_kc_sres(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e query_SIM_kc_sres(
 		const eap_variable_data_c * const n_rands, ///< This includes concatenated n RAND as input.
 		eap_variable_data_c * const n_kc, ///< This includes concatenated n KC as output.
 		eap_variable_data_c * const n_sres ///< This includes concatenated n SRES as output.
@@ -1213,7 +1234,7 @@
 	 *
 	 * @return Other return values are errors.
 	 */
-	EAP_FUNC_IMPORT eap_status_e query_SIM_triplets(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e query_SIM_triplets(
 		eap_type_gsmsim_identity_type * const identity_type
 		);
 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
@@ -1229,7 +1250,7 @@
 	 * The decrpted DATA payload is handled immediately in handle_DATA_payload() function.
 	 * Then function calculates MAC_SRES and sends EAP-Response/SIM/Challenge.
 	 */
-	EAP_FUNC_IMPORT eap_status_e process_SIM_kc_sres(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e process_SIM_kc_sres(
 		const eap_variable_data_c * const n_rand, ///< This includes concatenated n RAND.
 		const eap_variable_data_c * const n_kc, ///< This includes concatenated n KC.
 		const eap_variable_data_c * const n_sres ///< This includes concatenated n SRES.
@@ -1240,7 +1261,7 @@
 	 * Function creates NAI and EAP-Response/Identity message.
 	 * Message is sent immediately.
 	 */
-	EAP_FUNC_IMPORT eap_status_e process_SIM_IMSI(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e process_SIM_IMSI(
 		const eap_variable_data_c * const IMSI, ///< This is the IMSI.
 		const eap_variable_data_c * const pseudonym ///< This is the pseudonym.
 		);
@@ -1274,7 +1295,7 @@
 	 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 	 * @endcode
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_n_rand_payload(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e add_n_rand_payload(
 		gsmsim_header_c * const gsmsim,
 		const u32_t maximum_buffer_size,
 		const u32_t eap_header_size,
@@ -1289,7 +1310,7 @@
 	/**
 	 * This function calculates the MAC_SRES.
 	 */
-	EAP_FUNC_IMPORT eap_status_e calculate_MAC_SRES(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e calculate_MAC_SRES(
 		eap_variable_data_c * const MAC_SRES, ///< This is the calculated MAC_SRES.
 		const eap_variable_data_c * const n_kc, ///< This includes concatenated n KC.
 		const eap_variable_data_c * const n_sres ///< This includes concatenated n SRES.
@@ -1300,7 +1321,7 @@
 	/**
 	 * This function reads the identity payload. Identity is stored to handler->get_identity().
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_identity(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e parse_identity(
 		const u8_t * const identity, ///< This is pointer to received EAP-Identity buffer.
 		const u32_t identity_length ///< This is length of received EAP-Identity buffer.
 		//const u32_t eap_packet_length ///< This is length of received EAP-Identity buffer.
@@ -1308,7 +1329,7 @@
 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 
 
-	EAP_FUNC_IMPORT eap_status_e handle_eap_identity_query(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_eap_identity_query(
 		const eap_am_network_id_c * const send_network_id,
 		eap_variable_data_c * const identity,
 		const u8_t eap_identifier,
@@ -1330,7 +1351,7 @@
 	 * Currently the query_imsi_from_username() is synchronous call.
 	 * The send_start_request_message() function will send the EAP-Request/SIM/Start message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_identity_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_identity_response_message(
 		eap_header_rd_c * const eap_header, ///< This is the received EAP-Identity packet, pointer points to the header.
 		const u32_t gsmsim_packet_length ///< This is length of received GSMSIM EAP packet.
 		);
@@ -1341,20 +1362,20 @@
 	 * This function handles the received EAP-Request/SIM/Start message.
 	 * Function checks the valid payloads and calls send_start_response_message() that sends EAP-Response/SIM/Start message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_start_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_start_request_message(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
 		gsmsim_payloads_c * const p_gsmsim_payloads ///< This is pointer to all payloads of the received EAP packet.
 		);
 
-	EAP_FUNC_IMPORT eap_status_e handle_gsmsim_notification_request_message_reauthentication(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_gsmsim_notification_request_message_reauthentication(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
 		gsmsim_payloads_c * const p_gsmsim_payloads);
 
-	EAP_FUNC_IMPORT eap_status_e handle_gsmsim_notification_request_message_full_authentication(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_gsmsim_notification_request_message_full_authentication(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1364,7 +1385,7 @@
 	 * This function handles the received EAP-Request/SIM/Notification message.
 	 * Function checks the valid payloads and calls send_notification_response_message() that sends EAP-Response/SIM/Notification message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_gsmsim_notification_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_gsmsim_notification_request_message(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1380,7 +1401,7 @@
 	 * is completed using complete_SIM_kc_sres() function. The complete_SIM_kc_sres()
 	 * function will call process_SIM_kc_sres().
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_challenge_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_challenge_request_message(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
@@ -1397,7 +1418,7 @@
 	 * is completed using complete_SIM_kc_sres() function. The complete_SIM_kc_sres()
 	 * function will call process_SIM_kc_sres().
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_reauthentication_request_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_reauthentication_request_message(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1405,7 +1426,7 @@
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e check_challenge_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_challenge_response_message(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1421,7 +1442,7 @@
 	 * Function calls the query_SIM_triplets() of AM to get fresh triplets.
 	 * The query_SIM_triplets() function is completed by AM using complete_SIM_triplets() function.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_start_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_start_response_message(
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
 		gsmsim_payloads_c * const p_gsmsim_payloads ///< This is pointer to all payloads of the received EAP packet.
@@ -1430,7 +1451,7 @@
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e handle_notification_response_message_reauthentication(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_notification_response_message_reauthentication(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1439,7 +1460,7 @@
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e handle_notification_response_message_full_authentication(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_notification_response_message_full_authentication(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1452,7 +1473,7 @@
 	 * This function handles the received EAP-Response/SIM/Notification message.
 	 * Function checks the valid payloads.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_notification_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_notification_response_message(
 		const eap_am_network_id_c * const receive_network_id,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1467,7 +1488,7 @@
 	 * called to check MAC_SRES. If it returns eap_status_success the authentication was succesfull
 	 * and this function calls the send_eap_success() to send EAP-Success message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_challenge_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_challenge_response_message(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
@@ -1477,7 +1498,7 @@
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e handle_reauthentication_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_reauthentication_response_message(
 		const eap_am_network_id_c * const /* receive_network_id */,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1486,7 +1507,7 @@
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e handle_client_error_response_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_client_error_response_message(
 		const eap_am_network_id_c * const /* receive_network_id */,
 		gsmsim_header_c * const received_gsmsim,
 		const u32_t gsmsim_packet_length,
@@ -1497,7 +1518,7 @@
 	/**
 	 * This function sends and traces all messages.
 	 */
-	EAP_FUNC_IMPORT eap_status_e packet_send(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e packet_send(
 		const eap_am_network_id_c * const network_id,
 		eap_buf_chain_wr_c * const sent_packet,
 		const u32_t header_offset,
@@ -1509,7 +1530,7 @@
 	/**
 	 * This function chechs NAI.
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_NAI(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_NAI(
 		const u8_t * const identity,
 		const u32_t identity_length,
 		const u8_t * const at_character);
@@ -1519,7 +1540,7 @@
 	/**
 	 * This function traces the EAP packet.
 	 */
-	EAP_FUNC_IMPORT void packet_trace(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void packet_trace(
 		eap_const_string prefix,
 		const eap_am_network_id_c * const receive_network_id,
 		eap_header_wr_c * const received_eap,
@@ -1542,53 +1563,53 @@
 	 * Generated keys are offered to lower layer.
 	 * Connection handle is initialised.
 	 */
-	EAP_FUNC_IMPORT eap_status_e finish_successful_authentication(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e finish_successful_authentication(
 		const eap_am_network_id_c * const receive_network_id);
 
 	/**
 	 * This function sends a notification of possible failed authentication
 	 * to lower layer.
 	 */
-	EAP_FUNC_IMPORT eap_status_e send_final_notification();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e send_final_notification();
 
-	EAP_FUNC_IMPORT eap_status_e new_handler(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e new_handler(
 		const eap_am_network_id_c * const receive_network_id,
 		const bool is_client_when_true);
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT bool randomly_refuse_eap_identity();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H bool randomly_refuse_eap_identity();
 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 
-	EAP_FUNC_IMPORT eap_status_e check_rands(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e check_rands(
 		const eap_variable_data_c * const n_rands
 		);
 
 	/**
 	 * This function processes the GSMSIM packets.
 	 */
-	EAP_FUNC_IMPORT eap_status_e gsmsim_packet_process(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e gsmsim_packet_process(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		gsmsim_header_c * const received_gsmsim, ///< This is pointer to EAP header including GSMSIM fields.
 		const u32_t gsmsim_packet_length, ///< This is length of received GSMSIM EAP packet.
 		const bool is_client_when_true ///< Indicates whether this is client (true) or server (false).
 		);
 
-	EAP_FUNC_IMPORT eap_status_e cancel_error_message_delay_timer();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e cancel_error_message_delay_timer();
 
-	EAP_FUNC_IMPORT eap_status_e set_error_message_delay_timer();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e set_error_message_delay_timer();
 
-	EAP_FUNC_IMPORT eap_status_e handle_error_packet();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_error_packet();
 
 	/**
 	 * This function initializes the error message.
 	 */
-	EAP_FUNC_IMPORT eap_status_e initialize_error_message(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e initialize_error_message(
 		const eap_status_e error_status
 		);
 
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
-	EAP_FUNC_IMPORT eap_status_e handle_start_response_message_completion(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_start_response_message_completion(
 		const u8_t next_eap_identifier,
 		const eap_status_e identity_status,
 		const eap_type_gsmsim_identity_type identity_type,
@@ -1596,13 +1617,13 @@
 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 
 
-	EAP_FUNC_IMPORT eap_status_e initialize_notification_message();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e initialize_notification_message();
 
-	EAP_FUNC_IMPORT eap_status_e cancel_notification_message_delay_timer();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e cancel_notification_message_delay_timer();
 
-	EAP_FUNC_IMPORT eap_status_e set_notification_message_delay_timer();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e set_notification_message_delay_timer();
 
-	EAP_FUNC_IMPORT eap_status_e handle_notification_packet();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_notification_packet();
 
 	const bool get_gsmsim_notification_code_F_bit(const eap_gsmsim_notification_codes_e notification_code)
 	{
@@ -1614,7 +1635,7 @@
 		return ((notification_code & gsmsim_notification_code_bit_p) != 0);
 	}
 
-	EAP_FUNC_IMPORT bool random_selection();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H bool random_selection();
 
 	u32_t get_mnc_length(const u32_t mcc);
 
@@ -1638,12 +1659,12 @@
 	/**
 	 * Destructor cancels all timers and deletes member attributes.
 	 */
-	EAP_FUNC_IMPORT virtual ~eap_type_gsmsim_c();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H virtual ~eap_type_gsmsim_c();
 
 	/**
 	 * Constructor initializes all member attributes.
 	 */
-	EAP_FUNC_IMPORT eap_type_gsmsim_c(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_type_gsmsim_c(
 		abs_eap_am_tools_c * const tools, ///< This is pointer to the tools AM of current platform.
 		abs_eap_base_type_c * const partner, ///< This is back pointer to object which created this object.
 		eap_am_type_gsmsim_c * const am_type_gsmsim, ///< This is pointer to adaptation module of GSMSIM EAP type.
@@ -1651,21 +1672,21 @@
 		const bool is_client_when_true, ///< Indicates whether this is client (true) or server (false).
 		const eap_am_network_id_c * const receive_network_id);
 
-	EAP_FUNC_IMPORT static eap_const_string get_identity_string(const eap_type_gsmsim_identity_type identity_type);
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H static eap_const_string get_identity_string(const eap_type_gsmsim_identity_type identity_type);
 
 	/**
 	 * This function returns string of the state. This is for trace purposes.
 	 * NOTE this is static member function.
 	 */
-	EAP_FUNC_IMPORT static eap_const_string get_state_string(eap_type_gsmsim_state_variable_e state);
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H static eap_const_string get_state_string(eap_type_gsmsim_state_variable_e state);
 
 	/**
 	 * This function tells if the object is a client or a server..
 	 */
-	EAP_FUNC_IMPORT bool get_is_client();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H bool get_is_client();
 
 	// This is commented in abs_eap_am_type_gsmsim_c::complete_SIM_IMSI_or_pseudonym_or_reauthentication_id_query().
-	EAP_FUNC_IMPORT eap_status_e complete_SIM_IMSI_or_pseudonym_or_reauthentication_id_query(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e complete_SIM_IMSI_or_pseudonym_or_reauthentication_id_query(
 		const eap_variable_data_c * const IMSI, ///< This is the IMSI.
 		const eap_variable_data_c * const pseudonym, ///< This is the pseudonym.
 		const eap_variable_data_c * const reauthentication_identity, ///< This is the re-authentication identity.
@@ -1679,7 +1700,7 @@
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 	// This is commented in abs_eap_am_type_gsmsim_c::complete_SIM_triplets().
-	EAP_FUNC_IMPORT eap_status_e complete_SIM_triplets(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e complete_SIM_triplets(
 		eap_type_sim_triplet_array_c * const triplets, ///< triplets includes all triplets used in this authentication session.
 		const eap_variable_data_c * const IMSI, ///< IMSI may be queried during query_SIM_triplets() function call. It must be copied to state.
 		const eap_gsmsim_triplet_status_e triplet_status,  ///< This is the status of the failed triplet query.
@@ -1690,7 +1711,7 @@
 
 
 	// This is commented in abs_eap_am_type_gsmsim_c::complete_SIM_kc_sres().
-	EAP_FUNC_IMPORT eap_status_e complete_SIM_kc_sres(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e complete_SIM_kc_sres(
 		const eap_variable_data_c * const n_rand, ///< This includes concatenated n RAND.
 		const eap_variable_data_c * const n_kc, ///< This includes concatenated n KC.
 		const eap_variable_data_c * const n_sres, ///< This includes concatenated n SRES.
@@ -1702,7 +1723,7 @@
 	/** Client calls this function.
 	 *  This function IMSI and username to GSMSIM EAP type.
 	 */
-	EAP_FUNC_IMPORT eap_status_e handle_imsi_from_username(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e handle_imsi_from_username(
 		const u8_t next_eap_identifier,
 		const eap_am_network_id_c * const network_id,
 		const eap_variable_data_c * const username,
@@ -1713,7 +1734,7 @@
 
 #if defined(USE_EAP_TYPE_SERVER_GSMSIM)
 	// This is commented in abs_eap_am_type_gsmsim_c::complete_imsi_from_username().
-	EAP_FUNC_IMPORT eap_status_e complete_imsi_from_username(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e complete_imsi_from_username(
 		const u8_t next_eap_identifier,
 		const eap_am_network_id_c * const network_id,
 		const eap_variable_data_c * const username,
@@ -1728,7 +1749,7 @@
 	 * The partner class calls this function when EAP/GSMSIM packet is received.
 	 * see also eap_base_type_c::packet_process().
 	 */
-	EAP_FUNC_IMPORT eap_status_e packet_process(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e packet_process(
 		const eap_am_network_id_c * const receive_network_id, ///< This is the network identity of the received EAP packet.
 		eap_header_wr_c * const eap, ///< This is pointer to EAP header and data.
 		const u32_t eap_packet_length ///< This is length of received EAP packet.
@@ -1738,7 +1759,7 @@
 	 * This function obtains header offset, MTU and trailer length.
 	 * See also abs_eap_base_type_c::get_header_offset().
 	 */
-	EAP_FUNC_IMPORT u32_t get_header_offset(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H u32_t get_header_offset(
 		u32_t * const MTU,
 		u32_t * const trailer_length
 		);
@@ -1746,7 +1767,7 @@
 	/**
 	 * This function creates a message authentication code (MAC)
 	 */
-	EAP_FUNC_IMPORT eap_status_e create_message_authentication_code(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e create_message_authentication_code(
 		eap_type_gsmsim_MAC_attributes_c *MAC_attributes, ///< This includes required parameters.
 		const gsmsim_subtype_e subtype,
 		const eap_code_value_e code,
@@ -1756,32 +1777,32 @@
 	/**
 	 * This function adds addiditional data to MAC calculation.
 	 */
-	EAP_FUNC_IMPORT eap_status_e extra_message_authentication_code_bytes(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e extra_message_authentication_code_bytes(
 		const gsmsim_subtype_e subtype,
 		const eap_code_value_e code,
 		crypto_hmac_c *hmac_sha1);
 
 	// This is commented in abs_eap_base_timer_c::timer_delete_data().
-	EAP_FUNC_IMPORT eap_status_e timer_expired(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e timer_expired(
 		const u32_t id, void *data
 		);
 
 	// This is commented in abs_eap_base_timer_c::timer_delete_data().
-	EAP_FUNC_IMPORT eap_status_e timer_delete_data(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e timer_delete_data(
 		const u32_t id, void *data
 		);
 
 	// This is commented in eap_base_type_c::set_is_valid().
-	EAP_FUNC_IMPORT void set_is_valid();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void set_is_valid();
 
 	// This is commented in eap_base_type_c::get_is_valid().
-	EAP_FUNC_IMPORT bool get_is_valid();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H bool get_is_valid();
 
 	// This is commented in eap_base_type_c::configure().
 	/**
 	 * EAP-type GSMSIM reads configuration.
 	 */
-	EAP_FUNC_IMPORT eap_status_e configure();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e configure();
 
 	// This is commented in eap_base_type_c::shutdown().
 	/**
@@ -1790,7 +1811,7 @@
 	 * could shutdown the operations, for example cancel timers.
 	 * Each derived class must define this function.
 	 */
-	EAP_FUNC_IMPORT eap_status_e shutdown();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e shutdown();
 
 	/**
 	 * The read_configure() function reads the configuration data identified
@@ -1800,7 +1821,7 @@
 	 * @param field_length is length of the field string.
 	 * @param data is pointer to existing eap_variable_data object.
 	 */
-	EAP_FUNC_IMPORT virtual eap_status_e read_configure(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H virtual eap_status_e read_configure(
 		const eap_configuration_field_c * const field,
 		eap_variable_data_c * const data
 		);
@@ -1813,30 +1834,30 @@
 	 * @param field_length is length of the field string.
 	 * @param data is pointer to existing eap_variable_data object.
 	 */
-	EAP_FUNC_IMPORT virtual eap_status_e write_configure(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H virtual eap_status_e write_configure(
 		const eap_configuration_field_c * const field,
 		eap_variable_data_c * const data
 		);
 
 	// See abs_eap_base_type_c::state_notification().
-	EAP_FUNC_IMPORT void state_notification(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H void state_notification(
 		const abs_eap_state_notification_c * const state
 		);
 
 	// This is commented in eap_base_type_c::query_eap_identity().
-	EAP_FUNC_IMPORT eap_status_e query_eap_identity(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e query_eap_identity(
 		const bool must_be_synchronous,
 		eap_variable_data_c * const identity,
 		const eap_am_network_id_c * const receive_network_id,
 		const u8_t eap_identifier);
 
 	// This is commented in eap_base_type_c::query_eap_identity().
-	EAP_FUNC_IMPORT eap_status_e set_initial_eap_identifier(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e set_initial_eap_identifier(
 		const eap_am_network_id_c * const receive_network_id,
 		const u8_t initial_identifier);
 
 	// This is commented in eap_base_type_c::eap_acknowledge().
-	EAP_FUNC_IMPORT eap_status_e eap_acknowledge(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e eap_acknowledge(
 		const eap_am_network_id_c * const receive_network_id);
 
 	/**
@@ -1846,16 +1867,16 @@
 	 * If object reset fails this function must return corresponding error status.
 	 * @return This function returns the status of reset operation.
 	 */
-	EAP_FUNC_IMPORT eap_status_e reset();
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e reset();
 
 	//
-	EAP_FUNC_IMPORT eap_status_e set_timer(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e set_timer(
 		abs_eap_base_timer_c * const p_initializer, 
 		const u32_t p_id, 
 		void * const p_data,
 		const u32_t p_time_ms);
 
-	EAP_FUNC_IMPORT eap_status_e cancel_timer(
+	EAP_FUNC_VISIBILITY_EAP_TYPE_GSMSIM_H eap_status_e cancel_timer(
 		abs_eap_base_timer_c * const p_initializer, 
 		const u32_t p_id);