Home GnuPG
Diffusion GnuPG 31e47dfad0f4

gpg: Add canceled status message.

Description

gpg: Add canceled status message.

* common/status.h (STATUS_CANCELED_BY_USER): New.
* g10/passphrase.c (passphrase_to_dek): Send STATUS_CANCELED_BY_USER
instead of STATUS_MISSING_PASSPHRASE when canceled is set.

This is to prevent further pinentry tries when the pinentry is canceled
by the user during symmetric decryption.

  • Signed-off-by: Ben Kibbey <bjk@luxsci.net>

Details

Provenance
bjkAuthored on Nov 5 2020, 6:51 AM
Parents
rGf808012ac2cf: scd: Use lock_slot for apdu_send_direct.
Branches
Unknown
Tags
Unknown