Add signed receipt tests.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 1 Apr 2008 15:16:15 +0000 (15:16 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Apr 2008 15:16:15 +0000 (15:16 +0000)
test/cms-test.pl

index 254f11c..f81f82c 100644 (file)
@@ -228,6 +228,24 @@ my @smime_cms_tests = (
           . " -CAfile $smdir/smroot.pem -out smtst.txt"
     ],
 
+    [
+        "signed content MIME format, RSA key, signed receipt request",
+        "-sign -in smcont.txt -signer $smdir/smrsa1.pem -nodetach"
+          . " -receipt_request_to test@openssl.org -receipt_request_all"
+          . " -out test.cms",
+        "-verify -in test.cms "
+          . " -CAfile $smdir/smroot.pem -out smtst.txt"
+    ],
+
+    [
+        "signed receipt MIME format, RSA key",
+        "-sign_receipt -in test.cms"
+          . " -signer $smdir/smrsa2.pem"
+          . " -out test2.cms",
+        "-verify_receipt test2.cms -in test.cms"
+          . " -CAfile $smdir/smroot.pem"
+    ],
+
     [
         "enveloped content test streaming S/MIME format, 3 recipients, keyid",
         "-encrypt -in smcont.txt"