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