14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 19 % |
19 * %version: 26 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef _EAPMSCHAPV2_H_ |
22 #ifndef _EAPMSCHAPV2_H_ |
23 #define _EAPMSCHAPV2_H_ |
23 #define _EAPMSCHAPV2_H_ |
24 |
24 |
25 // INCLUDES |
25 // INCLUDES |
26 #include <EapTypePlugin.h> |
26 #include <EapTypePlugin.h> |
|
27 #include "eap_am_export.h" |
|
28 // Start: added by script change_export_macros.sh. |
|
29 #if defined(EAP_NO_EXPORT_EAPMSCHAPV2_H) |
|
30 #define EAP_CLASS_VISIBILITY_EAPMSCHAPV2_H EAP_NONSHARABLE |
|
31 #define EAP_FUNC_VISIBILITY_EAPMSCHAPV2_H |
|
32 #define EAP_C_FUNC_VISIBILITY_EAPMSCHAPV2_H |
|
33 #define EAP_FUNC_EXPORT_EAPMSCHAPV2_H |
|
34 #define EAP_C_FUNC_EXPORT_EAPMSCHAPV2_H |
|
35 #elif defined(EAP_EXPORT_EAPMSCHAPV2_H) |
|
36 #define EAP_CLASS_VISIBILITY_EAPMSCHAPV2_H EAP_EXPORT |
|
37 #define EAP_FUNC_VISIBILITY_EAPMSCHAPV2_H EAP_FUNC_EXPORT |
|
38 #define EAP_C_FUNC_VISIBILITY_EAPMSCHAPV2_H EAP_C_FUNC_EXPORT |
|
39 #define EAP_FUNC_EXPORT_EAPMSCHAPV2_H EAP_FUNC_EXPORT |
|
40 #define EAP_C_FUNC_EXPORT_EAPMSCHAPV2_H EAP_C_FUNC_EXPORT |
|
41 #else |
|
42 #define EAP_CLASS_VISIBILITY_EAPMSCHAPV2_H EAP_IMPORT |
|
43 #define EAP_FUNC_VISIBILITY_EAPMSCHAPV2_H EAP_FUNC_IMPORT |
|
44 #define EAP_C_FUNC_VISIBILITY_EAPMSCHAPV2_H EAP_C_FUNC_IMPORT |
|
45 #define EAP_FUNC_EXPORT_EAPMSCHAPV2_H |
|
46 #define EAP_C_FUNC_EXPORT_EAPMSCHAPV2_H |
|
47 #endif |
|
48 // End: added by script change_export_macros.sh. |
27 #include "eap_header.h" |
49 #include "eap_header.h" |
|
50 |
|
51 class AbsPacStoreInitializer; |
28 |
52 |
29 // LOCAL CONSTANTS |
53 // LOCAL CONSTANTS |
30 |
54 |
31 // CLASS DECLARATION |
55 // CLASS DECLARATION |
32 /** |
56 /** |
33 * Class that implements the generic EAP type interface. Implements EAP MSCHAPv2 and |
57 * Class that implements the generic EAP type interface. Implements EAP MSCHAPv2 and |
34 * plain MSCHAPv2 protocol. |
58 * plain MSCHAPv2 protocol. |
35 */ |
59 */ |
36 class CEapMsChapV2 : public CEapTypePlugin |
60 class EAP_CLASS_VISIBILITY_EAPMSCHAPV2_H CEapMsChapV2 : public CEapTypePlugin |
37 { |
61 { |
38 public: |
62 public: |
39 /** |
63 /** |
40 * Construction function. Called by ECom after the EAP MSCHAPv2 plugin has been loaded. |
64 * Construction function. Called by ECom after the EAP MSCHAPv2 plugin has been loaded. |
41 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
65 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
42 * @return Pointer to the instance. |
66 * @return Pointer to the instance. |
43 */ |
67 */ |
44 static CEapMsChapV2* NewL(SIapInfo *aIapInfo); |
68 static CEapMsChapV2* NewL(SPluginInfo *aIapInfo); |
45 |
69 |
46 /** |
70 /** |
47 * Construction function. Called by ECom after the plain MSCHAPv2 plugin has been loaded. |
71 * Construction function. Called by ECom after the plain MSCHAPv2 plugin has been loaded. |
48 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
72 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
49 * @return Pointer to the instance. |
73 * @return Pointer to the instance. |
50 */ |
74 */ |
51 static CEapMsChapV2* NewPlainMSCHAPv2L(SIapInfo *aIapInfo); |
75 static CEapMsChapV2* NewPlainMSCHAPv2L(SPluginInfo *aIapInfo); |
52 |
76 |
53 /** |
77 /** |
54 * Destructor does nothing. |
78 * Destructor does nothing. |
55 */ |
79 */ |
56 virtual ~CEapMsChapV2(); |
80 virtual ~CEapMsChapV2(); |