summaryrefslogtreecommitdiffstats
path: root/sm/misc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-11-24 18:43:43 +0100
committerWerner Koch <wk@gnupg.org>2001-11-24 18:43:43 +0100
commitbab7fa0b297b8e99f5e222bbceda0716b62f7215 (patch)
treeb3fe5f7ec7e1c1bed0bdd98f036c27d605106d15 /sm/misc.c
parentSigning does now work. There is no secret key management yet, so you (diff)
downloadgnupg2-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.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/sm/misc.c b/sm/misc.c
index d3f0aabaf..3260b90b2 100644
--- a/sm/misc.c
+++ b/sm/misc.c
@@ -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;
-}
-
-
-
-
-
-
-