mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Remove simple password query error codes.
* common/simple-pwquery.h: Remove mapping function. Move all definitions of status codes... * common/simple-pwquery.c: ... here, and define them to meaningful gpg error values. * agent/preset-passphrase.c (preset_passphrase): Use error code as-is. (forget_passphrase): Likewise. * tools/symcryptrun.c (confucius_get_pass): Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
ed5c1b0b8a
commit
9e6503b7ce
4 changed files with 11 additions and 53 deletions
|
@ -238,9 +238,6 @@ my_strusage (int level)
|
|||
__result; }))
|
||||
#endif
|
||||
|
||||
/* Include the implementation of map_spwq_error. */
|
||||
MAP_SPWQ_ERROR_IMPL
|
||||
|
||||
/* Unlink a file, and shred it if SHRED is true. */
|
||||
int
|
||||
remove_file (char *name, int shred)
|
||||
|
@ -441,7 +438,6 @@ confucius_get_pass (const char *cacheid, int again, int *canceled)
|
|||
pw = simple_pwquery (cacheid,
|
||||
again ? _("does not match - try again"):NULL,
|
||||
_("Passphrase:"), NULL, 0, &err);
|
||||
err = map_spwq_error (err);
|
||||
i18n_switchback (orig_codeset);
|
||||
|
||||
if (!pw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue