镜像来自
git://git.gnupg.org/gnupg.git
已同步 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
父節點
f808012ac2
當前提交
31e47dfad0
共有 2 個文件被更改,包括 2 次插入 和 1 次删除
|
@ -359,7 +359,7 @@ passphrase_to_dek (int cipher_algo, STRING2KEY *s2k,
|
|||
if (*canceled)
|
||||
{
|
||||
xfree (pw);
|
||||
write_status( STATUS_MISSING_PASSPHRASE );
|
||||
write_status( STATUS_CANCELED_BY_USER );
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
載入中…
Add table
Add a link
Reference in a new issue