os/security/securityanddataprivacytools/securitytools/certapp/test/tcertapp/tcertapp_good.cpp
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/securityanddataprivacytools/securitytools/certapp/test/tcertapp/tcertapp_good.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,295 @@
1.4 +/*
1.5 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* Good/Supportted values for labels
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +const char *goodLabels[]=
1.25 +{
1.26 + "\"SymbianA\"",
1.27 + "\"SymbianB\"",
1.28 + "\"SymbianC\"",
1.29 + "\"SymbianD\"",
1.30 + "\"Label With Spaces\"",
1.31 + "\"label with a quote \\\" char in it\"",
1.32 + //"\"label with backslash \\\\ char in it \"",
1.33 + 0 //null termination
1.34 +};
1.35 +
1.36 +
1.37 +const char *goodCert_array[]=
1.38 +{
1.39 + "\"Root5CA\"",
1.40 + "\"SymbianTestDSACA\"",
1.41 + "\"SymbianTestRSACA\"",
1.42 + "\"0\"",
1.43 + "\"Label With Spaces\"",
1.44 + "\"label with a quote \\\" char in it\"",
1.45 + //"\"label with backslash \\\\ char in it \"",
1.46 + 0
1.47 +};
1.48 +
1.49 +
1.50 +
1.51 +//good deletables
1.52 +const char *goodDeletables[]=
1.53 +{
1.54 + "\"true\"",
1.55 + "\"false\"",
1.56 + "\"0\"",
1.57 + "\"1\"",
1.58 + "\"ETrue\"",
1.59 + "\"EFalse\"",
1.60 + 0
1.61 +};
1.62 +
1.63 +
1.64 +const char *goodEmuCert_array[]=
1.65 +{
1.66 + "Root5CA",
1.67 + "SymbianTestDSACA",
1.68 + "SymbianTestRSACA",
1.69 + "0",
1.70 + "Label With Spaces",
1.71 + "label with a quote \" char in it",
1.72 + //"label with backslash \\\\ char in it ",
1.73 + 0
1.74 +};
1.75 +
1.76 +
1.77 +const char *goodSwiCert_array[]=
1.78 +{
1.79 + "SymbianA",
1.80 + "SymbianB",
1.81 + "SymbianC",
1.82 + "SymbianD",
1.83 + "Label With Spaces",
1.84 + "label with a quote \" char in it",
1.85 + //"label with backslash \\ char in it ",
1.86 + 0 //null termination
1.87 +};
1.88 +
1.89 +
1.90 +const char *goodFormats[]=
1.91 +{
1.92 + "EX509Certificate",
1.93 + "EWTLSCertificate", // if specified as WTLS then subject key id is mandatory
1.94 + "0",
1.95 + 0
1.96 +};
1.97 +
1.98 +const char *goodCertOwnerTypes[]=
1.99 +{
1.100 + "\"ECACertificate\"",
1.101 + "\"EUserCertificate\"",
1.102 + "\"EPeerCertificate\"",
1.103 + "0",
1.104 + 0
1.105 +};
1.106 +
1.107 +const char *goodSubjectKeyIds[]=
1.108 +{
1.109 + "auto",
1.110 + "''",
1.111 + "'53:CC:80:C1:A2:EA:9C:94:17:B3:DE:38:44:63:64:E4:4D:99:2B:74'",
1.112 + 0
1.113 +};
1.114 +
1.115 +const char *goodIssuerKeyIds[] =
1.116 +{
1.117 + "auto",
1.118 + "''",
1.119 + "'53:CC:80:C1:A2:EA:9C:94:17:B3:DE:38:44:63:64:E4:4D:99:2B:74'",
1.120 + 0
1.121 +};
1.122 +
1.123 +const char *goodApplications[] =
1.124 +{
1.125 + "\"SW Install\"",
1.126 + "\"0x1000a8b6\"",
1.127 + 0
1.128 +};
1.129 +
1.130 +//good trusted values
1.131 +const char *goodTrusteds[] =
1.132 +{
1.133 + "\"true\"",
1.134 + "\"false\"",
1.135 + "0",
1.136 + "1",
1.137 + 0
1.138 +};
1.139 +
1.140 +//for swi cert store
1.141 +const char *goodCapabilitySets[]=
1.142 +{
1.143 + "TCB",
1.144 + "CommDD",
1.145 + "PowerMgmt",
1.146 + "MultimediaDD",
1.147 + "ReadDeviceData",
1.148 + "WriteDeviceData",
1.149 + "DRM",
1.150 + "TrustedUI",
1.151 + "ProtServ",
1.152 + "DiskAdmin",
1.153 + "NetworkControl",
1.154 + "AllFiles",
1.155 + "SwEvent",
1.156 + "NetworkServices",
1.157 + "LocalServices",
1.158 + "ReadUserData",
1.159 + "WriteUserData",
1.160 + "Location",
1.161 + "SurroundingsDD",
1.162 + "UserEnvironment",
1.163 + 0
1.164 +};
1.165 +
1.166 +//good mandatory
1.167 +const char *goodMandatory[]=
1.168 +{
1.169 + "\"true\"",
1.170 + "\"false\"",
1.171 + "0",
1.172 + "1",
1.173 + 0
1.174 +};
1.175 +
1.176 +//good system upgrade
1.177 +const char *goodSystemUpgrade[]=
1.178 +{
1.179 + "\"true\"",
1.180 + "\"false\"",
1.181 + "0",
1.182 + "1",
1.183 + 0
1.184 +};
1.185 +
1.186 +
1.187 +//for cacerts file
1.188 +const char *goodUids[]=
1.189 +{
1.190 + "0x100042ab", //SW Install
1.191 + "0x1000a8b6", // SW install Ocsp Signing
1.192 + "0x101f9b28", // Midlet Installation
1.193 + "0x1000183d", //Server Authentication
1.194 + 0
1.195 +};
1.196 +
1.197 +// for cert client store
1.198 +const char *goodAppNames[]=
1.199 +{
1.200 + "\"SW Install\"",
1.201 + "\"SW install Ocsp Signing\"",
1.202 + "\"Midlet Installation\"",
1.203 + "\"Server Authentication\"",
1.204 + 0
1.205 +};
1.206 +
1.207 +const char *goodActionType[]=
1.208 +{
1.209 + "init",
1.210 + "listcert",
1.211 + 0
1.212 +};
1.213 +
1.214 +
1.215 +const char *goodOwnerType[]=
1.216 +{
1.217 + "ca",
1.218 + "User",
1.219 + "Peer",
1.220 + "0",
1.221 + 0
1.222 +};
1.223 +
1.224 +//Filter type required for rcsa
1.225 +const char *goodRcsaFilterType[]=
1.226 +{
1.227 + "Root5CA",
1.228 + "X509",
1.229 + "ca",
1.230 + "53cc80c1a2ea9c9417b3de38446364e44d992b74",
1.231 + "549",
1.232 + "1",
1.233 + 0
1.234 +};
1.235 +
1.236 +
1.237 +// applications names used in the store
1.238 +const char *goodcertclient_array[]=
1.239 +{
1.240 + "SW Install",
1.241 + "SW install Ocsp Signing",
1.242 + "Midlet Installation",
1.243 + "Server Authentication",
1.244 + 0
1.245 +};
1.246 +
1.247 +
1.248 +//hex array of uid
1.249 +const char *gooduid_array[]=
1.250 +{
1.251 + "0x100042ab", //uid of SWInstall
1.252 + "0x1000a8b6", //Uid of SW Install OCSP Signing
1.253 + "0x101f9b28", //Uid of Midlet Installation
1.254 + "0x1000183d" //Uid of Server Authentication
1.255 +};
1.256 +
1.257 +// decimal arry of uid
1.258 +const char *gooddecimalUid_array[]=
1.259 +{
1.260 + "268452523", //uid of SWInstall
1.261 + "268478646", //Uid of SW Install OCSP Signing
1.262 + "270506792", //Uid of Midlet Installation
1.263 + "268441661" //Uid of Server Authentication
1.264 +};
1.265 +
1.266 +const char *goodTrust[]=
1.267 +{
1.268 + "1",
1.269 + "0"
1.270 +};
1.271 +
1.272 +const char *mandatory[]=
1.273 +{
1.274 + "ETrue",
1.275 + "EFalse",
1.276 + "0",
1.277 + "1"
1.278 +};
1.279 +
1.280 +const char *systemUpgrade[]=
1.281 +{
1.282 + "ETrue",
1.283 + "EFalse",
1.284 + "1",
1.285 + "0"
1.286 +};
1.287 +
1.288 +const char *deletable[]=
1.289 +{
1.290 + "ETrue",
1.291 + "EFalse",
1.292 + "0",
1.293 + "1"
1.294 +};
1.295 +
1.296 +// End of file
1.297 +
1.298 +