diff options
author | Werner Koch <wk@gnupg.org> | 2001-11-24 18:43:43 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2001-11-24 18:43:43 +0100 |
commit | bab7fa0b297b8e99f5e222bbceda0716b62f7215 (patch) | |
tree | b3fe5f7ec7e1c1bed0bdd98f036c27d605106d15 /sm/misc.c | |
parent | Signing does now work. There is no secret key management yet, so you (diff) | |
download | gnupg2-bab7fa0b297b8e99f5e222bbceda0716b62f7215.tar.xz gnupg2-bab7fa0b297b8e99f5e222bbceda0716b62f7215.zip |
Added new directory common to enable sharing of some code and error
numbers between gpg, gpgsm and gpg-agent. Move some files and code to
there.
Diffstat (limited to 'sm/misc.c')
-rw-r--r-- | sm/misc.c | 59 |
1 files changed, 0 insertions, 59 deletions
@@ -28,64 +28,5 @@ #include <ksba.h> -#include "util.h" #include "gpgsm.h" - -/* Note: we might want to wrap this in a macro to get our hands on - the line and file where the error occired */ -int -map_ksba_err (int err) -{ - switch (err) - { - case -1: - case 0: - break; - - default: - err = GPGSM_General_Error; - break; - } - return err; -} - - -int -map_gcry_err (int err) -{ - switch (err) - { - case -1: - case 0: - break; - - default: - err = GPGSM_General_Error; - break; - } - return err; -} - -int -map_kbx_err (int err) -{ - switch (err) - { - case -1: - case 0: - break; - - default: - err = GPGSM_General_Error; - break; - } - return err; -} - - - - - - - |