mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Use a more descriptive prompt for symmetric decryption.
* g10/keydb.h (GETPASSWORD_FLAG_SYMDECRYPT): New. (passphrase_to_dek_ext): Remove this obsolete prototype. * g10/passphrase.c (passphrase_get): Add arg flags. Use new flag value. (passphrase_to_dek): Add arg flags and pass it on. * g10/mainproc.c (proc_symkey_enc): Use new flag. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
50ea1b67e8
commit
03f83bcda5
7 changed files with 35 additions and 17 deletions
|
@ -420,7 +420,8 @@ proc_symkey_enc (CTX c, PACKET *pkt)
|
|||
}
|
||||
else
|
||||
{
|
||||
c->dek = passphrase_to_dek (algo, &enc->s2k, 0, 0, NULL, NULL);
|
||||
c->dek = passphrase_to_dek (algo, &enc->s2k, 0, 0, NULL,
|
||||
GETPASSWORD_FLAG_SYMDECRYPT, NULL);
|
||||
if (c->dek)
|
||||
{
|
||||
c->dek->symmetric = 1;
|
||||
|
@ -709,7 +710,8 @@ proc_encrypted (CTX c, PACKET *pkt)
|
|||
log_info (_("assuming %s encrypted data\n"), "IDEA");
|
||||
}
|
||||
|
||||
c->dek = passphrase_to_dek (algo, s2k, 0, 0, NULL, &canceled);
|
||||
c->dek = passphrase_to_dek (algo, s2k, 0, 0, NULL,
|
||||
GETPASSWORD_FLAG_SYMDECRYPT, &canceled);
|
||||
if (c->dek)
|
||||
c->dek->algo_info_printed = 1;
|
||||
else if (canceled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue