|
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 |
|
20 |
|
21 #if !defined(_EAPSIMDBDEFAULTS_H_) |
|
22 #define _EAPSIMDBDEFAULTS_H_ |
|
23 |
|
24 enum TGSMSIMUsePseudonymId |
|
25 { |
|
26 EGSMSIMUsePseudonymIdNo, // False. Don't use pseudonym id. |
|
27 EGSMSIMUsePseudonymIdYes, // True. Use pseudonym id. |
|
28 EGSMSIMUsePseudonymIdNotValid // This indicates that the value is not configured. |
|
29 }; |
|
30 |
|
31 enum TGSMSIMUseManualRealm |
|
32 { |
|
33 EGSMSIMUseManualRealmNo, // False. Don't use Manual Realm. |
|
34 EGSMSIMUseManualRealmYes, // True. Use Manual Realm. |
|
35 }; |
|
36 |
|
37 enum TGSMSIMUseManualUsername |
|
38 { |
|
39 EGSMSIMUseManualUsernameNo, // False. Don't use Manual Username. |
|
40 EGSMSIMUseManualUsernameYes, // True. Use Manual Username. |
|
41 }; |
|
42 |
|
43 // LOCAL CONSTANTS |
|
44 const TInt default_EAP_GSMSIM_use_manual_realm = EGSMSIMUseManualRealmNo; |
|
45 _LIT(default_EAP_GSMSIM_manual_realm, ""); |
|
46 |
|
47 const TInt default_EAP_GSMSIM_use_manual_username = EGSMSIMUseManualUsernameNo; |
|
48 _LIT(default_EAP_GSMSIM_manual_username, ""); |
|
49 |
|
50 const TInt default_EAP_GSMSIM_use_pseudonym_identity = EGSMSIMUsePseudonymIdYes; // Default is, use pseudonym identity. |
|
51 |
|
52 const TInt64 default_MaxSessionTime = 0; // 0 means read from configuration file. |
|
53 const TInt64 default_FullAuthTime = 0; |
|
54 |
|
55 const TUint KMaxPseudonymIdLengthInDB = 1020; // This is the max possible length of an EAP packet. |
|
56 const TUint KMaxReauthIdLengthInDB = 1020; // Hope pseudonym id or reauth id can't be more than that. |
|
57 |
|
58 const TUint KMaxManualUsernameLengthInDB = 255; |
|
59 const TUint KMaxManualRealmLengthInDB = 255; |
|
60 |
|
61 const TUint KMaxIMSILengthInDB = 15; |
|
62 |
|
63 const TUint KMaxXKeyLengthInDB = 20; |
|
64 const TUint KMaxK_autLengthInDB = 16; |
|
65 const TUint KMaxK_encrLengthInDB = 16; |
|
66 |
|
67 #endif // _EAPSIMDBDEFAULTS_H_ |
|
68 |
|
69 // End of file |