27 #include <EapType.h> |
27 #include <EapType.h> |
28 #include "eap_header.h" |
28 #include "eap_header.h" |
29 |
29 |
30 // LOCAL CONSTANTS |
30 // LOCAL CONSTANTS |
31 |
31 |
32 // For EAP-AKA private database. Database will be in the private folder of EAP-server (20026FCB). |
32 #ifdef SYMBIAN_SECURE_DBMS |
33 // The maximum length of database name is 0x40 (KDbMaxName), which is defined in d32dbms.h. |
33 // For EAP AKA secure database. |
|
34 // Full path is not needed. The database eapaka.dat will be saved in the |
|
35 // data cage path for DBMS. So it will be in "\private\100012a5\eapaka.dat" in C: drive. |
|
36 // The maximum length of database name is 0x40 (KDbMaxName) , which is defined in d32dbms.h. |
34 |
37 |
35 _LIT(KEapAkaDatabaseName, "eapaka.dat"); |
38 _LIT(KDatabaseName, "c:eapaka.dat"); |
|
39 |
|
40 _LIT(KSecureUIDFormat, "SECURE[102072e9]"); // For the security policy. |
|
41 |
|
42 #else |
|
43 |
|
44 _LIT(KDatabaseName, "c:\\system\\data\\eapaka.dat"); |
|
45 |
|
46 #endif // #ifdef SYMBIAN_SECURE_DBMS |
36 |
47 |
37 _LIT(KAkaTableName, "eapaka"); |
48 _LIT(KAkaTableName, "eapaka"); |
38 |
49 |
39 // CLASS DECLARATION |
50 // CLASS DECLARATION |
40 class EapAkaDbUtils |
51 class EapAkaDbUtils |
41 { |
52 { |
42 |
|
43 public: |
53 public: |
44 |
54 |
45 static void OpenDatabaseL( |
55 static void OpenDatabaseL( |
46 RDbNamedDatabase& aDatabase, |
56 RDbNamedDatabase& aDatabase, |
47 RFs& aFileServerSession, |
57 RDbs& aSession, |
48 const TIndexType aIndexType, |
58 const TIndexType aIndexType, |
49 const TInt aIndex, |
59 const TInt aIndex, |
50 const eap_type_value_e aTunnelingType); |
60 const eap_type_value_e aTunnelingType); |
51 |
61 |
52 /** |
62 /** |