diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-11-09 05:36:12 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-11-09 05:40:03 +0100 |
commit | bafa7bf27f7d059708d73abc739dbd4e5f5c5682 (patch) | |
tree | 5006091460bb3cbdc23cc2ef105090af756bffc5 /g10 | |
parent | gpgsm: Support ECDSA in de-vs mode. (diff) | |
download | gnupg2-bafa7bf27f7d059708d73abc739dbd4e5f5c5682.tar.xz gnupg2-bafa7bf27f7d059708d73abc739dbd4e5f5c5682.zip |
gpg,sm: Set confidential in assuan communication for password.
* g10/call-agent.c (default_inq_cb): Call assuan_begin_confidential
and assuan_end_confidential.
* sm/call-agent.c (default_inq_cb): Likewise.
--
Cherry pick from master commit of:
ec1446f9446506b5fbdf90cdeb9cbe1f410a657e
GnuPG-bug-id: 6654
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/call-agent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index eb9f8e29b..4defa7990 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -161,6 +161,7 @@ default_inq_cb (void *opaque, const char *line) || has_leading_keyword (line, "NEW_PASSPHRASE")) && opt.pinentry_mode == PINENTRY_MODE_LOOPBACK) { + assuan_begin_confidential (parm->ctx); if (have_static_passphrase ()) { s = get_static_passphrase (); @@ -187,6 +188,7 @@ default_inq_cb (void *opaque, const char *line) err = assuan_send_data (parm->ctx, pw, strlen (pw)); xfree (pw); } + assuan_end_confidential (parm->ctx); } else if ((s = has_leading_keyword (line, "CONFIRM")) && opt.pinentry_mode == PINENTRY_MODE_LOOPBACK |