3 # Creating a signature and verifying it
4 # Requirements: a plain file "text-1.txt"
7 plaintext = let $srcdir/text-1.txt
9 in = openfile $plaintext
10 out = createfile msg.sig
11 in2 = openfile msg.sig
12 out2 = createfile msg.unsig
28 goodsig = count-status GOODSIG
29 trusted = count-status TRUST_FULLY
32 echo goodsig=$goodsig trusted=$trusted
38 # Unset variables so that the files get closed.
44 cmpfiles $plaintext msg.unsig
47 # Lets check it again with a new server instance, this time we keep
48 # the server running to check whether the entire message has been
49 # output after the VERIFY.
51 out = createfile msg.unsig
57 goodsig = count-status GOODSIG
58 trusted = count-status TRUST_FULLY
61 echo goodsig=$goodsig trusted=$trusted
65 cmpfiles $plaintext msg.unsig