1 /* |
|
2 * ============================================================================ |
|
3 * Name : ./accesssec/eapol/eapol_framework/wapi_symbian/include/certificate_store_db_parameters.h |
|
4 * Part of : WAPI / WAPI *** Info from the SWAD |
|
5 * Description : WAPI authentication |
|
6 * Version : %version: 15 % << Don't touch! Updated by Synergy at check-out. |
|
7 * |
|
8 * Copyright © 2001-2009 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * Template version: 4.2 |
|
18 */ |
|
19 |
|
20 |
|
21 #if !defined(_CERTIFICATESTOREDBPARAMETERNAMES_H_) |
|
22 #define _CERTIFICATESTOREDBPARAMETERNAMES_H_ |
|
23 |
|
24 |
|
25 // For the certificate store database. |
|
26 // Full path is not needed. The database certificatestore.dat will be saved in the |
|
27 // data cage path for DBMS. So it will be in "\private\100012a5\certificatestore.dat" in C: drive. |
|
28 // The maximum length of database name is 0x40 (KDbMaxName) , which is defined in d32dbms.h. |
|
29 _LIT( KCsDatabaseName, "c:certificatestore.dat" ); |
|
30 |
|
31 // For the security policy. |
|
32 _LIT( KSecureUidFormatCertificate, "SECURE[20021357]" ); |
|
33 |
|
34 |
|
35 // Table names in certificate store |
|
36 _LIT( KCsGeneralSettingsTableName, "cs_general_settings" ); |
|
37 _LIT( KCsClientAsuIdListTableName, "cs_client_asu_id_list" ); |
|
38 _LIT( KCsCaAsuIdListTableName, "cs_ca_asu_id_list" ); |
|
39 _LIT( KCsClientCertificateTable, "cs_client_certificate" ); |
|
40 _LIT( KCsCaCertificateTable, "cs_ca_certificate" ); |
|
41 _LIT( KCsPrivateKeyTable, "cs_private_key" ); |
|
42 _LIT( KCsWapiCertLabelTable, "wapi_cs_cert_labels" ); |
|
43 _LIT( KCsWapiCertFileTable, "wapi_cs_cert_files" ); |
|
44 |
|
45 /** |
|
46 * Column names in general settings table. |
|
47 */ |
|
48 _LIT( KCsPassword, "CS_password" ); |
|
49 _LIT( KCsReferenceCounter, "CS_reference_counter" ); |
|
50 _LIT( KCsMasterKey, "CS_master_key" ); |
|
51 _LIT( KCsInitialized, "CS_initialized" ); |
|
52 _LIT( KCsPasswordMaxValidityTime, "CS_password_max_validity_time" ); |
|
53 _LIT( KCsLastPasswordIdentityTime, "CS_password_last_identity_time" ); |
|
54 |
|
55 /** |
|
56 * Column names in client ASU ID list table. |
|
57 */ |
|
58 _LIT( KCsClientAsuIdReference, "CS_client_ASU_ID_reference" ); |
|
59 _LIT( KCsClientAsuIdData, "CS_client_ASU_ID_data" ); |
|
60 |
|
61 /** |
|
62 * Column names in CA ASU ID list table. |
|
63 */ |
|
64 _LIT( KCsCaAsuIdReference, "CS_CA_ASU_ID_reference" ); |
|
65 _LIT( KCsCaAsuIdData, "CS_CA_ASU_ID_data" ); |
|
66 |
|
67 /** |
|
68 * Column names in client certificate table |
|
69 */ |
|
70 _LIT( KCsClientCertAsuIdReference, "CS_client_cert_ASU_ID_reference" ); |
|
71 _LIT( KCsClientCertData, "CS_client_cert_data" ); |
|
72 |
|
73 /** |
|
74 * Column names in CA certificate table |
|
75 */ |
|
76 _LIT( KCsCaCertAsuIdReference, "CS_CA_cert_ASU_ID_reference" ); |
|
77 _LIT( KCsCaCertData, "CS_CA_cert_data" ); |
|
78 |
|
79 /** |
|
80 * Column names in private key table |
|
81 */ |
|
82 _LIT( KCsPrivateKeyAsuIdReference, "CS_private_key_ASU_ID_reference" ); |
|
83 _LIT( KCsPrivateKeyData, "CS_private_key_data" ); |
|
84 |
|
85 /** |
|
86 * Column names in certificate label table for WAPI |
|
87 */ |
|
88 _LIT( KCsCertLabelAsuIdReference, "wapi_cs_cert_ASU_ID_reference" ); |
|
89 _LIT( KCsCACertLabel, "CS_CA_cert_label" ); |
|
90 _LIT( KCsUserCertLabel, "CS_user_cert_label" ); |
|
91 |
|
92 /** |
|
93 * Column names in certificate file table for WAPI |
|
94 */ |
|
95 _LIT( KCsFileName, "CS_file_name" ); |
|
96 |
|
97 /* Constants that define maximum column |
|
98 * lengths in CS DB. |
|
99 */ |
|
100 const TUint KCsMaxPasswordLengthInDb = 255; |
|
101 const TUint KCsMaxRefCounterLengthInDb = 255; |
|
102 const TUint KCsMaxMasterKeyLengthInDb = 255; |
|
103 const TUint KCsMaxAsuIdRefLengthInDb = 10; // 5 digits -> unicode |
|
104 // maximum subject label length |
|
105 const TUint KCsMaxWapiCertLabelLength = 255; |
|
106 // maximum lenght for the decoded identity in the db |
|
107 const TUint KCsMaxWapiCertLabelTableLength = 800; |
|
108 |
|
109 /** |
|
110 * Maximum length of SQL query in CS DB. |
|
111 */ |
|
112 const TUint KMaxSqlQueryLength = 512; |
|
113 |
|
114 /** |
|
115 * Constant defines default column number. |
|
116 */ |
|
117 const TInt KDefaultColumnNumberOne = 1; // For DB view. |
|
118 |
|
119 // The directory from where the certificates are imported |
|
120 _LIT8(KCertificateStoreImportDir, "c:\\data\\WAPI\\"); |
|
121 // Max filesize for importable file |
|
122 const TUint KMaxCertificateFileSize = 4096; |
|
123 |
|
124 #endif // _CERTIFICATESTOREDBPARAMETERNAMES_H_ |
|