aboutsummaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-11-13 19:07:06 +0000
committerWerner Koch <[email protected]>2005-11-13 19:07:06 +0000
commitb9633196f468edca3b41e182b8aa1bea4f46214b (patch)
tree2f9080b25d97d224c4e2b129a3673310ada93d9d /sm/call-agent.c
parentNEw file qualified.ttx - not yet ready for distribution (diff)
downloadgnupg-b9633196f468edca3b41e182b8aa1bea4f46214b.tar.gz
gnupg-b9633196f468edca3b41e182b8aa1bea4f46214b.zip
Added qualified signature features.
Diffstat (limited to 'sm/call-agent.c')
-rw-r--r--sm/call-agent.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index c47f6b19a..03a3a2e3f 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -693,3 +693,24 @@ gpgsm_agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc)
return map_assuan_err (rc);
}
+
+
+/* Ask the agent to pop up a confirmation dialog with the text DESC
+ and an okay and cancel button. */
+gpg_error_t
+gpgsm_agent_get_confirmation (ctrl_t ctrl, const char *desc)
+{
+ int rc;
+ char *fpr;
+ char line[ASSUAN_LINELENGTH];
+
+ rc = start_agent (ctrl);
+ if (rc)
+ return rc;
+
+ snprintf (line, DIM(line)-1, "GET_CONFIRMATION %s", desc);
+ line[DIM(line)-1] = 0;
+
+ rc = assuan_transact (agent_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL);
+ return map_assuan_err (rc);
+}