os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/apipolicing.ini
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/apipolicing.ini Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,1095 @@
1.4 +[SEC-TCERTSTORE-APIPOLICING-0.1.2-001]
1.5 +<actionbody>
1.6 + <name>A1</name>
1.7 + <uid>1</uid>
1.8 +</actionbody>
1.9 +
1.10 +[SEC-TCERTSTORE-APIPOLICING-0.1.3-001]
1.11 +<actionbody>
1.12 + <name>A2</name>
1.13 + <uid>2</uid>
1.14 +</actionbody>
1.15 +
1.16 +[SEC-TCERTSTORE-APIPOLICING-0.1.4-001]
1.17 +<actionbody>
1.18 + <name>A3</name>
1.19 + <uid>3</uid>
1.20 +</actionbody>
1.21 +
1.22 +[SEC-TCERTSTORE-APIPOLICING-0.1.5-001]
1.23 +<actionbody>
1.24 + <name>A4</name>
1.25 + <uid>4</uid>
1.26 +</actionbody>
1.27 +
1.28 +[SEC-TCERTSTORE-APIPOLICING-0.2-001]
1.29 +<actionbody>
1.30 + <mode>write</mode>
1.31 +</actionbody>
1.32 +
1.33 +[SEC-TCERTSTORE-APIPOLICING-0.3.1-001]
1.34 +<actionbody>
1.35 + <storeindex>0</storeindex>
1.36 +</actionbody>
1.37 +<actionresult>
1.38 + <numberofstores>1</numberofstores>
1.39 +</actionresult>
1.40 +
1.41 +[SEC-TCERTSTORE-APIPOLICING-0.3.2-001]
1.42 +<actionbody>
1.43 + <storeindex>0</storeindex>
1.44 +</actionbody>
1.45 +<actionresult>
1.46 + <numberofstores>0</numberofstores>
1.47 +</actionresult>
1.48 +
1.49 +[SEC-TCERTSTORE-APIPOLICING-0.3.3-001]
1.50 +<actionbody>
1.51 + <storeindex>0</storeindex>
1.52 +</actionbody>
1.53 +<actionresult>
1.54 + <numberofstores>1</numberofstores>
1.55 +</actionresult>
1.56 +
1.57 +[SEC-TCERTSTORE-APIPOLICING-0.4-001]
1.58 +<actionbody>
1.59 + <label>*.*</label>
1.60 + <deleteallcerts>1</deleteallcerts>
1.61 +</actionbody>
1.62 +
1.63 +[SEC-TCERTSTORE-APIPOLICING-0.5-001]
1.64 +<actionbody>
1.65 + <ImportData>rsacertkey1.txt</ImportData>
1.66 + <keyusage>AllUsagesButNR</keyusage>
1.67 + <keylabel>*IMPORTED* RSA key 1</keylabel>
1.68 + <keyaccesstype>Extractable</keyaccesstype>
1.69 +</actionbody>
1.70 +
1.71 +[SEC-TCERTSTORE-APIPOLICING-1.1-001]
1.72 +<actionbody>
1.73 + <testexe>t_certstore.exe</testexe>
1.74 + <excludedcapabilities>
1.75 + <capability>TCB</capability>
1.76 + </excludedcapabilities>
1.77 + <policy>
1.78 + <capability>WriteDeviceData</capability>
1.79 + </policy>
1.80 +
1.81 + <preactions>
1.82 + <action>
1.83 + <actionname>Opening a writable certificate store manager</actionname>
1.84 + <actiontype>init</actiontype>
1.85 + <actionbody>
1.86 + <mode>write</mode>
1.87 + </actionbody>
1.88 + <actionresult>
1.89 + <return>KErrNone</return>
1.90 + </actionresult>
1.91 + </action>
1.92 + </preactions>
1.93 +
1.94 + <passactions>
1.95 + <action>
1.96 + <actionname>Add the certificate CAX1</actionname>
1.97 + <actiontype>addcert</actiontype>
1.98 + <actionbody>
1.99 + <format>X509</format>
1.100 + <label>CAX1</label>
1.101 + <issuerkey></issuerkey>
1.102 + <subjectkey></subjectkey>
1.103 + <certstore>0</certstore>
1.104 + <certfile>c:\unifiedcertstore2\CAX1.cer</certfile>
1.105 + <certowner>ca</certowner>
1.106 + </actionbody>
1.107 + <actionresult>
1.108 + <return>KErrNone</return>
1.109 + </actionresult>
1.110 + </action>
1.111 +
1.112 + <action>
1.113 + <actionname>Get the list of certificates</actionname>
1.114 + <actiontype>listcert</actiontype>
1.115 + <actionbody>
1.116 + <filter>
1.117 + <ownertype>ca</ownertype>
1.118 + </filter>
1.119 + </actionbody>
1.120 + <actionresult>
1.121 + <return>KErrNone</return>
1.122 + <CCTCertInfo><label>CAX1</label></CCTCertInfo>
1.123 + </actionresult>
1.124 + </action>
1.125 + </passactions>
1.126 +
1.127 + <failactions>
1.128 + <action>
1.129 + <actionname>Add the certificate CAX1</actionname>
1.130 + <actiontype>addcert</actiontype>
1.131 + <actionbody>
1.132 + <format>X509</format>
1.133 + <label>CAX1</label>
1.134 + <issuerkey></issuerkey>
1.135 + <subjectkey></subjectkey>
1.136 + <certstore>0</certstore>
1.137 + <certfile>c:\unifiedcertstore2\CAX1.cer</certfile>
1.138 + <certowner>ca</certowner>
1.139 + </actionbody>
1.140 + <actionresult>
1.141 + <return>KErrPermissionDenied</return>
1.142 + </actionresult>
1.143 + </action>
1.144 +
1.145 + <action>
1.146 + <actionname>Get the list of certificates</actionname>
1.147 + <actiontype>listcert</actiontype>
1.148 + <actionbody>
1.149 + <filter>
1.150 + <ownertype>ca</ownertype>
1.151 + </filter>
1.152 + </actionbody>
1.153 + <actionresult>
1.154 + <return>KErrNone</return>
1.155 + </actionresult>
1.156 + </action>
1.157 + </failactions>
1.158 +
1.159 + <postactions>
1.160 + <action>
1.161 + <actionname>Deleting the writable certificate store manager</actionname>
1.162 + <actiontype>delete</actiontype>
1.163 + <actionbody></actionbody>
1.164 + <actionresult>
1.165 + <return>KErrNone</return>
1.166 + </actionresult>
1.167 + </action>
1.168 + </postactions>
1.169 +</actionbody>
1.170 +
1.171 +[SEC-TCERTSTORE-APIPOLICING-1.2-001]
1.172 +<actionbody>
1.173 + <testexe>t_certstore.exe</testexe>
1.174 + <excludedcapabilities>
1.175 + <capability>TCB</capability>
1.176 + </excludedcapabilities>
1.177 + <policy>
1.178 + <capability>WriteDeviceData</capability>
1.179 + </policy>
1.180 +
1.181 + <preactions>
1.182 + <action>
1.183 + <actionname>Opening a writable certificate store manager</actionname>
1.184 + <actiontype>init</actiontype>
1.185 + <actionbody>
1.186 + <mode>write</mode>
1.187 + </actionbody>
1.188 + <actionresult>
1.189 + <return>KErrNone</return>
1.190 + </actionresult>
1.191 + </action>
1.192 + </preactions>
1.193 +
1.194 + <passactions>
1.195 + <action>
1.196 + <actionname>Set applications to the CAX1 certificate</actionname>
1.197 + <actiontype>setapplications</actiontype>
1.198 + <actionbody>
1.199 + <label>CAX1</label>
1.200 + <uid>2 3</uid>
1.201 + </actionbody>
1.202 + <actionresult>
1.203 + <return>KErrNone</return>
1.204 + </actionresult>
1.205 + </action>
1.206 +
1.207 + <action>
1.208 + <actionname>Set the trust for CAX1</actionname>
1.209 + <actiontype>settrust</actiontype>
1.210 + <actionbody>
1.211 + <label>CAX1</label>
1.212 + <trust>1</trust>
1.213 + </actionbody>
1.214 + <actionresult>
1.215 + <return>KErrNone</return>
1.216 + </actionresult>
1.217 + </action>
1.218 +
1.219 + <action>
1.220 + <actionname>Get applications for CAX1</actionname>
1.221 + <actiontype>getapplications</actiontype>
1.222 + <actionbody>
1.223 + <label>CAX1</label>
1.224 + </actionbody>
1.225 + <actionresult>
1.226 + <return>KErrNone</return>
1.227 + <uid>2 3</uid>
1.228 + </actionresult>
1.229 + </action>
1.230 +
1.231 + <action>
1.232 + <actionname>Get the trust for CAX1</actionname>
1.233 + <actiontype>gettrusters</actiontype>
1.234 + <actionbody>
1.235 + <label>CAX1</label>
1.236 + </actionbody>
1.237 + <actionresult>
1.238 + <return>KErrNone</return>
1.239 + <trust>1</trust>
1.240 + </actionresult>
1.241 + </action>
1.242 + </passactions>
1.243 +
1.244 + <failactions>
1.245 + <action>
1.246 + <actionname>Set applications to the CAX1 certificate</actionname>
1.247 + <actiontype>setapplications</actiontype>
1.248 + <actionbody>
1.249 + <label>CAX1</label>
1.250 + <uid>2 3</uid>
1.251 + </actionbody>
1.252 + <actionresult>
1.253 + <return>KErrPermissionDenied</return>
1.254 + </actionresult>
1.255 + </action>
1.256 +
1.257 + <action>
1.258 + <actionname>Set the trust for CAX1</actionname>
1.259 + <actiontype>settrust</actiontype>
1.260 + <actionbody>
1.261 + <label>CAX1</label>
1.262 + <trust>1</trust>
1.263 + </actionbody>
1.264 + <actionresult>
1.265 + <return>KErrPermissionDenied</return>
1.266 + </actionresult>
1.267 + </action>
1.268 +
1.269 + <action>
1.270 + <actionname>Get applications for CAX1</actionname>
1.271 + <actiontype>getapplications</actiontype>
1.272 + <actionbody>
1.273 + <label>CAX1</label>
1.274 + </actionbody>
1.275 + <actionresult>
1.276 + <return>KErrNone</return>
1.277 + <uid></uid>
1.278 + </actionresult>
1.279 + </action>
1.280 +
1.281 + <action>
1.282 + <actionname>Get the trust for CAX1</actionname>
1.283 + <actiontype>gettrusters</actiontype>
1.284 + <actionbody>
1.285 + <label>CAX1</label>
1.286 + </actionbody>
1.287 + <actionresult>
1.288 + <return>KErrNone</return>
1.289 + <trust>0</trust>
1.290 + </actionresult>
1.291 + </action>
1.292 + </failactions>
1.293 +
1.294 + <postactions>
1.295 + <action>
1.296 + <actionname>Deleting the writable certificate store manager</actionname>
1.297 + <actiontype>delete</actiontype>
1.298 + <actionbody></actionbody>
1.299 + <actionresult>
1.300 + <return>KErrNone</return>
1.301 + </actionresult>
1.302 + </action>
1.303 + </postactions>
1.304 +</actionbody>
1.305 +
1.306 +[SEC-TCERTSTORE-APIPOLICING-1.3-001]
1.307 +<actionbody>
1.308 + <testexe>t_certstore.exe</testexe>
1.309 + <excludedcapabilities>
1.310 + <capability>TCB</capability>
1.311 + </excludedcapabilities>
1.312 + <policy>
1.313 + </policy>
1.314 +
1.315 + <preactions>
1.316 + <action>
1.317 + <actionname>Opening a writable certificate store manager</actionname>
1.318 + <actiontype>init</actiontype>
1.319 + <actionbody>
1.320 + <mode>write</mode>
1.321 + </actionbody>
1.322 + <actionresult>
1.323 + <return>KErrNone</return>
1.324 + </actionresult>
1.325 + </action>
1.326 + </preactions>
1.327 +
1.328 + <passactions>
1.329 + <action>
1.330 + <actionname>Get applications for CAX1</actionname>
1.331 + <actiontype>getapplications</actiontype>
1.332 + <actionbody>
1.333 + <label>CAX1</label>
1.334 + </actionbody>
1.335 + <actionresult>
1.336 + <return>KErrNone</return>
1.337 + <uid>2 3</uid>
1.338 + </actionresult>
1.339 + </action>
1.340 +
1.341 + <action>
1.342 + <actionname>Get the trust for CAX1</actionname>
1.343 + <actiontype>gettrusters</actiontype>
1.344 + <actionbody>
1.345 + <label>CAX1</label>
1.346 + </actionbody>
1.347 + <actionresult>
1.348 + <return>KErrNone</return>
1.349 + <trust>1</trust>
1.350 + </actionresult>
1.351 + </action>
1.352 +
1.353 + <action>
1.354 + <actionname>Get the list of certificates</actionname>
1.355 + <actiontype>listcert</actiontype>
1.356 + <actionbody>
1.357 + <filter>
1.358 + <ownertype>ca</ownertype>
1.359 + </filter>
1.360 + </actionbody>
1.361 + <actionresult>
1.362 + <return>KErrNone</return>
1.363 + <CCTCertInfo><label>CAX1</label></CCTCertInfo>
1.364 + </actionresult>
1.365 + </action>
1.366 +
1.367 + <action>
1.368 + <actionname>Retrieve CAX1 cert</actionname>
1.369 + <actiontype>retrieve</actiontype>
1.370 + <actionbody>
1.371 + <label>CAX1</label>
1.372 + </actionbody>
1.373 + <actionresult>
1.374 + <return>KErrNone</return>
1.375 + </actionresult>
1.376 + </action>
1.377 + </passactions>
1.378 +
1.379 + <failactions>
1.380 + </failactions>
1.381 +
1.382 + <postactions>
1.383 + <action>
1.384 + <actionname>Deleting the writable certificate store manager</actionname>
1.385 + <actiontype>delete</actiontype>
1.386 + <actionbody></actionbody>
1.387 + <actionresult>
1.388 + <return>KErrNone</return>
1.389 + </actionresult>
1.390 + </action>
1.391 + </postactions>
1.392 +</actionbody>
1.393 +
1.394 +[SEC-TCERTSTORE-APIPOLICING-1.4-001]
1.395 +<actionbody>
1.396 + <testexe>t_certstore.exe</testexe>
1.397 + <excludedcapabilities>
1.398 + <capability>TCB</capability>
1.399 + </excludedcapabilities>
1.400 + <policy>
1.401 + <capability>WriteDeviceData</capability>
1.402 + </policy>
1.403 +
1.404 + <preactions>
1.405 + <action>
1.406 + <actionname>Opening a writable certificate store manager</actionname>
1.407 + <actiontype>init</actiontype>
1.408 + <actionbody>
1.409 + <mode>write</mode>
1.410 + </actionbody>
1.411 + <actionresult>
1.412 + <return>KErrNone</return>
1.413 + </actionresult>
1.414 + </action>
1.415 + </preactions>
1.416 +
1.417 + <passactions>
1.418 + <action>
1.419 + <actionname>Remove the certificate CAX1</actionname>
1.420 + <actiontype>deletecert</actiontype>
1.421 + <actionbody>
1.422 + <certtype>ca</certtype>
1.423 + <label>CAX1</label>
1.424 + </actionbody>
1.425 + <actionresult>
1.426 + <return>KErrNone</return>
1.427 + </actionresult>
1.428 + </action>
1.429 +
1.430 + <action>
1.431 + <actionname>Get the list of certificates</actionname>
1.432 + <actiontype>listcert</actiontype>
1.433 + <actionbody>
1.434 + <filter>
1.435 + <ownertype>ca</ownertype>
1.436 + </filter>
1.437 + </actionbody>
1.438 + <actionresult>
1.439 + <return>KErrNone</return>
1.440 + </actionresult>
1.441 + </action>
1.442 + </passactions>
1.443 +
1.444 + <failactions>
1.445 + <action>
1.446 + <actionname>Remove the certificate CAX1</actionname>
1.447 + <actiontype>deletecert</actiontype>
1.448 + <actionbody>
1.449 + <certtype>ca</certtype>
1.450 + <label>CAX1</label>
1.451 + </actionbody>
1.452 + <actionresult>
1.453 + <return>KErrPermissionDenied</return>
1.454 + </actionresult>
1.455 + </action>
1.456 +
1.457 + <action>
1.458 + <actionname>Get the list of certificates</actionname>
1.459 + <actiontype>listcert</actiontype>
1.460 + <actionbody>
1.461 + <filter>
1.462 + <ownertype>ca</ownertype>
1.463 + </filter>
1.464 + </actionbody>
1.465 + <actionresult>
1.466 + <CCTCertInfo><label>CAX1</label></CCTCertInfo>
1.467 + <return>KErrNone</return>
1.468 + </actionresult>
1.469 + </action>
1.470 + </failactions>
1.471 +
1.472 + <postactions>
1.473 + <action>
1.474 + <actionname>Deleting the writable certificate store manager</actionname>
1.475 + <actiontype>delete</actiontype>
1.476 + <actionbody></actionbody>
1.477 + <actionresult>
1.478 + <return>KErrNone</return>
1.479 + </actionresult>
1.480 + </action>
1.481 + </postactions>
1.482 +</actionbody>
1.483 +
1.484 +[SEC-TCERTSTORE-APIPOLICING-2.1-001]
1.485 +<actionbody>
1.486 + <testexe>t_certstore.exe</testexe>
1.487 + <excludedcapabilities>
1.488 + <capability>TCB</capability>
1.489 + </excludedcapabilities>
1.490 + <policy>
1.491 + <capability>ReadUserData</capability>
1.492 + <capability>WriteUserData</capability>
1.493 + </policy>
1.494 +
1.495 + <preactions>
1.496 + <action>
1.497 + <actionname>Opening a writable certificate store manager</actionname>
1.498 + <actiontype>init</actiontype>
1.499 + <actionbody>
1.500 + <mode>write</mode>
1.501 + </actionbody>
1.502 + <actionresult>
1.503 + <return>KErrNone</return>
1.504 + </actionresult>
1.505 + </action>
1.506 + </preactions>
1.507 +
1.508 + <failactions>
1.509 + <action>
1.510 + <actionname>Add the certificate rsacert1</actionname>
1.511 + <actiontype>addcert</actiontype>
1.512 + <actionbody>
1.513 + <format>X509</format>
1.514 + <label>rsacert1</label>
1.515 + <issuerkey></issuerkey>
1.516 + <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey>
1.517 + <certstore>0</certstore>
1.518 + <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile>
1.519 + <certowner>user</certowner>
1.520 + </actionbody>
1.521 + <actionresult>
1.522 + <return>KErrPermissionDenied</return>
1.523 + </actionresult>
1.524 + </action>
1.525 +
1.526 + <action>
1.527 + <actionname>Get the list of certificates</actionname>
1.528 + <actiontype>listcert</actiontype>
1.529 + <actionbody>
1.530 + <filter>
1.531 + <ownertype>user</ownertype>
1.532 + </filter>
1.533 + </actionbody>
1.534 + <actionresult>
1.535 + <return>KErrNone</return>
1.536 + </actionresult>
1.537 + </action>
1.538 + </failactions>
1.539 +
1.540 + <passactions>
1.541 + <action>
1.542 + <actionname>Add the certificate rsacert1</actionname>
1.543 + <actiontype>addcert</actiontype>
1.544 + <actionbody>
1.545 + <format>X509</format>
1.546 + <label>rsacert1</label>
1.547 + <issuerkey></issuerkey>
1.548 + <subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey>
1.549 + <certstore>0</certstore>
1.550 + <certfile>c:\unifiedcertstore2\rsacert1.cer</certfile>
1.551 + <certowner>user</certowner>
1.552 + </actionbody>
1.553 + <actionresult>
1.554 + <return>KErrNone</return>
1.555 + </actionresult>
1.556 + </action>
1.557 +
1.558 + <action>
1.559 + <actionname>Get the list of certificates</actionname>
1.560 + <actiontype>listcert</actiontype>
1.561 + <actionbody>
1.562 + <filter>
1.563 + <ownertype>user</ownertype>
1.564 + </filter>
1.565 + </actionbody>
1.566 + <actionresult>
1.567 + <CCTCertInfo><label>rsacert1</label></CCTCertInfo>
1.568 + <return>KErrNone</return>
1.569 + </actionresult>
1.570 + </action>
1.571 + </passactions>
1.572 +
1.573 + <postactions>
1.574 + <action>
1.575 + <actionname>Deleting the writable certificate store manager</actionname>
1.576 + <actiontype>delete</actiontype>
1.577 + <actionbody></actionbody>
1.578 + <actionresult>
1.579 + <return>KErrNone</return>
1.580 + </actionresult>
1.581 + </action>
1.582 + </postactions>
1.583 +</actionbody>
1.584 +
1.585 +[SEC-TCERTSTORE-APIPOLICING-2.2-001]
1.586 +<actionbody>
1.587 + <testexe>t_certstore.exe</testexe>
1.588 + <excludedcapabilities>
1.589 + <capability>TCB</capability>
1.590 + </excludedcapabilities>
1.591 + <policy>
1.592 + </policy>
1.593 +
1.594 + <preactions>
1.595 + <action>
1.596 + <actionname>Opening a writable certificate store manager</actionname>
1.597 + <actiontype>init</actiontype>
1.598 + <actionbody>
1.599 + <mode>write</mode>
1.600 + </actionbody>
1.601 + <actionresult>
1.602 + <return>KErrNone</return>
1.603 + </actionresult>
1.604 + </action>
1.605 + </preactions>
1.606 +
1.607 + <passactions>
1.608 + <action>
1.609 + <actionname>Get the list of certificates</actionname>
1.610 + <actiontype>listcert</actiontype>
1.611 + <actionbody>
1.612 + <filter>
1.613 + <ownertype>user</ownertype>
1.614 + </filter>
1.615 + </actionbody>
1.616 + <actionresult>
1.617 + <return>KErrNone</return>
1.618 + <CCTCertInfo><label>rsacert1</label></CCTCertInfo>
1.619 + </actionresult>
1.620 + </action>
1.621 + </passactions>
1.622 +
1.623 + <failactions>
1.624 + </failactions>
1.625 +
1.626 + <postactions>
1.627 + <action>
1.628 + <actionname>Deleting the writable certificate store manager</actionname>
1.629 + <actiontype>delete</actiontype>
1.630 + <actionbody></actionbody>
1.631 + <actionresult>
1.632 + <return>KErrNone</return>
1.633 + </actionresult>
1.634 + </action>
1.635 + </postactions>
1.636 +</actionbody>
1.637 +
1.638 +[SEC-TCERTSTORE-APIPOLICING-2.3-001]
1.639 +<actionbody>
1.640 + <testexe>t_certstore.exe</testexe>
1.641 + <excludedcapabilities>
1.642 + <capability>TCB</capability>
1.643 + </excludedcapabilities>
1.644 + <policy>
1.645 + <capability>ReadUserData</capability>
1.646 + </policy>
1.647 +
1.648 + <preactions>
1.649 + <action>
1.650 + <actionname>Opening a writable certificate store manager</actionname>
1.651 + <actiontype>init</actiontype>
1.652 + <actionbody>
1.653 + <mode>write</mode>
1.654 + </actionbody>
1.655 + <actionresult>
1.656 + <return>KErrNone</return>
1.657 + </actionresult>
1.658 + </action>
1.659 + </preactions>
1.660 +
1.661 + <passactions>
1.662 + <action>
1.663 + <actionname>Retrieve rsacert1 cert</actionname>
1.664 + <actiontype>retrieve</actiontype>
1.665 + <actionbody>
1.666 + <label>rsacert1</label>
1.667 + </actionbody>
1.668 + <actionresult>
1.669 + <return>KErrNone</return>
1.670 + </actionresult>
1.671 + </action>
1.672 + </passactions>
1.673 +
1.674 + <failactions>
1.675 + <action>
1.676 + <actionname>Retrieve rsacert1 cert</actionname>
1.677 + <actiontype>retrieve</actiontype>
1.678 + <actionbody>
1.679 + <label>rsacert1</label>
1.680 + </actionbody>
1.681 + <actionresult>
1.682 + <return>KErrPermissionDenied</return>
1.683 + </actionresult>
1.684 + </action>
1.685 + </failactions>
1.686 +
1.687 + <postactions>
1.688 + <action>
1.689 + <actionname>Deleting the writable certificate store manager</actionname>
1.690 + <actiontype>delete</actiontype>
1.691 + <actionbody></actionbody>
1.692 + <actionresult>
1.693 + <return>KErrNone</return>
1.694 + </actionresult>
1.695 + </action>
1.696 + </postactions>
1.697 +</actionbody>
1.698 +
1.699 +[SEC-TCERTSTORE-APIPOLICING-2.4-001]
1.700 +<actionbody>
1.701 + <testexe>t_certstore.exe</testexe>
1.702 + <excludedcapabilities>
1.703 + <capability>TCB</capability>
1.704 + </excludedcapabilities>
1.705 + <policy>
1.706 + <capability>WriteUserData</capability>
1.707 + </policy>
1.708 +
1.709 + <preactions>
1.710 + <action>
1.711 + <actionname>Opening a writable certificate store manager</actionname>
1.712 + <actiontype>init</actiontype>
1.713 + <actionbody>
1.714 + <mode>write</mode>
1.715 + </actionbody>
1.716 + <actionresult>
1.717 + <return>KErrNone</return>
1.718 + </actionresult>
1.719 + </action>
1.720 + </preactions>
1.721 +
1.722 + <passactions>
1.723 + <action>
1.724 + <actionname>Remove the certificate rsacert1</actionname>
1.725 + <actiontype>deletecert</actiontype>
1.726 + <actionbody>
1.727 + <certtype>user</certtype>
1.728 + <label>rsacert1</label>
1.729 + </actionbody>
1.730 + <actionresult>
1.731 + <return>KErrNone</return>
1.732 + </actionresult>
1.733 + </action>
1.734 +
1.735 + <action>
1.736 + <actionname>Get the list of certificates</actionname>
1.737 + <actiontype>listcert</actiontype>
1.738 + <actionbody>
1.739 + <filter>
1.740 + <ownertype>user</ownertype>
1.741 + </filter>
1.742 + </actionbody>
1.743 + <actionresult>
1.744 + <return>KErrNone</return>
1.745 + </actionresult>
1.746 + </action>
1.747 + </passactions>
1.748 +
1.749 + <failactions>
1.750 + <action>
1.751 + <actionname>Remove the certificate rsacert1</actionname>
1.752 + <actiontype>deletecert</actiontype>
1.753 + <actionbody>
1.754 + <certtype>user</certtype>
1.755 + <label>rsacert1</label>
1.756 + </actionbody>
1.757 + <actionresult>
1.758 + <return>KErrPermissionDenied</return>
1.759 + </actionresult>
1.760 + </action>
1.761 +
1.762 + <action>
1.763 + <actionname>Get the list of certificates</actionname>
1.764 + <actiontype>listcert</actiontype>
1.765 + <actionbody>
1.766 + <filter>
1.767 + <ownertype>user</ownertype>
1.768 + </filter>
1.769 + </actionbody>
1.770 + <actionresult>
1.771 + <CCTCertInfo><label>rsacert1</label></CCTCertInfo>
1.772 + <return>KErrNone</return>
1.773 + </actionresult>
1.774 + </action>
1.775 + </failactions>
1.776 +
1.777 + <postactions>
1.778 + <action>
1.779 + <actionname>Deleting the writable certificate store manager</actionname>
1.780 + <actiontype>delete</actiontype>
1.781 + <actionbody></actionbody>
1.782 + <actionresult>
1.783 + <return>KErrNone</return>
1.784 + </actionresult>
1.785 + </action>
1.786 + </postactions>
1.787 +</actionbody>
1.788 +
1.789 +[SEC-TCERTSTORE-APIPOLICING-3.1-001]
1.790 +<actionbody>
1.791 + <testexe>t_certstore.exe</testexe>
1.792 + <excludedcapabilities>
1.793 + <capability>TCB</capability>
1.794 + </excludedcapabilities>
1.795 + <policy>
1.796 + <capability>WriteUserData</capability>
1.797 + </policy>
1.798 +
1.799 + <preactions>
1.800 + <action>
1.801 + <actionname>Opening a writable certificate store manager</actionname>
1.802 + <actiontype>init</actiontype>
1.803 + <actionbody>
1.804 + <mode>write</mode>
1.805 + </actionbody>
1.806 + <actionresult>
1.807 + <return>KErrNone</return>
1.808 + </actionresult>
1.809 + </action>
1.810 + </preactions>
1.811 +
1.812 + <failactions>
1.813 + <action>
1.814 + <actionname>Add the certificate U5K3</actionname>
1.815 + <actiontype>addcert</actiontype>
1.816 + <actionbody>
1.817 + <format>X509</format>
1.818 + <label>U5K3</label>
1.819 + <issuerkey></issuerkey>
1.820 + <subjectkey>eeda2c6da84f17519ee837eadb8a5289dadfbb26</subjectkey>
1.821 + <certstore>0</certstore>
1.822 + <certfile>c:\unifiedcertstore2\U5K3.crt</certfile>
1.823 + <certowner>peer</certowner>
1.824 + </actionbody>
1.825 + <actionresult>
1.826 + <return>KErrPermissionDenied</return>
1.827 + </actionresult>
1.828 + </action>
1.829 +
1.830 + <action>
1.831 + <actionname>Get the list of certificates</actionname>
1.832 + <actiontype>listpeercert</actiontype>
1.833 + <actionbody>
1.834 + <filter>
1.835 + <ownertype>peer</ownertype>
1.836 + </filter>
1.837 + </actionbody>
1.838 + <actionresult>
1.839 + <return>KErrNone</return>
1.840 + </actionresult>
1.841 + </action>
1.842 + </failactions>
1.843 +
1.844 + <passactions>
1.845 + <action>
1.846 + <actionname>Add the certificate U5K3</actionname>
1.847 + <actiontype>addcert</actiontype>
1.848 + <actionbody>
1.849 + <format>X509</format>
1.850 + <label>U5K3</label>
1.851 + <issuerkey></issuerkey>
1.852 + <subjectkey>eeda2c6da84f17519ee837eadb8a5289dadfbb26</subjectkey>
1.853 + <certstore>0</certstore>
1.854 + <certfile>c:\unifiedcertstore2\U5K3.crt</certfile>
1.855 + <certowner>peer</certowner>
1.856 + </actionbody>
1.857 + <actionresult>
1.858 + <return>KErrNone</return>
1.859 + </actionresult>
1.860 + </action>
1.861 +
1.862 + <action>
1.863 + <actionname>Get the list of certificates</actionname>
1.864 + <actiontype>listcert</actiontype>
1.865 + <actionbody>
1.866 + <filter>
1.867 + <ownertype>peer</ownertype>
1.868 + </filter>
1.869 + </actionbody>
1.870 + <actionresult>
1.871 + <return>KErrNone</return>
1.872 + <CCTCertInfo><label>U5K3</label></CCTCertInfo>
1.873 + </actionresult>
1.874 + </action>
1.875 + </passactions>
1.876 +
1.877 + <postactions>
1.878 + <action>
1.879 + <actionname>Deleting the writable certificate store manager</actionname>
1.880 + <actiontype>delete</actiontype>
1.881 + <actionbody></actionbody>
1.882 + <actionresult>
1.883 + <return>KErrNone</return>
1.884 + </actionresult>
1.885 + </action>
1.886 + </postactions>
1.887 +</actionbody>
1.888 +
1.889 +[SEC-TCERTSTORE-APIPOLICING-3.2-001]
1.890 +<actionbody>
1.891 + <testexe>t_certstore.exe</testexe>
1.892 + <excludedcapabilities>
1.893 + <capability>TCB</capability>
1.894 + </excludedcapabilities>
1.895 + <policy>
1.896 + </policy>
1.897 +
1.898 + <preactions>
1.899 + <action>
1.900 + <actionname>Opening a writable certificate store manager</actionname>
1.901 + <actiontype>init</actiontype>
1.902 + <actionbody>
1.903 + <mode>write</mode>
1.904 + </actionbody>
1.905 + <actionresult>
1.906 + <return>KErrNone</return>
1.907 + </actionresult>
1.908 + </action>
1.909 + </preactions>
1.910 +
1.911 + <passactions>
1.912 + <action>
1.913 + <actionname>Get the list of certificates</actionname>
1.914 + <actiontype>listcert</actiontype>
1.915 + <actionbody>
1.916 + <filter>
1.917 + <ownertype>peer</ownertype>
1.918 + </filter>
1.919 + </actionbody>
1.920 + <actionresult>
1.921 + <return>KErrNone</return>
1.922 + <CCTCertInfo><label>U5K3</label></CCTCertInfo>
1.923 + </actionresult>
1.924 + </action>
1.925 + </passactions>
1.926 +
1.927 + <failactions>
1.928 + </failactions>
1.929 +
1.930 + <postactions>
1.931 + <action>
1.932 + <actionname>Deleting the writable certificate store manager</actionname>
1.933 + <actiontype>delete</actiontype>
1.934 + <actionbody></actionbody>
1.935 + <actionresult>
1.936 + <return>KErrNone</return>
1.937 + </actionresult>
1.938 + </action>
1.939 + </postactions>
1.940 +</actionbody>
1.941 +
1.942 +[SEC-TCERTSTORE-APIPOLICING-3.3-001]
1.943 +<actionbody>
1.944 + <testexe>t_certstore.exe</testexe>
1.945 + <excludedcapabilities>
1.946 + <capability>TCB</capability>
1.947 + </excludedcapabilities>
1.948 + <policy>
1.949 + <capability>ReadUserData</capability>
1.950 + </policy>
1.951 +
1.952 + <preactions>
1.953 + <action>
1.954 + <actionname>Opening a writable certificate store manager</actionname>
1.955 + <actiontype>init</actiontype>
1.956 + <actionbody>
1.957 + <mode>write</mode>
1.958 + </actionbody>
1.959 + <actionresult>
1.960 + <return>KErrNone</return>
1.961 + </actionresult>
1.962 + </action>
1.963 + </preactions>
1.964 +
1.965 + <passactions>
1.966 + <action>
1.967 + <actionname>Retrieve U5K3 cert</actionname>
1.968 + <actiontype>retrieve</actiontype>
1.969 + <actionbody>
1.970 + <label>U5K3</label>
1.971 + </actionbody>
1.972 + <actionresult>
1.973 + <return>KErrNone</return>
1.974 + </actionresult>
1.975 + </action>
1.976 + </passactions>
1.977 +
1.978 + <failactions>
1.979 + <action>
1.980 + <actionname>Retrieve U5K3 cert</actionname>
1.981 + <actiontype>retrieve</actiontype>
1.982 + <actionbody>
1.983 + <label>U5K3</label>
1.984 + </actionbody>
1.985 + <actionresult>
1.986 + <return>KErrPermissionDenied</return>
1.987 + </actionresult>
1.988 + </action>
1.989 + </failactions>
1.990 +
1.991 + <postactions>
1.992 + <action>
1.993 + <actionname>Deleting the writable certificate store manager</actionname>
1.994 + <actiontype>delete</actiontype>
1.995 + <actionbody></actionbody>
1.996 + <actionresult>
1.997 + <return>KErrNone</return>
1.998 + </actionresult>
1.999 + </action>
1.1000 + </postactions>
1.1001 +</actionbody>
1.1002 +
1.1003 +[SEC-TCERTSTORE-APIPOLICING-3.4-001]
1.1004 +<actionbody>
1.1005 + <testexe>t_certstore.exe</testexe>
1.1006 + <excludedcapabilities>
1.1007 + <capability>TCB</capability>
1.1008 + </excludedcapabilities>
1.1009 + <policy>
1.1010 + <capability>WriteUserData</capability>
1.1011 + </policy>
1.1012 +
1.1013 + <preactions>
1.1014 + <action>
1.1015 + <actionname>Opening a writable certificate store manager</actionname>
1.1016 + <actiontype>init</actiontype>
1.1017 + <actionbody>
1.1018 + <mode>write</mode>
1.1019 + </actionbody>
1.1020 + <actionresult>
1.1021 + <return>KErrNone</return>
1.1022 + </actionresult>
1.1023 + </action>
1.1024 + </preactions>
1.1025 +
1.1026 + <passactions>
1.1027 + <action>
1.1028 + <actionname>Remove the certificate U5K3</actionname>
1.1029 + <actiontype>deletecert</actiontype>
1.1030 + <actionbody>
1.1031 + <certtype>peer</certtype>
1.1032 + <label>U5K3</label>
1.1033 + </actionbody>
1.1034 + <actionresult>
1.1035 + <return>KErrNone</return>
1.1036 + </actionresult>
1.1037 + </action>
1.1038 +
1.1039 + <action>
1.1040 + <actionname>Get the list of certificates</actionname>
1.1041 + <actiontype>listcert</actiontype>
1.1042 + <actionbody>
1.1043 + <filter>
1.1044 + <ownertype>peer</ownertype>
1.1045 + </filter>
1.1046 + </actionbody>
1.1047 + <actionresult>
1.1048 + <return>KErrNone</return>
1.1049 + </actionresult>
1.1050 + </action>
1.1051 + </passactions>
1.1052 +
1.1053 + <failactions>
1.1054 + <action>
1.1055 + <actionname>Remove the certificate U5K3</actionname>
1.1056 + <actiontype>deletecert</actiontype>
1.1057 + <actionbody>
1.1058 + <certtype>peer</certtype>
1.1059 + <label>U5K3</label>
1.1060 + </actionbody>
1.1061 + <actionresult>
1.1062 + <return>KErrPermissionDenied</return>
1.1063 + </actionresult>
1.1064 + </action>
1.1065 +
1.1066 + <action>
1.1067 + <actionname>Get the list of certificates</actionname>
1.1068 + <actiontype>listcert</actiontype>
1.1069 + <actionbody>
1.1070 + <filter>
1.1071 + <ownertype>peer</ownertype>
1.1072 + </filter>
1.1073 + </actionbody>
1.1074 + <actionresult>
1.1075 + <CCTCertInfo><label>U5K3</label></CCTCertInfo>
1.1076 + <return>KErrNone</return>
1.1077 + </actionresult>
1.1078 + </action>
1.1079 + </failactions>
1.1080 +
1.1081 + <postactions>
1.1082 + <action>
1.1083 + <actionname>Deleting the writable certificate store manager</actionname>
1.1084 + <actiontype>delete</actiontype>
1.1085 + <actionbody></actionbody>
1.1086 + <actionresult>
1.1087 + <return>KErrNone</return>
1.1088 + </actionresult>
1.1089 + </action>
1.1090 + </postactions>
1.1091 +</actionbody>
1.1092 +
1.1093 +[SEC-TCERTSTORE-APIPOLICING-4.1-001]
1.1094 +<actionbody>
1.1095 + <label>*.*</label>
1.1096 + <deleteallcerts>1</deleteallcerts>
1.1097 +</actionbody>
1.1098 +