From 9e6503b7ce019aa417099ded1dda87b68c33f912 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 11 Aug 2016 09:52:08 +0200 Subject: 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 --- tools/symcryptrun.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tools/symcryptrun.c') diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c index 5c1f0da1b..b6dc84389 100644 --- a/tools/symcryptrun.c +++ b/tools/symcryptrun.c @@ -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) -- cgit v1.2.3