diff options
author | Ben Kibbey <[email protected]> | 2020-11-05 05:51:06 +0000 |
---|---|---|
committer | Ben Kibbey <[email protected]> | 2020-11-05 19:19:15 +0000 |
commit | 31e47dfad0f40e31e8b3113b933696e8e4105136 (patch) | |
tree | 9f370c597f6f38680b95bdc4332208b305d95dce /common/status.h | |
parent | scd: Use lock_slot for apdu_send_direct. (diff) | |
download | gnupg-31e47dfad0f40e31e8b3113b933696e8e4105136.tar.gz gnupg-31e47dfad0f40e31e8b3113b933696e8e4105136.zip |
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 <[email protected]>
Diffstat (limited to 'common/status.h')
-rw-r--r-- | common/status.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/status.h b/common/status.h index 477b29eaa..0c481d247 100644 --- a/common/status.h +++ b/common/status.h @@ -37,6 +37,7 @@ enum STATUS_ENTER, STATUS_LEAVE, STATUS_ABORT, + STATUS_CANCELED_BY_USER, STATUS_GOODSIG, STATUS_BADSIG, |