os/security/securityanddataprivacytools/securitytools/certapp/test/tcertapp/tcertapp_bad.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 * bad Labels
    16 *
    17 */
    18 
    19 
    20 const char *badLabels[]=
    21 {
    22 	"\"LetsTryLabelNameGreaterThen64CharactersToTestTheCertAppToolSymbianA\"", // >64 bytes
    23 	"\" \"",        //no name in double quotes
    24 	"\"!@#$%%^&\"", //junk value
    25 	"   ",          // just empty space
    26 	0
    27 };
    28 
    29 //bad deletables
    30 const char *badDeletables[]=
    31 {
    32 	"\" \"",   //no value
    33 	"\"!@#\"", //junk value
    34 	"Zero",       //zero val
    35 	0
    36 };
    37 
    38 //bad formats
    39 const char *badFormats[]=
    40 {
    41 	"EUnknownCertificate", //unsupported
    42 	"EX968CertificateUrl", //unsupported
    43 	"EWTLSCertificateUrl", //unsupported
    44 	" ",				   //unsupported
    45 	0
    46 };
    47 
    48 //bad owner type
    49 const char *badCertOwnerTypes[]=
    50 {
    51 	"\" \"",      //no name
    52 	"\"@$@#$\"",  //junk value
    53 	"",           //empty 
    54 	0
    55 };
    56 
    57 //bad subject key id
    58 const char *badSubjectKeyIds[]=
    59 {
    60 	" ",
    61 	"@%#%$%",
    62 	"'3333CC:80:C1:A2:323EA::::64:E4:4D:99:2B:74'",
    63 	0
    64 };
    65 
    66 //bad issuer key id
    67 const char *badIssuerKeyIds[] =
    68 {
    69 	" ",
    70 	"@%#%$%",
    71 	"'3333CC:80:C1:A2:323EA::::64:E4:4D:99:2B:74'",
    72 	0
    73 };
    74 
    75 //bad application
    76 const char *badApplications[] = 
    77 {
    78 	"\"Install\"",
    79 	"\"xxxxxxxx\"",
    80 	0
    81 };
    82 
    83 //bad trusted
    84 const char *badTrusteds[] =
    85 {
    86 	"",
    87 	"\"$@#$@\"",
    88 	"\"trust\"",
    89 	0
    90 };
    91 
    92 //bad array for certclient
    93 const char *badCert_array[]= 
    94 {
    95 	"\" \"",
    96 	"\"@#$#%%\"",
    97 	"0",
    98 	0
    99 };
   100 
   101 //bad array for cacerts
   102 const char *bademu_cacerts_array[]=
   103 {
   104 	"\" \"",
   105 	"\"@#$#%%\"",
   106 	"0",
   107 	0
   108 };
   109 	
   110 //bad capabilites
   111 const char *badCapabilitySets[]=
   112 {
   113 	"TTCB",
   114 	"ProtttServ",
   115 	"@$%%#$%$#",
   116 	"XXXXXXX",
   117 	" ",
   118 	0
   119 };
   120 
   121 const char *capabilitySets[]=
   122 {
   123 	"TCB",	
   124 	"CommDD",
   125 	"PowerMgmt",
   126 	"MultimediaDD",
   127 	"ReadDeviceData",
   128 	0
   129 };
   130 
   131 //bad mandatory values
   132 const char *badMandatory[]=
   133 {
   134 	"\" \"",
   135 	"\"@#@$#$\"",
   136 	" ",
   137 	0
   138 };
   139 
   140 //bad system upgrad values
   141 const char *badSystemUpgrade[]=
   142 {
   143 	"\" \"",
   144 	"\"@#@$#$\"",
   145 	" ",
   146 	0
   147 };
   148 
   149 //for cacerts file
   150 const char *badUids[]=
   151 {
   152 	"0xxxxxxxxx",	  //SW Install
   153 	"0x@$##%#$%",  // SW install Ocsp Signing
   154 	"          ",   //Server Authentication
   155 	"AlphabetEn",
   156 	0
   157 };
   158 
   159 
   160 const char *appNames[]=
   161 {
   162 	"\"SW Install\"",
   163 	"\"SW install Ocsp Signing\"",
   164 	"\"Midlet Installation\"",
   165 	"\"Server Authentication\"",
   166 	0
   167 };
   168 
   169 //bad action names for the emulator tests
   170 const char *badActionName[]=
   171 {
   172 	"TEST",
   173 	"$#%$#%&*",
   174 	" ",
   175 	0
   176 };
   177 
   178 //bad action types 
   179 const char *badActionType[]=
   180 {
   181 	"illegal name",
   182 	"@#$%&*",
   183 	" ",
   184 	0
   185 };
   186 
   187 //bad owner type
   188 const char *badOwnerType[]=
   189 {
   190 	"Test",
   191 	"@#$%&*",
   192 	"",
   193 	0
   194 };
   195 
   196 //bad rcsa filter type
   197 const char *badRcsaFilterType[]=
   198 {
   199 	"TestName",
   200 	"X123",
   201 	"test",
   202 	"532324335454656565757",
   203 	"xxx",
   204 	"",
   205 	0
   206 };
   207 
   208 
   209 //bad applications names used for the certclient
   210 const char *badcertclient_array[]=
   211 {
   212 	"\"XXXXXXXXXXXXX\"",
   213 	"\"@#$@#%%#^%$^$%\"",
   214 	"\"   \"",
   215 	"0",
   216 	0
   217 };
   218 
   219 //bad app names used for swi certstore
   220 const char *badSwiCert_array[]=
   221 {
   222 	"\"Test Install\"",
   223 	"\"XXXXXXXXXXXXX\"",
   224 	"\"@#$@#%%#^%$^$%\"",
   225 	"\"   \"",
   226 	"0",
   227 	0
   228 };
   229 
   230 
   231 const char *decimalUid_array[]= 
   232 {
   233 	"268452523", //uid of SWInstall
   234 	"268478646", //Uid of SW Install OCSP Signing
   235 	"270506792", //Uid of Midlet Installation
   236 	"268441661",  //Uid of Server Authentication
   237 	0
   238 };
   239 
   240 const char *badDatafilePath[]=
   241 {
   242 	"c:\\test",
   243 	"!:\\@:$%#$",
   244 	" ",
   245 	0
   246 };
   247 
   248 // End of file