summaryrefslogtreecommitdiff
path: root/security/nss/tests/smime
diff options
context:
space:
mode:
authorian.mcgreer%sun.com <devnull@localhost>2001-12-17 20:16:18 +0000
committerian.mcgreer%sun.com <devnull@localhost>2001-12-17 20:16:18 +0000
commit0b02b61f94213ad492bb4e5391196e39a11d12e6 (patch)
treecfe69908f3ece02ab4ea66b4c9251b8f409da87b /security/nss/tests/smime
parent9620cf7fcb58683cf85ab2e9be43c33faebf12d3 (diff)
downloadnss-hg-0b02b61f94213ad492bb4e5391196e39a11d12e6.tar.gz
test case for multiple recipients
Diffstat (limited to 'security/nss/tests/smime')
-rwxr-xr-xsecurity/nss/tests/smime/smime.sh23
1 files changed, 20 insertions, 3 deletions
diff --git a/security/nss/tests/smime/smime.sh b/security/nss/tests/smime/smime.sh
index 61a7b8960..956edb748 100755
--- a/security/nss/tests/smime/smime.sh
+++ b/security/nss/tests/smime/smime.sh
@@ -116,9 +116,26 @@ smime_main()
html_msg $? 0 "Compare Decoded Enveloped Data and Original" "."
# multiple recip
- #cmsutil -E -i alicecc.txt -d ${R_ALICEDIR} -o alicecc.env \
- # -r bob@bogus.com,dave@bogus.com
- #cmsutil -D -i alicecc.env -d ${R_BOBDIR} -p nss
+ echo "$SCRIPTNAME: Testing multiple recipients ------------------------------"
+ echo "cmsutil -E -i alicecc.txt -d ${R_ALICEDIR} -o alicecc.env \\"
+ echo " -r bob@bogus.com,dave@bogus.com"
+ cmsutil -E -i alice.txt -d ${R_ALICEDIR} -o alicecc.env \
+ -r bob@bogus.com,dave@bogus.com
+ html_msg $? 0 "Create Multiple Recipients Enveloped Data Alice" "."
+
+ echo "cmsutil -D -i alicecc.env -d ${R_BOBDIR} -p nss -o alice.data2"
+ cmsutil -D -i alicecc.env -d ${R_BOBDIR} -p nss -o alice.data2
+ html_msg $? 0 "Decode Multiple Recipients Enveloped Data Alice by Bob" "."
+
+ echo "cmsutil -D -i alicecc.env -d ${R_DAVEDIR} -p nss -o alice.data2"
+ cmsutil -D -i alicecc.env -d ${R_DAVEDIR} -p nss -o alice.data3
+ html_msg $? 0 "Decode Multiple Recipients Enveloped Data Alice by Dave" "."
+
+ diff alice.txt alice.data2
+ html_msg $? 0 "Compare Decoded Mult. Recipients Enveloped Data Alice/Bob" "."
+
+ diff alice.txt alice.data3
+ html_msg $? 0 "Compare Decoded Mult. Recipients Enveloped Data Alice/Dave" "."
echo "$SCRIPTNAME: Sending CERTS-ONLY Message ------------------------------"
echo "cmsutil -O -r \"Alice,bob@bogus.com,dave@bogus.com\" \\"