fixed json secret key export (now export the whole encrypted blob, since only that blob is being used to parse the key). added support to import json secret keys

This commit is contained in:
TLINDEN
2015-07-09 18:38:27 +02:00
parent da6dda795b
commit 0eb7de0921
3 changed files with 105 additions and 30 deletions

View File

@@ -35,6 +35,14 @@ include keys.cfg
cmd = cat testkeyvjapub.json
expect = /"Alicia"/
</test>
<test check-json-export-secret>
cmd = $pcp -V vja -s -j -x a -O testkeyvjasec.json
expect-file testkeyvjasec.json
</test>
<test check-json-export-secret-isjson>
cmd = cat testkeyvjasec.json
expect = /"Alicia"/
</test>
</test>
<test vjb>
@@ -43,6 +51,21 @@ include keys.cfg
cmd = $pcp -V vjb -K -I testkeyvjapub.json -j
expect /added/
</test>
<test check-json-import-public-open>
cmd = $pcp -V vjb -l
expect = /Alicia/
</test>
</test>
<test vjc>
<test check-json-import-secret>
cmd = $pcp -V vjc -K -I testkeyvjasec.json -x a -j
expect = /added/
</test>
<test check-json-import-secret-open>
cmd = $pcp -V vjc -l
expect = /Alicia/
</test>
</test>
<test vjtxt>