|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : ./accesssec/eapol/eapol_framework/wapi_symbian/wapi_server/include/WapiCoreIf.h |
|
4 * Part of : WAPI / WAPI *** Info from the SWAD |
|
5 * Description : WAPI authentication |
|
6 * Version : %version: 3 % << Don't touch! Updated by Synergy at check-out. |
|
7 * |
|
8 * Copyright © 2001-2010 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * Template version: 4.2 |
|
18 */ |
|
19 |
|
20 #ifndef WAPICOREIF_H_ |
|
21 #define WAPICOREIF_H_ |
|
22 |
|
23 #include "abs_eap_am_message_if.h" |
|
24 #include "eap_am_message_if.h" |
|
25 #include "eap_tools.h" |
|
26 #include "AbsEapSendInterface.h" |
|
27 //#include "wapi_security_settings_server_message_if.h" |
|
28 |
|
29 //class eap_file_config_c; |
|
30 |
|
31 //-------------------------------------------------- |
|
32 |
|
33 //-------------------------------------------------- |
|
34 |
|
35 /** @file */ |
|
36 |
|
37 class TWapiCoreIfParameters |
|
38 { |
|
39 public: |
|
40 abs_eap_am_tools_c * iTools; |
|
41 AbsEapSendInterface * iClient; |
|
42 }; |
|
43 |
|
44 |
|
45 /// This class is the common part of EAP message interface. |
|
46 /// This class is interface to the message creation and parsing function. |
|
47 class CWapiCoreIf |
|
48 : public CBase |
|
49 , public abs_eap_am_message_if_c |
|
50 { |
|
51 public: |
|
52 |
|
53 // ---------------------------------------------------------------------- |
|
54 |
|
55 inline static CWapiCoreIf* NewL( |
|
56 abs_eap_am_tools_c * const tools, |
|
57 AbsEapSendInterface * client); |
|
58 |
|
59 virtual ~CWapiCoreIf(); |
|
60 |
|
61 //bool get_is_valid(); |
|
62 |
|
63 //eap_status_e configure( |
|
64 // const eap_variable_data_c * const client_configuration); |
|
65 |
|
66 virtual eap_status_e send_data(const void * const data, const u32_t length) = 0; |
|
67 |
|
68 virtual eap_status_e process_data(const void * const data, const u32_t length) = 0; |
|
69 |
|
70 //eap_status_e shutdown(); |
|
71 |
|
72 // ------------------------------------------------------ |
|
73 |
|
74 private: |
|
75 |
|
76 // ---------------------------------------------------------------------- |
|
77 |
|
78 /// ECom uses this key to keep track of DLL usage. |
|
79 TUid iDtor_ID_Key; |
|
80 |
|
81 // ---------------------------------------------------------------------- |
|
82 |
|
83 // ---------------------------------------------------------------------- |
|
84 }; |
|
85 |
|
86 #include "WapiCoreIf.inl" |
|
87 |
|
88 #endif /* WAPICOREIF_H_ */ |