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 * %version: 14.1.2 % |
|
20 */ |
|
21 |
|
22 #ifndef _EAPTLSPEAPUITLSPEAPDATA_H_ |
|
23 #define _EAPTLSPEAPUITLSPEAPDATA_H_ |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 const TInt KMaxLengthOfUsername=255; |
|
29 const TInt KMaxLengthOfPassword=255; |
|
30 |
|
31 const TInt KMaxLengthOfPapUserName = 253; // according to UI spec |
|
32 const TInt KMaxLengthOfPapPassword = 128; // according to UI spec |
|
33 |
|
34 class CEapTlsPeapUiTlsPeapData : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 CEapTlsPeapUiTlsPeapData(); |
|
39 |
|
40 ~CEapTlsPeapUiTlsPeapData(); |
|
41 |
|
42 TDes& GetManualUsername(); |
|
43 |
|
44 TBool * GetUseManualUsername(); |
|
45 |
|
46 TDes& GetManualRealm(); |
|
47 |
|
48 TBool * GetUseManualRealm(); |
|
49 |
|
50 TBool * GetAllowVersion0(); |
|
51 |
|
52 TBool * GetAllowVersion1(); |
|
53 |
|
54 TBool * GetAllowVersion2(); |
|
55 |
|
56 // New member functions for EAP-FAST |
|
57 |
|
58 TBool * GetTlsPrivacy(); |
|
59 |
|
60 TBool * GetAuthProvModeAllowed(); |
|
61 |
|
62 TBool * GetUnauthProvModeAllowed(); |
|
63 |
|
64 TDes& GetPacStorePassword(); |
|
65 |
|
66 public: // new, for TTLS PAP |
|
67 |
|
68 TDes& GetPapUserName(); |
|
69 |
|
70 TDes& GetPapPassword(); |
|
71 |
|
72 TBool* GetPapPasswordPrompt(); |
|
73 |
|
74 private: |
|
75 |
|
76 TBuf<KMaxLengthOfUsername> iManualUsername; |
|
77 |
|
78 TBool iUseManualUsername; |
|
79 |
|
80 TBuf<KMaxLengthOfUsername> iManualRealm; |
|
81 |
|
82 TBool iUseManualRealm; |
|
83 |
|
84 TBool iAllowVersion0; |
|
85 |
|
86 TBool iAllowVersion1; |
|
87 |
|
88 TBool iAllowVersion2; |
|
89 |
|
90 // New member variables for EAP-FAST |
|
91 TBool iTlsPrivacy; |
|
92 |
|
93 TBool iAuthProvModeAllowed; |
|
94 |
|
95 TBool iUnauthProvModeAllowed; |
|
96 |
|
97 TBuf<KMaxLengthOfPassword> iPacStorePassword; |
|
98 |
|
99 TBuf<KMaxLengthOfPapUserName> iPapUserName; |
|
100 |
|
101 TBuf<KMaxLengthOfPapPassword> iPapPassword; |
|
102 |
|
103 TBool iPapPasswordPrompt; |
|
104 |
|
105 }; |
|
106 |
|
107 #endif |
|
108 |
|
109 // End of file |
|