PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 1ms

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

http://github.com/zpao/v8monkey
Config | 103 lines | 88 code | 15 blank | 0 comment | 0 complexity | 62bac85c2ef4d3b14446837d41a89549 MD5 | raw file
  1# ***** BEGIN LICENSE BLOCK *****
  2# Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3#
  4# The contents of this file are subject to the Mozilla Public License Version
  5# 1.1 (the "License"); you may not use this file except in compliance with
  6# the License. You may obtain a copy of the License at
  7# http://www.mozilla.org/MPL/
  8#
  9# Software distributed under the License is distributed on an "AS IS" basis,
 10# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 11# for the specific language governing rights and limitations under the
 12# License.
 13#
 14# The Original Code is the Network Security Services (NSS)
 15#
 16# The Initial Developer of the Original Code is Sun Microsystems, Inc.
 17# Portions created by the Initial Developer are Copyright (C) 2009
 18# the Initial Developer. All Rights Reserved.
 19#
 20# Contributor(s):
 21#   Slavomir Katuscak <slavomir.katuscak@sun.com>, Sun Microsystems
 22#
 23# Alternatively, the contents of this file may be used under the terms of
 24# either the GNU General Public License Version 2 or later (the "GPL"), or
 25# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 26# in which case the provisions of the GPL or the LGPL are applicable instead
 27# of those above. If you wish to allow use of your version of this file only
 28# under the terms of either the GPL or the LGPL, and not to allow others to
 29# use your version of this file under the terms of the MPL, indicate your
 30# decision by deleting the provisions above and replace them with the notice
 31# and other provisions required by the GPL or the LGPL. If you do not delete
 32# the provisions above, a recipient may use your version of this file under
 33# the terms of any one of the MPL, the GPL or the LGPL.
 34#
 35# ***** END LICENSE BLOCK *****
 36
 37scenario Mapping2
 38
 39entity Root
 40  type Root
 41
 42entity CA1
 43  type Intermediate
 44  issuer Root 
 45    policy OID.1.0
 46
 47entity CA2
 48  type Intermediate
 49  issuer CA1
 50    policy OID.1.0
 51    mapping OID.1.0:OID.1.1
 52
 53entity CA3
 54  type Intermediate
 55  issuer CA2
 56    policy OID.1.1
 57
 58entity User
 59  type EE
 60  issuer CA3
 61    policy OID.1.1
 62
 63db All
 64
 65import Root::
 66import CA1:Root:
 67import CA2:CA1:
 68import CA3:CA2:
 69
 70verify User:CA3
 71  trust Root
 72  policy OID.1.0
 73# should fail, bug 430859
 74  result pass
 75
 76verify User:CA3
 77  trust Root
 78  policy OID.1.1
 79# should pass, bug 430859
 80  result fail
 81
 82verify User:CA3
 83  trust CA1
 84  policy OID.1.0
 85# should fail, bug 430859
 86  result pass
 87
 88verify User:CA3
 89  trust CA1
 90  policy OID.1.1
 91# should pass, bug 430859
 92  result fail
 93
 94verify User:CA3
 95  trust CA2
 96  policy OID.1.0
 97  result fail
 98
 99verify User:CA3
100  trust CA2
101  policy OID.1.1
102  result pass
103