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