mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-12 07:46:28 +00:00
Add tomb setkey support for GPG key
This commit is contained in:
parent
a200448de2
commit
53b7460274
@ -56,8 +56,9 @@ command -v qrencode > /dev/null || QRENCODE=0
|
||||
|
||||
|
||||
typeset -A results
|
||||
tests=(dig forge lock badpass open close passwd chksum bind setkey
|
||||
recip-dig recip-forge recip-lock recip-open recip-close recip-passwd recip-resize)
|
||||
tests=(dig forge lock badpass open close passwd chksum bind setkey recip-dig
|
||||
recip-forge recip-lock recip-open recip-close recip-passwd recip-resize
|
||||
recip-setkey)
|
||||
{ test $RESIZER = 1 } && { tests+=(resize) }
|
||||
{ test $KDF = 1 } && { tests+=(kdforge kdfpass kdflock kdfopen) }
|
||||
{ test $STEGHIDE = 1 } && { tests+=(stgin stgout stgopen stgpipe stgimpl
|
||||
@ -176,6 +177,18 @@ test-tomb-recip() {
|
||||
tt resize -s 30 $tomb -k $tomb_key -r $gpgid_2
|
||||
{ test $? = 0 } && { results+=(recip-resize SUCCESS) }
|
||||
|
||||
notice "Testing tomb with recipient setting a new key: setkey"
|
||||
sudo rm -f /tmp/new.recip.tomb.key
|
||||
res=0
|
||||
tt forge /tmp/new.recip.tomb.key -r $gpgid_2 \
|
||||
--ignore-swap --unsafe --use-urandom
|
||||
{ test $? = 0 } || { res=1 }
|
||||
tt setkey -k /tmp/new.recip.tomb.key $tomb_key $tomb -r $gpgid_2
|
||||
{ test $? = 0 } || { res=1 }
|
||||
tt open -k /tmp/new.recip.tomb.key $tomb -r $gpgid_2
|
||||
{ test $? = 0 } || { res=1 }
|
||||
{ test $res = 0 } && { results+=(recip-setkey SUCCESS) }
|
||||
tt close recip
|
||||
}
|
||||
|
||||
test-bind-hooks() {
|
||||
|
2
tomb
2
tomb
@ -2671,7 +2671,7 @@ main() {
|
||||
subcommands_opts[forge]="-ignore-swap k: -kdf: o: -tomb-pwd: -use-urandom r: "
|
||||
subcommands_opts[dig]="-ignore-swap s: -size=s "
|
||||
subcommands_opts[lock]="-ignore-swap k: -kdf: o: -tomb-pwd: r: "
|
||||
subcommands_opts[setkey]="k: -ignore-swap -kdf: -tomb-old-pwd: -tomb-pwd: "
|
||||
subcommands_opts[setkey]="k: -ignore-swap -kdf: -tomb-old-pwd: -tomb-pwd: r: "
|
||||
subcommands_opts[engrave]="k: "
|
||||
|
||||
subcommands_opts[passwd]="k: -ignore-swap -kdf: -tomb-old-pwd: -tomb-pwd: r: R: "
|
||||
|
Loading…
Reference in New Issue
Block a user