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
13
g10/keydb.h
13
g10/keydb.h
|
@ -277,20 +277,21 @@ gpg_error_t build_sk_list (ctrl_t ctrl, strlist_t locusr,
|
|||
SK_LIST *ret_sk_list, unsigned use);
|
||||
|
||||
/*-- passphrase.h --*/
|
||||
|
||||
/* Flags for passphrase_to_dek */
|
||||
#define GETPASSWORD_FLAG_SYMDECRYPT 1
|
||||
|
||||
|
||||
unsigned char encode_s2k_iterations (int iterations);
|
||||
int have_static_passphrase(void);
|
||||
const char *get_static_passphrase (void);
|
||||
void set_passphrase_from_string(const char *pass);
|
||||
void read_passphrase_from_fd( int fd );
|
||||
void passphrase_clear_cache (const char *cacheid);
|
||||
DEK *passphrase_to_dek_ext(u32 *keyid, int pubkey_algo,
|
||||
int cipher_algo, STRING2KEY *s2k, int mode,
|
||||
const char *tryagain_text,
|
||||
const char *custdesc, const char *custprompt,
|
||||
int *canceled);
|
||||
DEK *passphrase_to_dek (int cipher_algo, STRING2KEY *s2k,
|
||||
int create, int nocache,
|
||||
const char *tryagain_text, int *canceled);
|
||||
const char *tryagain_text, unsigned int flags,
|
||||
int *canceled);
|
||||
void set_next_passphrase( const char *s );
|
||||
char *get_last_passphrase(void);
|
||||
void next_to_last_passphrase(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue