diff options
author | Werner Koch <[email protected]> | 2021-05-17 17:27:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-05-17 17:48:15 +0000 |
commit | 6dfae2f402a702ccd7f2c585b28cb356e9f26a26 (patch) | |
tree | 199d5a9ebc0f1afdeb94a8e8e0096985b41d9770 /g10/gpgv.c | |
parent | dirmngr: LDAP search by a mailbox now ignores revoked keys. (diff) | |
download | gnupg-6dfae2f402a702ccd7f2c585b28cb356e9f26a26.tar.gz gnupg-6dfae2f402a702ccd7f2c585b28cb356e9f26a26.zip |
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.
* sm/decrypt.c (pwri_decrypt): Use "passphrase".
--
Signed-off-by: Werner Koch <[email protected]>
(cherry picked from commit 03f83bcda5d1f8d8246bcc1afc603b7f74d0626b)
Note that we keep on using the term "passphrase" although "password"
would be better. There are however so many occurance of this and
given it is a bike shedding topic we fix that in the PO files.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/gpgv.c')
-rw-r--r-- | g10/gpgv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/gpgv.c b/g10/gpgv.c index 03551e7db..d1e6da956 100644 --- a/g10/gpgv.c +++ b/g10/gpgv.c @@ -579,13 +579,14 @@ check_secret_key (PKT_public_key *pk, int n) */ DEK * passphrase_to_dek (int cipher_algo, STRING2KEY *s2k, int create, int nocache, - const char *tmp, int *canceled) + const char *tmp, unsigned int flags, int *canceled) { (void)cipher_algo; (void)s2k; (void)create; (void)nocache; (void)tmp; + (void)flags; if (canceled) *canceled = 0; |