3 # Verify a few distributed signatures.
9 # Check an opaque signature
10 sig = openfile $srcdir/text-1.osig.pem
11 out = createfile msg.unsig
17 badsig = count-status BADSIG
18 goodsig = count-status GOODSIG
19 trusted = count-status TRUST_FULLY
22 echo badsig=$badsig goodsig=$goodsig trusted=$trusted
31 cmpfiles $srcdir/text-1.txt msg.unsig
34 # Check a detached signature.
35 sig = openfile $srcdir/text-1.dsig.pem
36 plain = openfile $srcdir/text-1.txt
40 send MESSAGE FD=$plain
42 badsig = count-status BADSIG
43 goodsig = count-status GOODSIG
44 trusted = count-status TRUST_FULLY
47 echo badsig=$badsig goodsig=$goodsig trusted=$trusted
54 # Check a tampered opaque message
55 sig = openfile $srcdir/text-1.osig-bad.pem
56 out = createfile msg.unsig
63 badsig = count-status BADSIG
64 goodsig = count-status GOODSIG
65 trusted = count-status TRUST_FULLY
68 echo badsig=$badsig goodsig=$goodsig trusted=$trusted
75 # Check another opaque signature but without asking for the output.
76 sig = openfile $srcdir/text-2.osig.pem
81 badsig = count-status BADSIG
82 goodsig = count-status GOODSIG
83 trusted = count-status TRUST_FULLY
86 echo badsig=$badsig goodsig=$goodsig trusted=$trusted
93 # We als have tampered version.
94 sig = openfile $srcdir/text-2.osig-bad.pem
99 badsig = count-status BADSIG
100 goodsig = count-status GOODSIG
101 trusted = count-status TRUST_FULLY
104 echo badsig=$badsig goodsig=$goodsig trusted=$trusted