security/nss/tests/chains/scenarios/mapping2.cfg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/tests/chains/scenarios/mapping2.cfg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,71 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +scenario Mapping2
     1.9 +
    1.10 +entity Root
    1.11 +  type Root
    1.12 +
    1.13 +entity CA1
    1.14 +  type Intermediate
    1.15 +  issuer Root 
    1.16 +    policy OID.1.0
    1.17 +
    1.18 +entity CA2
    1.19 +  type Intermediate
    1.20 +  issuer CA1
    1.21 +    policy OID.1.0
    1.22 +    mapping OID.1.0:OID.1.1
    1.23 +
    1.24 +entity CA3
    1.25 +  type Intermediate
    1.26 +  issuer CA2
    1.27 +    policy OID.1.1
    1.28 +
    1.29 +entity User
    1.30 +  type EE
    1.31 +  issuer CA3
    1.32 +    policy OID.1.1
    1.33 +
    1.34 +db All
    1.35 +
    1.36 +import Root::
    1.37 +import CA1:Root:
    1.38 +import CA2:CA1:
    1.39 +import CA3:CA2:
    1.40 +
    1.41 +verify User:CA3
    1.42 +  trust Root
    1.43 +  policy OID.1.0
    1.44 +# should fail, bug 430859
    1.45 +  result pass
    1.46 +
    1.47 +verify User:CA3
    1.48 +  trust Root
    1.49 +  policy OID.1.1
    1.50 +# should pass, bug 430859
    1.51 +  result fail
    1.52 +
    1.53 +verify User:CA3
    1.54 +  trust CA1
    1.55 +  policy OID.1.0
    1.56 +# should fail, bug 430859
    1.57 +  result pass
    1.58 +
    1.59 +verify User:CA3
    1.60 +  trust CA1
    1.61 +  policy OID.1.1
    1.62 +# should pass, bug 430859
    1.63 +  result fail
    1.64 +
    1.65 +verify User:CA3
    1.66 +  trust CA2
    1.67 +  policy OID.1.0
    1.68 +  result fail
    1.69 +
    1.70 +verify User:CA3
    1.71 +  trust CA2
    1.72 +  policy OID.1.1
    1.73 +  result pass
    1.74 +

mercurial