提交 4a6bb116 编写于 作者: D Dr. Stephen Henson

Add signed receipt tests.

上级 2819ffb5
...@@ -228,6 +228,24 @@ my @smime_cms_tests = ( ...@@ -228,6 +228,24 @@ my @smime_cms_tests = (
. " -CAfile $smdir/smroot.pem -out smtst.txt" . " -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", "enveloped content test streaming S/MIME format, 3 recipients, keyid",
"-encrypt -in smcont.txt" "-encrypt -in smcont.txt"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册