24 |
24 |
25 #include "eap_tools.h" |
25 #include "eap_tools.h" |
26 #include "eap_variable_data.h" |
26 #include "eap_variable_data.h" |
27 #include "eap_header.h" |
27 #include "eap_header.h" |
28 #include "eap_am_export.h" |
28 #include "eap_am_export.h" |
|
29 // Start: added by script change_export_macros.sh. |
|
30 #if defined(EAP_NO_EXPORT_EAP_AM_TYPE_TLS_PEAP_H) |
|
31 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_NONSHARABLE |
|
32 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H |
|
33 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H |
|
34 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H |
|
35 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H |
|
36 #elif defined(EAP_EXPORT_EAP_AM_TYPE_TLS_PEAP_H) |
|
37 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_EXPORT |
|
38 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_FUNC_EXPORT |
|
39 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_C_FUNC_EXPORT |
|
40 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H EAP_FUNC_EXPORT |
|
41 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H EAP_C_FUNC_EXPORT |
|
42 #else |
|
43 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_IMPORT |
|
44 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_FUNC_IMPORT |
|
45 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H EAP_C_FUNC_IMPORT |
|
46 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H |
|
47 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_TLS_PEAP_H |
|
48 #endif |
|
49 // End: added by script change_export_macros.sh. |
29 #include "abs_eap_am_type_tls_peap.h" |
50 #include "abs_eap_am_type_tls_peap.h" |
30 #include "eap_am_network_id.h" |
51 #include "eap_am_network_id.h" |
31 #include "tls_am_services.h" |
52 #include "tls_am_services.h" |
32 |
53 |
33 #if defined(USE_FAST_EAP_TYPE) |
54 #if defined(USE_FAST_EAP_TYPE) |
36 |
57 |
37 class abs_eap_base_type_c; |
58 class abs_eap_base_type_c; |
38 class eap_base_type_c; |
59 class eap_base_type_c; |
39 |
60 |
40 /// This class is interface to adaptation module of EAP/TLS and PEAP. |
61 /// This class is interface to adaptation module of EAP/TLS and PEAP. |
41 class EAP_EXPORT eap_am_type_tls_peap_c |
62 class EAP_CLASS_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H eap_am_type_tls_peap_c |
42 : public tls_am_services_c |
63 : public tls_am_services_c |
43 #if defined(USE_FAST_EAP_TYPE) |
64 #if defined(USE_FAST_EAP_TYPE) |
44 , public tls_am_application_eap_fast_c |
65 , public tls_am_application_eap_fast_c |
45 #endif //#if defined(USE_FAST_EAP_TYPE) |
66 #endif //#if defined(USE_FAST_EAP_TYPE) |
46 { |
67 { |
193 /** |
214 /** |
194 * This function creates a new instance of adaptation module of EAP-TLS/PEAP EAP-type. |
215 * This function creates a new instance of adaptation module of EAP-TLS/PEAP EAP-type. |
195 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
216 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
196 * EAP-TLS/PEAP EAP-type will callback caller using the partner pointer. |
217 * EAP-TLS/PEAP EAP-type will callback caller using the partner pointer. |
197 */ |
218 */ |
198 EAP_C_FUNC_IMPORT eap_am_type_tls_peap_c *new_eap_am_type_tls_peap( |
219 EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_TLS_PEAP_H eap_am_type_tls_peap_c *new_eap_am_type_tls_peap( |
199 abs_eap_am_tools_c * const tools, |
220 abs_eap_am_tools_c * const tools, |
200 abs_eap_base_type_c * const partner, |
221 abs_eap_base_type_c * const partner, |
201 const eap_type_value_e eap_type, |
222 const eap_type_value_e eap_type, |
202 const bool is_client_when_true, |
223 const bool is_client_when_true, |
203 const eap_am_network_id_c * const receive_network_id); |
224 const eap_am_network_id_c * const receive_network_id); |