Skip to content

Commit

Permalink
Merge 'vincent43/fixes' into finlstrm-fixes, PR cornelinux#43 corneli…
Browse files Browse the repository at this point in the history
…nux/yubikey-luks
  • Loading branch information
finlstrm committed Feb 23, 2019
2 parents c36f939 + a87e886 commit 0471e53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
@echo "ppa - upload to ppa launchpad. Stable"

VERSION=0.5.1
SRC_DIR = yubikey_luks.orig
SRC_DIR = yubikey-luks-${VERSION}

debianize:
rm -fr DEBUILD
Expand Down
13 changes: 9 additions & 4 deletions key-script
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ if [ "$check_yubikey_present" = "1" ]; then
PW=$(printf %s "$PW" | sha256sum | awk '{print $1}')
fi
R="$(ykchalresp -2 "$PW" 2>/dev/null || true)"
message "Retrieved the response from the Yubikey"
if [ "$CONCATENATE" = "1" ]; then
printf '%s' "$PW$R"
if [ "$R" ]; then
message "Retrieved the response from the Yubikey"
if [ "$CONCATENATE" = "1" ]; then
printf '%s' "$PW$R"
else
printf '%s' "$R"
fi
else
printf '%s' "$R"
message "Failed to retrieve the response from the Yubikey"
fi

else
printf '%s' "$PW"
fi
Expand Down

0 comments on commit 0471e53

Please sign in to comment.