29 #include "eap_am_network_id.h" |
29 #include "eap_am_network_id.h" |
30 #include "eap_auth_notifier.h" |
30 #include "eap_auth_notifier.h" |
31 |
31 |
32 #include <EapType.h> |
32 #include <EapType.h> |
33 #include <d32dbms.h> |
33 #include <d32dbms.h> |
|
34 #include "eap_am_export.h" |
|
35 // Start: added by script change_export_macros.sh. |
|
36 #if defined(EAP_NO_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H) |
|
37 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_NONSHARABLE |
|
38 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
39 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
40 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
41 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
42 #elif defined(EAP_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H) |
|
43 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_EXPORT |
|
44 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_FUNC_EXPORT |
|
45 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
46 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_FUNC_EXPORT |
|
47 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
48 #else |
|
49 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_IMPORT |
|
50 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_FUNC_IMPORT |
|
51 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H EAP_C_FUNC_IMPORT |
|
52 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
53 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_SECURID_SYMBIAN_H |
|
54 #endif |
|
55 // End: added by script change_export_macros.sh. |
|
56 |
34 |
57 |
35 const TUint KDefaultTimeoutEAPSecurId = 120000; |
58 const TUint KDefaultTimeoutEAPSecurId = 120000; |
36 |
59 |
37 /** |
60 /** |
38 * Class that implements the operating system dependent portion of EAP SecurID protocol. |
61 * Class that implements the operating system dependent portion of EAP SecurID protocol. |
39 * For Symbian OS. |
62 * For Symbian OS. |
40 */ |
63 */ |
41 class EAP_EXPORT eap_am_type_securid_symbian_c |
64 class EAP_CLASS_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_am_type_securid_symbian_c |
42 : public CActive |
65 : public CActive |
43 , public eap_am_type_securid_c |
66 , public eap_am_type_securid_c |
44 , public abs_eap_base_timer_c |
67 , public abs_eap_base_timer_c |
45 , public MNotificationCallback |
68 , public MNotificationCallback |
46 |
69 |
142 const eap_type_value_e aTunnelingType, |
165 const eap_type_value_e aTunnelingType, |
143 const eap_type_value_e aEapType, |
166 const eap_type_value_e aEapType, |
144 const bool aIsClient, |
167 const bool aIsClient, |
145 const eap_am_network_id_c * const receive_network_id); |
168 const eap_am_network_id_c * const receive_network_id); |
146 |
169 |
147 EAP_FUNC_IMPORT virtual ~eap_am_type_securid_symbian_c(); |
170 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H virtual ~eap_am_type_securid_symbian_c(); |
148 |
171 |
149 eap_status_e show_identity_query_dialog( |
172 eap_status_e show_identity_query_dialog( |
150 eap_type_value_e eap_type, |
173 eap_type_value_e eap_type, |
151 eap_variable_data_c * const identity); |
174 eap_variable_data_c * const identity); |
152 |
175 |
163 eap_variable_data_c * const passcode, |
186 eap_variable_data_c * const passcode, |
164 const u8_t * const message, |
187 const u8_t * const message, |
165 u32_t message_length, |
188 u32_t message_length, |
166 bool is_first_query); |
189 bool is_first_query); |
167 |
190 |
168 EAP_FUNC_IMPORT eap_status_e configure(); |
191 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e configure(); |
169 |
192 |
170 EAP_FUNC_IMPORT eap_status_e reset(); |
193 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e reset(); |
171 |
194 |
172 EAP_FUNC_IMPORT void set_is_valid(); |
195 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H void set_is_valid(); |
173 |
196 |
174 EAP_FUNC_IMPORT bool get_is_valid(); |
197 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H bool get_is_valid(); |
175 |
198 |
176 EAP_FUNC_IMPORT eap_status_e type_configure_read( |
199 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e type_configure_read( |
177 const eap_configuration_field_c * const field, |
200 const eap_configuration_field_c * const field, |
178 eap_variable_data_c * const data); |
201 eap_variable_data_c * const data); |
179 |
202 |
180 EAP_FUNC_IMPORT eap_status_e type_configure_write( |
203 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e type_configure_write( |
181 const eap_configuration_field_c * const field, |
204 const eap_configuration_field_c * const field, |
182 eap_variable_data_c * const data); |
205 eap_variable_data_c * const data); |
183 |
206 |
184 EAP_FUNC_IMPORT eap_status_e shutdown(); |
207 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e shutdown(); |
185 |
208 |
186 EAP_FUNC_IMPORT eap_status_e read_auth_failure_string( |
209 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e read_auth_failure_string( |
187 eap_variable_data_c * const string); |
210 eap_variable_data_c * const string); |
188 |
211 |
189 EAP_FUNC_IMPORT eap_status_e get_memory_store_key( |
212 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e get_memory_store_key( |
190 eap_variable_data_c * const memory_store_key); |
213 eap_variable_data_c * const memory_store_key); |
191 |
214 |
192 /** |
215 /** |
193 * Returns true if the full authenticated session is valid. |
216 * Returns true if the full authenticated session is valid. |
194 * It finds the difference between current time and the |
217 * It finds the difference between current time and the |
206 */ |
229 */ |
207 eap_status_e store_authentication_time(); |
230 eap_status_e store_authentication_time(); |
208 |
231 |
209 void DlgComplete( TInt aStatus ); |
232 void DlgComplete( TInt aStatus ); |
210 |
233 |
|
234 TBool IsMasterKeyAndPasswordMatchingL( |
|
235 const TDesC16 & aPassword8); |
|
236 |
211 TInt IsDlgReadyToCompleteL(); |
237 TInt IsDlgReadyToCompleteL(); |
212 |
238 |
213 EAP_FUNC_IMPORT eap_status_e timer_expired( |
239 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e timer_expired( |
214 const u32_t id, void *data); |
240 const u32_t id, void *data); |
215 |
241 |
216 // |
242 // |
217 EAP_FUNC_IMPORT eap_status_e timer_delete_data( |
243 EAP_FUNC_VISIBILITY_EAP_AM_TYPE_SECURID_SYMBIAN_H eap_status_e timer_delete_data( |
218 const u32_t id, void *data); |
244 const u32_t id, void *data); |
219 |
245 |
220 }; // class eap_am_type_securid_symbian_c |
246 }; // class eap_am_type_securid_symbian_c |
221 |
247 |
222 |
248 |