1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/chains/scenarios/mapping.cfg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,63 @@ 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 Mapping 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 + mapping OID.1.0:OID.1.1 1.18 + 1.19 +entity CA2 1.20 + type Intermediate 1.21 + issuer CA1 1.22 + policy OID.1.1 1.23 + 1.24 +entity User 1.25 + type EE 1.26 + issuer CA2 1.27 + policy OID.1.1 1.28 + 1.29 +db All 1.30 + 1.31 +import Root:: 1.32 +import CA1:Root: 1.33 +import CA2:CA1: 1.34 + 1.35 +verify User:CA2 1.36 + trust Root 1.37 + policy OID.1.0 1.38 +# should fail, bug 430859 1.39 + result pass 1.40 + 1.41 +verify User:CA2 1.42 + trust Root 1.43 + policy OID.1.1 1.44 +# should pass, bug 430859 1.45 + result fail 1.46 + 1.47 +verify User:CA2 1.48 + trust CA1 1.49 + policy OID.1.0 1.50 + result fail 1.51 + 1.52 +verify User:CA2 1.53 + trust CA1 1.54 + policy OID.1.1 1.55 + result pass 1.56 + 1.57 +verify User:CA2 1.58 + trust CA2 1.59 + policy OID.1.0 1.60 + result fail 1.61 + 1.62 +verify User:CA2 1.63 + trust CA2 1.64 + policy OID.1.1 1.65 + result pass 1.66 +