added anonymous sender key (-A) support

This commit is contained in:
git@daemon.de
2014-08-11 15:45:47 +02:00
parent e022a9e842
commit 298e6b1469
11 changed files with 131 additions and 69 deletions

View File

@@ -182,6 +182,7 @@ temporarily disabled
expect = /encrypted/
</test>
*/
#
# encryption tests
<test check-crypto-alicia-2-bobby>
@@ -202,12 +203,23 @@ temporarily disabled
expect = /${idbobby} - Bobby/
</test>
<test check-crypto-alicia-encrypt-anonymous>
cmd = $pcp -V va -e -A -i ${idbobby} -I testmessage -O testencryptedanon -x a
expect = /${idbobby} - Bobby/
</test>
# bobbys part
<test check-crypto-bobby-import-secret>
cmd = $pcp -V vb -K -I key-bobby-sec -x b
expect = /${idbobby}/
</test>
<test check-crypto-bobby-decrypt-anonymous>
# decrypt anon, without knowing alicias key
cmd = $pcp -V vb -d -O testdecryptedanon -I testencryptedanon -x b
expect = /successfully/
</test>
<test check-crypto-alicia-import-alicias-key>
cmd = $pcp -V vb -K -I key-alicia-pub
expect = /${idalicia}/
@@ -272,7 +284,7 @@ temporarily disabled
<test check-vcl-crypto-unencrypted-secret-message>
cmd = echo HALLO | $pcp -V vcl -e -O testencrypted -i ${idbobby}
expect = /success/
expect = /Bobby/
</test>
<test check-vcl-crypto-unencrypted-secret-read>