os/security/securityanddataprivacytools/securitytools/certapp/test/tcertapp/tcertapp_good.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2008-2009 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: 
    15 * Good/Supportted values for labels
    16 *
    17 */
    18 
    19 
    20 
    21 const char *goodLabels[]=
    22 {
    23   	"\"SymbianA\"",
    24   	"\"SymbianB\"",
    25   	"\"SymbianC\"",
    26   	"\"SymbianD\"",
    27   	"\"Label With Spaces\"",
    28   	"\"label with a quote \\\" char in it\"",   
    29   	//"\"label with backslash \\\\ char in it \"",
    30 	0                       //null termination
    31 };
    32 
    33 
    34 const char *goodCert_array[]= 
    35 {
    36   	"\"Root5CA\"",
    37   	"\"SymbianTestDSACA\"",
    38   	"\"SymbianTestRSACA\"",
    39   	"\"0\"",
    40   	"\"Label With Spaces\"",
    41   	"\"label with a quote \\\" char in it\"",   
    42   	//"\"label with backslash \\\\ char in it \"",
    43 	0
    44 };
    45 
    46 
    47 
    48 //good deletables
    49 const char *goodDeletables[]=
    50 {
    51 	"\"true\"",
    52 	"\"false\"",
    53 	"\"0\"",
    54 	"\"1\"",
    55 	"\"ETrue\"",
    56 	"\"EFalse\"",
    57 	0
    58 };
    59 
    60 
    61 const char *goodEmuCert_array[]= 
    62 {
    63 	"Root5CA",
    64 	"SymbianTestDSACA",
    65 	"SymbianTestRSACA",
    66 	"0",
    67 	"Label With Spaces",
    68 	"label with a quote \" char in it",   
    69 	//"label with backslash \\\\ char in it ",
    70 	0
    71 };
    72 
    73 
    74 const char *goodSwiCert_array[]=
    75 {
    76   	"SymbianA",
    77   	"SymbianB",
    78   	"SymbianC",
    79   	"SymbianD",
    80   	"Label With Spaces",
    81   	"label with a quote \" char in it",   
    82   	//"label with backslash \\ char in it ",
    83 	0                       //null termination
    84 };
    85 
    86 
    87 const char *goodFormats[]=
    88 {
    89 	"EX509Certificate",
    90 	"EWTLSCertificate", // if specified as WTLS then subject key id is mandatory
    91 	"0",
    92 	0
    93 };
    94 		
    95 const char *goodCertOwnerTypes[]=
    96 {
    97 	"\"ECACertificate\"",
    98 	"\"EUserCertificate\"",
    99 	"\"EPeerCertificate\"",
   100 	"0",
   101 	0
   102 };
   103 		
   104 const char *goodSubjectKeyIds[]=
   105 {
   106 	"auto",
   107 	"''", 
   108 	"'53:CC:80:C1:A2:EA:9C:94:17:B3:DE:38:44:63:64:E4:4D:99:2B:74'",
   109 	0
   110 };
   111 		
   112 const char *goodIssuerKeyIds[] =
   113 {
   114 	"auto",
   115 	"''", 
   116 	"'53:CC:80:C1:A2:EA:9C:94:17:B3:DE:38:44:63:64:E4:4D:99:2B:74'",
   117 	0
   118 };
   119 
   120 const char *goodApplications[] = 
   121 {
   122 	"\"SW Install\"",
   123 	"\"0x1000a8b6\"",
   124 	0
   125 };
   126 
   127 //good trusted values
   128 const char *goodTrusteds[] =
   129 {
   130 	"\"true\"",
   131 	"\"false\"",
   132 	"0",
   133 	"1",
   134 	0
   135 };
   136 
   137 //for swi cert store
   138 const char *goodCapabilitySets[]=
   139 {
   140 	"TCB",
   141 	"CommDD",
   142 	"PowerMgmt",
   143 	"MultimediaDD",
   144 	"ReadDeviceData",
   145 	"WriteDeviceData",
   146 	"DRM",
   147 	"TrustedUI",
   148 	"ProtServ",
   149 	"DiskAdmin",
   150 	"NetworkControl",
   151 	"AllFiles",
   152 	"SwEvent",
   153 	"NetworkServices",
   154 	"LocalServices",
   155 	"ReadUserData",
   156 	"WriteUserData",
   157 	"Location",
   158 	"SurroundingsDD",
   159 	"UserEnvironment",
   160 	0
   161 };
   162 
   163 //good mandatory
   164 const char *goodMandatory[]=
   165 {
   166 	"\"true\"",
   167 	"\"false\"",
   168 	"0",
   169 	"1",
   170 	0
   171 };
   172 
   173 //good system upgrade
   174 const char *goodSystemUpgrade[]=
   175 {
   176 	"\"true\"",
   177 	"\"false\"",
   178 	"0",
   179 	"1",
   180 	0
   181 };
   182 
   183 
   184 //for cacerts file
   185 const char *goodUids[]=
   186 {
   187 	"0x100042ab",	  //SW Install
   188 	"0x1000a8b6",  // SW install Ocsp Signing
   189 	"0x101f9b28",  // Midlet Installation
   190 	"0x1000183d",   //Server Authentication
   191 	0
   192 };
   193 
   194 // for cert client store
   195 const char *goodAppNames[]=
   196 {
   197 	"\"SW Install\"",
   198 	"\"SW install Ocsp Signing\"",
   199 	"\"Midlet Installation\"",
   200 	"\"Server Authentication\"",
   201 	0
   202 };
   203 
   204 const char *goodActionType[]=
   205 {
   206 	"init",
   207 	"listcert",
   208 	0
   209 };
   210 
   211 
   212 const char *goodOwnerType[]=
   213 {
   214 	"ca",
   215 	"User",
   216 	"Peer",
   217 	"0",
   218 	0
   219 };
   220 
   221 //Filter type required for rcsa
   222 const char *goodRcsaFilterType[]=
   223 {
   224 	"Root5CA",
   225 	"X509",
   226 	"ca",
   227 	"53cc80c1a2ea9c9417b3de38446364e44d992b74",
   228 	"549",
   229 	"1",
   230 	0
   231 };
   232 
   233 
   234 // applications names used in the store
   235 const char *goodcertclient_array[]=
   236 {
   237 	"SW Install",
   238 	"SW install Ocsp Signing",
   239 	"Midlet Installation",
   240 	"Server Authentication",
   241 	0
   242 };
   243 
   244 
   245 //hex array of uid 
   246 const char *gooduid_array[]= 
   247 {
   248 	"0x100042ab", //uid of SWInstall
   249 	"0x1000a8b6", //Uid of SW Install OCSP Signing
   250 	"0x101f9b28", //Uid of Midlet Installation
   251 	"0x1000183d"  //Uid of Server Authentication
   252 };
   253 
   254 // decimal arry of uid
   255 const char *gooddecimalUid_array[]= 
   256 {
   257 	"268452523", //uid of SWInstall
   258 	"268478646", //Uid of SW Install OCSP Signing
   259 	"270506792", //Uid of Midlet Installation
   260 	"268441661"  //Uid of Server Authentication
   261 };
   262 
   263 const char *goodTrust[]=
   264 {
   265 	"1",
   266 	"0"
   267 };
   268 
   269 const char *mandatory[]=
   270 {
   271 	"ETrue",
   272 	"EFalse",
   273 	"0",
   274 	"1"
   275 };
   276 
   277 const char *systemUpgrade[]=
   278 {
   279 	"ETrue",
   280 	"EFalse",
   281 	"1",
   282 	"0"
   283 };
   284 
   285 const char *deletable[]=
   286 {
   287 	"ETrue",
   288 	"EFalse",
   289 	"0",
   290 	"1"
   291 };
   292 
   293 // End of file
   294 
   295