commit a8bb2dafbf81efc867b72addf4b5d5c9554468cc parent 9b21ab9cf4f6c2d33464e718d13634af069f3e21 Author: Sean Enck <sean@ttypty.com> Date: Sun, 12 Mar 2023 11:37:19 -0400 test invalid keys too Diffstat:
| M | tests/expected.log | | | 1 | + |
| M | tests/run.sh | | | 13 | +++++++++++++ |
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/tests/expected.log b/tests/expected.log @@ -101,3 +101,4 @@ keys/k/one2 proceed with rekey? (y/N) keys/k/one2 clipboard will clear in 5 seconds +Wrong password? HMAC-SHA256 of header mismatching diff --git a/tests/run.sh b/tests/run.sh @@ -65,6 +65,19 @@ _execute() { echo _rekey _clipboard + _invalid +} + +_invalid() { + local keyfile + if [ -n "$LOCKBOX_KEYFILE" ]; then + export LOCKBOX_KEYFILE="" + else + keyfile="$DATA/invalid.key" + echo "invalid" > "$keyfile" + export LOCKBOX_KEYFILE="$keyfile" + fi + ${LB_BINARY} ls } _rekey() {