diff options
| author | NIIBE Yutaka <[email protected]> | 2019-01-28 03:58:13 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2019-01-28 03:58:13 +0000 |
| commit | 02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb (patch) | |
| tree | 189869c915432fd364de4a2a957061be9255a188 /common/util.h | |
| parent | card: Implement the bulk of OpenPGP stuff into gpg-card-tool. (diff) | |
| download | gnupg-02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb.tar.gz gnupg-02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb.zip | |
agent: Clear bogus pinentry cache, when it causes an error.
* agent/agent.h (PINENTRY_STATUS_*): Expose to public.
(struct pin_entry_info_s): Add status.
* agent/call-pinentry.c (agent_askpin): Clearing the ->status
before the loop, let the assuan_transact set ->status. When
failure with PINENTRY_STATUS_PASSWORD_FROM_CACHE, it returns
soon.
* agent/findkey.c (unprotect): Clear the pinentry cache,
when it causes an error.
--
GnuPG-bug-id: 4348
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/util.h')
0 files changed, 0 insertions, 0 deletions
