|
1 /* |
|
2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _EAPTLSPEAPUITLSPEAPDATA_H_ |
|
20 #define _EAPTLSPEAPUITLSPEAPDATA_H_ |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 const TInt KMaxLengthOfUsername=255; |
|
26 const TInt KMaxLengthOfPassword=255; |
|
27 |
|
28 const TInt KMaxLengthOfPapUserName = 253; // according to UI spec |
|
29 const TInt KMaxLengthOfPapPassword = 128; // according to UI spec |
|
30 |
|
31 class CEapTlsPeapUiTlsPeapData : public CBase |
|
32 { |
|
33 public: |
|
34 |
|
35 CEapTlsPeapUiTlsPeapData(); |
|
36 |
|
37 ~CEapTlsPeapUiTlsPeapData(); |
|
38 |
|
39 TDes& GetManualUsername(); |
|
40 |
|
41 TBool * GetUseManualUsername(); |
|
42 |
|
43 TDes& GetManualRealm(); |
|
44 |
|
45 TBool * GetUseManualRealm(); |
|
46 |
|
47 TBool * GetAllowVersion0(); |
|
48 |
|
49 TBool * GetAllowVersion1(); |
|
50 |
|
51 TBool * GetAllowVersion2(); |
|
52 |
|
53 // New member functions for EAP-FAST |
|
54 |
|
55 TBool * GetTlsPrivacy(); |
|
56 |
|
57 TBool * GetAuthProvModeAllowed(); |
|
58 |
|
59 TBool * GetUnauthProvModeAllowed(); |
|
60 |
|
61 TDes& GetPacStorePassword(); |
|
62 |
|
63 public: // new, for TTLS PAP |
|
64 |
|
65 TDes& GetPapUserName(); |
|
66 |
|
67 TDes& GetPapPassword(); |
|
68 |
|
69 TBool* GetPapPasswordPrompt(); |
|
70 |
|
71 private: |
|
72 |
|
73 TBuf<KMaxLengthOfUsername> iManualUsername; |
|
74 |
|
75 TBool iUseManualUsername; |
|
76 |
|
77 TBuf<KMaxLengthOfUsername> iManualRealm; |
|
78 |
|
79 TBool iUseManualRealm; |
|
80 |
|
81 TBool iAllowVersion0; |
|
82 |
|
83 TBool iAllowVersion1; |
|
84 |
|
85 TBool iAllowVersion2; |
|
86 |
|
87 // New member variables for EAP-FAST |
|
88 TBool iTlsPrivacy; |
|
89 |
|
90 TBool iAuthProvModeAllowed; |
|
91 |
|
92 TBool iUnauthProvModeAllowed; |
|
93 |
|
94 TBuf<KMaxLengthOfPassword> iPacStorePassword; |
|
95 |
|
96 TBuf<KMaxLengthOfPapUserName> iPapUserName; |
|
97 |
|
98 TBuf<KMaxLengthOfPapPassword> iPapPassword; |
|
99 |
|
100 TBool iPapPasswordPrompt; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif |
|
105 |
|
106 // End of file |