Home GnuPG

client: Handle inquiry from server with CONFIDENTIAL.

Description

client: Handle inquiry from server with CONFIDENTIAL.

* src/assuan-defs.h (struct assuan_context_s): Add new flags,
in_inq_cb and confidential_inquiry.
* src/client.c (assuan_transact): Use the new flags to wipe the
outbound buffer for inquiry when CONFIDENTIAL.
* src/context.c (assuan_set_flag): When ASSUAN_CONFIDENTIAL is set in
inquire callback, set the confidential_inquiry flag.
  • GnuPG-bug-id: T5977
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on May 25 2022, 9:33 AM
Parents
rAaafbde956f88: struct assuan_context_s: Move boolean fields to flags.
Branches
Unknown
Tags
Unknown
Tasks
T5977: Smartcard PIN stays in clear in memory