/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. scenario Mapping2
  37. entity Root
  38. type Root
  39. entity CA1
  40. type Intermediate
  41. issuer Root
  42. policy OID.1.0
  43. entity CA2
  44. type Intermediate
  45. issuer CA1
  46. policy OID.1.0
  47. mapping OID.1.0:OID.1.1
  48. entity CA3
  49. type Intermediate
  50. issuer CA2
  51. policy OID.1.1
  52. entity User
  53. type EE
  54. issuer CA3
  55. policy OID.1.1
  56. db All
  57. import Root::
  58. import CA1:Root:
  59. import CA2:CA1:
  60. import CA3:CA2:
  61. verify User:CA3
  62. trust Root
  63. policy OID.1.0
  64. # should fail, bug 430859
  65. result pass
  66. verify User:CA3
  67. trust Root
  68. policy OID.1.1
  69. # should pass, bug 430859
  70. result fail
  71. verify User:CA3
  72. trust CA1
  73. policy OID.1.0
  74. # should fail, bug 430859
  75. result pass
  76. verify User:CA3
  77. trust CA1
  78. policy OID.1.1
  79. # should pass, bug 430859
  80. result fail
  81. verify User:CA3
  82. trust CA2
  83. policy OID.1.0
  84. result fail
  85. verify User:CA3
  86. trust CA2
  87. policy OID.1.1
  88. result pass