From d526b3ce2e69c7ae9f182768202d5fb540d8cb16 Mon Sep 17 00:00:00 2001 From: Jeremy Brubaker Date: Fri, 3 Jun 2022 15:23:31 -0400 Subject: Implement most (all?) `pinentry` commands Many commands are "implemented" by doing nothing because they don't really apply to the way `anypinentry` works --- anypinentry | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 65 insertions(+), 12 deletions(-) diff --git a/anypinentry b/anypinentry index d281873..a9608d5 100755 --- a/anypinentry +++ b/anypinentry @@ -40,6 +40,8 @@ show_error() { cancelled_error() { echo "ERR 99 Operation cancelled "; } com_error() { echo "ERR 99 Operation cancelled "; } +not_implemented_error() { echo "ERR 536870981 Not implemented "; } +unknown_error() { echo "ERR 536871187 Unknown IPC command "; } @@ -84,25 +86,75 @@ confirm_prompt() { [[ "$res" == "$AP_YES" ]] && echo "OK" || cancelled_error; } +pinentry_help() { + cat <