aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md2
-rwxr-xr-xanypinentry6
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8570ba9..e5d2b58 100644
--- a/README.md
+++ b/README.md
@@ -2,3 +2,5 @@
AnyPinentry is a wrapping interface to all kinds of prompts instead of gnupg's pinentry.
You can now use any interface for password and confirmation prompts (`dmenu`, `rofi`, `read`, `systemd-ask-password`, `curses`, `etc`).
+WIP
+
diff --git a/anypinentry b/anypinentry
index 01f8675..f550be1 100755
--- a/anypinentry
+++ b/anypinentry
@@ -13,7 +13,7 @@ description="";
keyinfo="";
repeat="";
-AP_REPEAT_ERROR_STRING="Passwords don't match";
+error__password_mismatch="Passwords don't match";
AP_YES="Yes";
AP_NO="No";
@@ -66,7 +66,7 @@ password_prompt() {
# If password repeat attempt failed, try again,
# Else continue
if [[ ! -z "$2" ]] && [[ "$pass" != "$2" ]]; then
- show_error "$AP_REPEAT_ERROR_STRING";
+ show_error "$error__password_mismatch";
password_prompt "$repeat";
else
[[ ! -z "$pass" ]] && echo "D $pass";
@@ -98,7 +98,7 @@ interpret_command() {
SETKEYINFO) keyinfo="$data" && echo "OK" ;;
SETREPEAT) repeat="${data:-"repeat"}" && echo "OK" ;;
SETDESC) description="$data" && echo "OK" ;;
- SETREPEATERROR) AP_REPEAT_ERROR_STRING="$data" && echo "OK" ;;
+ SETREPEATERROR) error__password_mismatch="$data" && echo "OK" ;;
CONFIRM) confirm_prompt ;;
GETPIN) password_prompt "$repeat" "" ;;
BYE) echo "OK closing connection" && exit 0 ;;