Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/hooks/ykfde
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,13 @@ ykfde_do_it() {

if [ -z "$_ykfde_passphrase" ]; then
if [ "$YKFDE_CHALLENGE" ] || [ "$YKFDE_CHALLENGE_PASSWORD_NEEDED" ]; then
message " > Challenge-Response failed. Falling back to manual passphrase."
[ "$trial_nr" -le "$YKFDE_CRYPTSETUP_TRIALS" ] && message " Press ENTER to skip and retry Challenge-Response."
if [ "$YKFDE_CHALLENGE_SILENT_FAIL" ]; then
message " > Challenge-Response failed. Skipping decryption."
return 0
else
message " > Challenge-Response failed. Falling back to manual passphrase."
[ "$trial_nr" -le "$YKFDE_CRYPTSETUP_TRIALS" ] && message " Press ENTER to skip and retry Challenge-Response."
fi
else
message " > Passphrase needed to unlock device."
fi
Expand Down
4 changes: 4 additions & 0 deletions src/ykfde.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
# Defaults to empty, meaning NO wait.
#YKFDE_SLEEP_AFTER_SUCCESSFUL_CRYPTSETUP=""

# Silent fail after timeout
# Leave empty to fallback to manual passphrase
#YKFDE_CHALLENGE_SILENT_FAIL="y"

# Verbose output. It will print all secrets to terminal.
# Use only for debugging.
#DBG="1"