summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-04-01 15:16:15 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-04-01 15:16:15 +0000
commit4a6bb116c417c71f97c943acdbdc57c130529297 (patch)
treee5ab4294004a910434bf1328a85af13be6a77286 /test
parent2819ffb520f3bce3f049846f691dc6f34257c733 (diff)
downloadopenssl-new-4a6bb116c417c71f97c943acdbdc57c130529297.tar.gz
Add signed receipt tests.
Diffstat (limited to 'test')
-rw-r--r--test/cms-test.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/cms-test.pl b/test/cms-test.pl
index 254f11c630..f81f82c9c1 100644
--- a/test/cms-test.pl
+++ b/test/cms-test.pl
@@ -229,6 +229,24 @@ my @smime_cms_tests = (
],
[
+ "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"
. " -stream -out test.cms -keyid"