|
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 #ifndef EAPSECURIDDBUTILS_H |
|
21 #define EAPSECURIDDBUTILS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <d32dbms.h> |
|
25 #include <EapType.h> |
|
26 #include "eap_header.h" |
|
27 |
|
28 // LOCAL CONSTANTS |
|
29 |
|
30 #ifdef SYMBIAN_SECURE_DBMS |
|
31 // For EAP SecureID secure database. |
|
32 // Full path is not needed. The database eapsecurid.dat will be saved in the |
|
33 // data cage path for DBMS. So it will be in "\private\100012a5\eapsecurid.dat" in C: drive. |
|
34 // The maximum length of database name is 0x40 (KDbMaxName) , which is defined in d32dbms.h. |
|
35 |
|
36 _LIT(KDatabaseName, "c:eapsecurid.dat"); |
|
37 |
|
38 _LIT(KSecureUIDFormat, "SECURE[102072e9]"); // For the security policy. |
|
39 |
|
40 #else |
|
41 |
|
42 _LIT(KDatabaseName, "c:\\system\\data\\eapsecurid.dat"); |
|
43 |
|
44 #endif // #ifdef SYMBIAN_SECURE_DBMS |
|
45 |
|
46 _LIT(KSecurIDTableName, "eapsecurid"); |
|
47 |
|
48 // CLASS DECLARATION |
|
49 class EapSecurIDDbUtils |
|
50 { |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Opens database |
|
55 * @param aDatabase Handle to database |
|
56 * @param aSession Handle to session |
|
57 * @param aIndexType Bearer type |
|
58 * @param aIndex Index |
|
59 */ |
|
60 static void OpenDatabaseL( |
|
61 RDbNamedDatabase& aDatabase, |
|
62 RDbs& aSession, |
|
63 const TIndexType aIndexType, |
|
64 const TInt aIndex, |
|
65 const eap_type_value_e aTunnelingType); |
|
66 }; |
|
67 |
|
68 #endif // EAPSECURIDDBUTILS_H |
|
69 |
|
70 // End of File |