Home GnuPG

Flush data before clearing the confidential flag.

Description

Flush data before clearing the confidential flag.

* src/context.c (assuan_end_confidential): Flush data.

This is required so that for example gpg-agent won't reveal a password
in a log file if requested via

get_passphrase --data X X X X

(Note that --data is required in any case because the default of
returing it with the OK line can't be secured).

Details

Provenance
wernerAuthored on Jun 15 2023, 4:02 PM
Parents
rA2f0232b15fdc: w32: Fix closing for non-socket HANDLE.
Branches
Unknown
Tags
Unknown