|
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(_EAPAKADBDEFAULTS_H_) |
|
22 #define _EAPAKADBDEFAULTS_H_ |
|
23 |
|
24 enum TAKAUsePseudonymId |
|
25 { |
|
26 EAKAUsePseudonymIdNo, // False. Don't use pseudonym id. |
|
27 EAKAUsePseudonymIdYes, // True. Use pseudonym id. |
|
28 EAKAUsePseudonymIdNotValid // This indicates that the value is not configured. |
|
29 }; |
|
30 |
|
31 enum TAKAUseManualRealm |
|
32 { |
|
33 EAKAUseManualRealmNo, // False. Don't use Manual Realm. |
|
34 EAKAUseManualRealmYes, // True. Use Manual Realm. |
|
35 }; |
|
36 |
|
37 enum TAKAUseManualUsername |
|
38 { |
|
39 EAKAUseManualUsernameNo, // False. Don't use Manual Username. |
|
40 EAKAUseManualUsernameYes, // True. Use Manual Username. |
|
41 }; |
|
42 |
|
43 // LOCAL CONSTANTS |
|
44 const TUint default_EAP_AKA_use_manual_realm = EAKAUseManualRealmNo; |
|
45 _LIT(default_EAP_AKA_manual_realm, ""); |
|
46 |
|
47 const TUint default_EAP_AKA_use_manual_username = EAKAUseManualUsernameNo; |
|
48 _LIT(default_EAP_AKA_manual_username, ""); |
|
49 |
|
50 const TUint default_EAP_AKA_use_pseudonym_identity = EAKAUsePseudonymIdYes; // 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; // 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 // _EAPAKADBDEFAULTS_H_ |
|
68 |
|
69 // End of file |