22 #if !defined(_EAP_AM_TYPE_SIM_SYMBIAN_H_) |
22 #if !defined(_EAP_AM_TYPE_SIM_SYMBIAN_H_) |
23 #define _EAP_AM_TYPE_SIM_SYMBIAN_H_ |
23 #define _EAP_AM_TYPE_SIM_SYMBIAN_H_ |
24 |
24 |
25 #include "eap_tools.h" |
25 #include "eap_tools.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_AM_TYPE_SIM_SYMBIAN_H) |
|
29 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_NONSHARABLE |
|
30 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
31 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
32 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
33 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
34 #elif defined(EAP_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H) |
|
35 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_EXPORT |
|
36 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_FUNC_EXPORT |
|
37 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
38 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_FUNC_EXPORT |
|
39 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
40 #else |
|
41 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_IMPORT |
|
42 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_FUNC_IMPORT |
|
43 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H EAP_C_FUNC_IMPORT |
|
44 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
45 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SIM_SYMBIAN_H |
|
46 #endif |
|
47 // End: added by script change_export_macros.sh. |
27 #include "abs_eap_base_type.h" |
48 #include "abs_eap_base_type.h" |
28 #include "eap_am_type_sim.h" |
49 #include "eap_am_type_sim.h" |
29 |
50 |
30 // |
51 // |
31 class EAP_EXPORT eap_am_type_sim_simulator_c |
52 class EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_am_type_sim_simulator_c |
32 : public eap_am_type_sim_c |
53 : public eap_am_type_sim_c |
33 { |
54 { |
34 private: |
55 private: |
35 //-------------------------------------------------- |
56 //-------------------------------------------------- |
36 |
57 |
43 //-------------------------------------------------- |
64 //-------------------------------------------------- |
44 public: |
65 public: |
45 //-------------------------------------------------- |
66 //-------------------------------------------------- |
46 |
67 |
47 // |
68 // |
48 EAP_FUNC_IMPORT virtual ~eap_am_type_sim_simulator_c(); |
69 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H virtual ~eap_am_type_sim_simulator_c(); |
49 |
70 |
50 // |
71 // |
51 EAP_FUNC_IMPORT eap_am_type_sim_simulator_c( |
72 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_am_type_sim_simulator_c( |
52 abs_eap_am_tools_c * const m_am_tools, abs_eap_am_type_sim_c * const partner); |
73 abs_eap_am_tools_c * const m_am_tools, abs_eap_am_type_sim_c * const partner); |
53 |
74 |
54 // |
75 // |
55 EAP_FUNC_IMPORT eap_status_e query_SIM_imsi( |
76 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_status_e query_SIM_imsi( |
56 u8_t * const imsi, const u32_t max_length, u32_t * const imsi_length); |
77 u8_t * const imsi, const u32_t max_length, u32_t * const imsi_length); |
57 |
78 |
58 // |
79 // |
59 EAP_FUNC_IMPORT eap_status_e query_SIM_kc_and_sres( |
80 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_status_e query_SIM_kc_and_sres( |
60 const u8_t * const imsi, const u32_t imsi_length, |
81 const u8_t * const imsi, const u32_t imsi_length, |
61 const u8_t * const rand, const u32_t rand_length, |
82 const u8_t * const rand, const u32_t rand_length, |
62 u8_t * const kc, u32_t * const kc_length, |
83 u8_t * const kc, u32_t * const kc_length, |
63 u8_t * const sres, u32_t * const sres_length); |
84 u8_t * const sres, u32_t * const sres_length); |
64 |
85 |
65 // |
86 // |
66 EAP_FUNC_IMPORT eap_status_e query_SIM_triplets( |
87 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_status_e query_SIM_triplets( |
67 //const eap_state_selector_c * const state_selector, |
88 //const eap_state_selector_c * const state_selector, |
68 const eap_variable_data_c * const imsi, |
89 const eap_variable_data_c * const imsi, |
69 eap_type_sim_triplet_array_c * const triplets); |
90 eap_type_sim_triplet_array_c * const triplets); |
70 |
91 |
71 // |
92 // |
72 EAP_FUNC_IMPORT eap_status_e query_SIM_kc_sres( |
93 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_status_e query_SIM_kc_sres( |
73 //const eap_state_selector_c * const state_selector, |
94 //const eap_state_selector_c * const state_selector, |
74 const eap_variable_data_c * const n_rands, |
95 const eap_variable_data_c * const n_rands, |
75 eap_variable_data_c * const n_kc, |
96 eap_variable_data_c * const n_kc, |
76 eap_variable_data_c * const n_sres); |
97 eap_variable_data_c * const n_sres); |
77 |
98 |
85 * This function creates a new instance of adaptation module of simple SIM EAP-type. |
106 * This function creates a new instance of adaptation module of simple SIM EAP-type. |
86 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
107 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
87 * @param partner is pointer to the caller of the new_eap_am_type_sim(). |
108 * @param partner is pointer to the caller of the new_eap_am_type_sim(). |
88 * Simple SIM EAP-type will callback caller using the partner pointer. |
109 * Simple SIM EAP-type will callback caller using the partner pointer. |
89 */ |
110 */ |
90 EAP_C_FUNC_IMPORT eap_am_type_sim_c *new_eap_am_type_sim( |
111 EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SIM_SYMBIAN_H eap_am_type_sim_c *new_eap_am_type_sim( |
91 abs_eap_am_tools_c * const tools, |
112 abs_eap_am_tools_c * const tools, |
92 abs_eap_am_type_sim_c * const partner); |
113 abs_eap_am_type_sim_c * const partner); |
93 |
114 |
94 |
115 |
95 #endif //#if !defined(_EAP_AM_TYPE_SIM_SYMBIAN_H_) |
116 #endif //#if !defined(_EAP_AM_TYPE_SIM_SYMBIAN_H_) |