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/.
4
5scenario Mapping
6
7entity Root
8  type Root
9
10entity CA1
11  type Intermediate
12  issuer Root
13    policy OID.1.0
14    mapping OID.1.0:OID.1.1
15
16entity CA2
17  type Intermediate
18  issuer CA1
19    policy OID.1.1
20
21entity User
22  type EE
23  issuer CA2
24    policy OID.1.1
25
26db All
27
28import Root::
29import CA1:Root:
30import CA2:CA1:
31
32verify User:CA2
33  trust Root
34  policy OID.1.0
35# should fail, bug 430859
36  result pass
37
38verify User:CA2
39  trust Root
40  policy OID.1.1
41# should pass, bug 430859
42  result fail
43
44verify User:CA2
45  trust CA1
46  policy OID.1.0
47  result fail
48
49verify User:CA2
50  trust CA1
51  policy OID.1.1
52  result pass
53
54verify User:CA2
55  trust CA2
56  policy OID.1.0
57  result fail
58
59verify User:CA2
60  trust CA2
61  policy OID.1.1
62  result pass
63
64