From 4a6bb116c417c71f97c943acdbdc57c130529297 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 1 Apr 2008 15:16:15 +0000 Subject: Add signed receipt tests. --- test/cms-test.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 @@ -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" -- cgit v1.2.3