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 /sm | |
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 'sm')
-rw-r--r-- | sm/call-agent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c index 698039504..71768910f 100644 --- a/sm/call-agent.c +++ b/sm/call-agent.c @@ -221,7 +221,9 @@ default_inq_cb (void *opaque, const char *line) && have_static_passphrase ()) { const char *s = get_static_passphrase (); + assuan_begin_confidential (parm->ctx); err = assuan_send_data (parm->ctx, s, strlen (s)); + assuan_end_confidential (parm->ctx); } else log_error ("ignoring gpg-agent inquiry '%s'\n", line); |