From: Dr. Stephen Henson Date: Tue, 22 Nov 2016 22:07:16 +0000 (+0000) Subject: add CMS SHA1 signing test X-Git-Tag: OpenSSL_1_1_1-pre1~2962 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c6d67f09f34d8203c5bad7171ed45ec8771c9764;p=oweals%2Fopenssl.git add CMS SHA1 signing test Reviewed-by: Rich Salz --- diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index 40fcf7cc53..264c7d6073 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -107,6 +107,14 @@ my @smime_pkcs7_tests = ( "-CAfile", catfile($smdir, "smroot.pem"), "-out", "smtst.txt" ] ], + [ "signed content S/MIME format, RSA key SHA1", + [ "-sign", "-in", $smcont, "-md", "sha1", + "-certfile", catfile($smdir, "smroot.pem"), + "-signer", catfile($smdir, "smrsa1.pem"), "-out", "test.cms" ], + [ "-verify", "-in", "test.cms", + "-CAfile", catfile($smdir, "smroot.pem"), "-out", "smtst.txt" ] + ], + [ "signed content test streaming S/MIME format, 2 DSA and 2 RSA keys", [ "-sign", "-in", $smcont, "-nodetach", "-signer", catfile($smdir, "smrsa1.pem"),