14 * Description: PAC-store interface inside the EAP-server. |
14 * Description: PAC-store interface inside the EAP-server. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 10 % |
19 * %version: 13 % |
20 */ |
20 */ |
21 |
21 |
22 |
22 |
23 #ifndef PACSTOREIF_H_ |
23 #ifndef PACSTOREIF_H_ |
24 #define PACSTOREIF_H_ |
24 #define PACSTOREIF_H_ |
25 |
25 |
26 #include "abs_eap_am_message_if.h" |
26 #include "abs_eap_am_message_if.h" |
27 #include "eap_am_message_if.h" |
27 #include "eap_am_message_if.h" |
28 #include "eap_tools.h" |
28 #include "eap_tools.h" |
29 #include "AbsEapSendInterface.h" |
29 #include "AbsEapSendInterface.h" |
30 #include "eap_pac_store_server_message_if.h" |
30 //#include "eap_pac_store_server_message_if.h" |
|
31 #include "eap_am_export.h" |
|
32 // Start: added by script change_export_macros.sh. |
|
33 #if defined(EAP_NO_EXPORT_PACSTOREIF_H) |
|
34 #define EAP_CLASS_VISIBILITY_PACSTOREIF_H EAP_NONSHARABLE |
|
35 #define EAP_FUNC_VISIBILITY_PACSTOREIF_H |
|
36 #define EAP_C_FUNC_VISIBILITY_PACSTOREIF_H |
|
37 #define EAP_FUNC_EXPORT_PACSTOREIF_H |
|
38 #define EAP_C_FUNC_EXPORT_PACSTOREIF_H |
|
39 #elif defined(EAP_EXPORT_PACSTOREIF_H) |
|
40 #define EAP_CLASS_VISIBILITY_PACSTOREIF_H EAP_EXPORT |
|
41 #define EAP_FUNC_VISIBILITY_PACSTOREIF_H EAP_FUNC_EXPORT |
|
42 #define EAP_C_FUNC_VISIBILITY_PACSTOREIF_H EAP_C_FUNC_EXPORT |
|
43 #define EAP_FUNC_EXPORT_PACSTOREIF_H EAP_FUNC_EXPORT |
|
44 #define EAP_C_FUNC_EXPORT_PACSTOREIF_H EAP_C_FUNC_EXPORT |
|
45 #else |
|
46 #define EAP_CLASS_VISIBILITY_PACSTOREIF_H EAP_IMPORT |
|
47 #define EAP_FUNC_VISIBILITY_PACSTOREIF_H EAP_FUNC_IMPORT |
|
48 #define EAP_C_FUNC_VISIBILITY_PACSTOREIF_H EAP_C_FUNC_IMPORT |
|
49 #define EAP_FUNC_EXPORT_PACSTOREIF_H |
|
50 #define EAP_C_FUNC_EXPORT_PACSTOREIF_H |
|
51 #endif |
|
52 // End: added by script change_export_macros.sh. |
|
53 |
31 |
54 |
32 class eap_file_config_c; |
55 class eap_file_config_c; |
33 |
56 |
34 //-------------------------------------------------- |
57 //-------------------------------------------------- |
35 |
58 |
36 /** @file */ |
59 /** @file */ |
37 |
60 |
38 /// This class is the PAC-store interface inside the EAP-server. |
61 /// This class is the PAC-store interface inside the EAP-server. |
39 class CPacStoreIf |
62 class EAP_CLASS_VISIBILITY_PACSTOREIF_H CPacStoreIf |
40 : public CBase |
63 : public CBase |
41 , public abs_eap_am_message_if_c |
64 , public abs_eap_am_message_if_c |
42 { |
65 { |
43 |
66 |
44 public: |
67 public: |
45 |
68 |
46 // ---------------------------------------------------------------------- |
69 // ---------------------------------------------------------------------- |
47 |
70 |
48 EAP_FUNC_IMPORT CPacStoreIf( |
71 EAP_FUNC_VISIBILITY_PACSTOREIF_H CPacStoreIf( |
49 abs_eap_am_tools_c * const tools, |
72 abs_eap_am_tools_c * const tools, |
50 eap_am_message_if_c * const server, |
73 eap_am_message_if_c * const server, |
51 AbsEapSendInterface * client); |
74 AbsEapSendInterface * client); |
52 |
75 |
53 EAP_FUNC_IMPORT virtual ~CPacStoreIf(); |
76 EAP_FUNC_VISIBILITY_PACSTOREIF_H virtual ~CPacStoreIf(); |
54 |
77 |
55 EAP_FUNC_IMPORT bool get_is_valid(); |
78 EAP_FUNC_VISIBILITY_PACSTOREIF_H bool get_is_valid(); |
56 |
79 |
57 EAP_FUNC_IMPORT eap_status_e configure( |
80 EAP_FUNC_VISIBILITY_PACSTOREIF_H eap_status_e configure( |
58 const eap_variable_data_c * const client_configuration); |
81 const eap_variable_data_c * const client_configuration); |
59 |
82 |
60 EAP_FUNC_IMPORT eap_status_e send_data(const void * const data, const u32_t length); |
83 EAP_FUNC_VISIBILITY_PACSTOREIF_H eap_status_e send_data(const void * const data, const u32_t length); |
61 |
84 |
62 EAP_FUNC_IMPORT eap_status_e process_data(const void * const data, const u32_t length); |
85 EAP_FUNC_VISIBILITY_PACSTOREIF_H eap_status_e process_data(const void * const data, const u32_t length); |
63 |
86 |
64 EAP_FUNC_IMPORT eap_status_e shutdown(); |
87 EAP_FUNC_VISIBILITY_PACSTOREIF_H eap_status_e shutdown(); |
65 |
88 |
66 // ------------------------------------------------------ |
89 // ------------------------------------------------------ |
67 |
90 |
68 EAP_FUNC_IMPORT static CPacStoreIf * new_CPacStoreIf( |
91 EAP_FUNC_VISIBILITY_PACSTOREIF_H static CPacStoreIf * new_CPacStoreIf( |
69 abs_eap_am_tools_c * const tools, |
92 abs_eap_am_tools_c * const tools, |
70 const bool is_client_when_true, |
93 const bool is_client_when_true, |
71 const u32_t MTU, |
94 const u32_t MTU, |
72 AbsEapSendInterface * client); |
95 AbsEapSendInterface * client); |
73 |
96 |