Home GnuPG
Diffusion GnuPG f05d1772c47b

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.

(cherry picked from commit 31e47dfad0f40e31e8b3113b933696e8e4105136)

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

Details

Provenance
bjkAuthored on Nov 5 2020, 6:51 AM
wernerCommitted on Nov 9 2020, 11:53 AM
Parents
rGc373735e79a1: gpg: Do not print rejected digest algo notes with --quiet.
Branches
Unknown
Tags
Unknown