From e6be36ee8854dc343a5e0f914991da3da360b513 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 11 Oct 2018 13:37:24 +0900 Subject: [PATCH] agent: Support --ack option for POPUPPINPADPROMPT. * agent/divert-scd.c (getpin_cb): Support --ack option. -- Cherry-picked master commit of: 827529339a4854886dbb5625238e7e01013efdcd We are now introducing "acknowledge button" feature to scdaemon, so that we can support OpenPGPcard User Interaction Flag. We will (re)use the mechanism of POPUPPINPADPROMPT for this. Perhaps, we will change the name of POPUPPINPADPROMPT, since it will be no longer for PINPAD only. Signed-off-by: NIIBE Yutaka --- agent/divert-scd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/divert-scd.c b/agent/divert-scd.c index 88b35cd21..e51aa54e5 100644 --- a/agent/divert-scd.c +++ b/agent/divert-scd.c @@ -276,7 +276,7 @@ getpin_cb (void *opaque, const char *desc_text, const char *info, } else if (maxbuf == 1) /* Open the pinentry. */ { - if (info) + if (info && strcmp (info, "--ack") != 0) { char *desc, *desc2;