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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # This Source Code Form is subject to the terms of the Mozilla Public
     2 # License, v. 2.0. If a copy of the MPL was not distributed with this
     3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     5 scenario Mapping
     7 entity Root
     8   type Root
    10 entity CA1
    11   type Intermediate
    12   issuer Root 
    13     policy OID.1.0
    14     mapping OID.1.0:OID.1.1
    16 entity CA2
    17   type Intermediate
    18   issuer CA1
    19     policy OID.1.1
    21 entity User
    22   type EE
    23   issuer CA2
    24     policy OID.1.1
    26 db All
    28 import Root::
    29 import CA1:Root:
    30 import CA2:CA1:
    32 verify User:CA2
    33   trust Root
    34   policy OID.1.0
    35 # should fail, bug 430859
    36   result pass
    38 verify User:CA2
    39   trust Root
    40   policy OID.1.1
    41 # should pass, bug 430859
    42   result fail
    44 verify User:CA2
    45   trust CA1
    46   policy OID.1.0
    47   result fail
    49 verify User:CA2
    50   trust CA1
    51   policy OID.1.1
    52   result pass
    54 verify User:CA2
    55   trust CA2
    56   policy OID.1.0
    57   result fail
    59 verify User:CA2
    60   trust CA2
    61   policy OID.1.1
    62   result pass

mercurial