aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-06-05 07:14:21 +0000
committerWerner Koch <[email protected]>2003-06-05 07:14:21 +0000
commitbd820bad4faf5a2c644a3a087f477429c4d2e451 (patch)
tree6930e204fa47048dbe7c9d09440cf38c47d5b405 /common/util.h
parent* options.skel: Use new hkp://subkeys.pgp.net as sample keyserver since (diff)
downloadgnupg-bd820bad4faf5a2c644a3a087f477429c4d2e451.tar.gz
gnupg-bd820bad4faf5a2c644a3a087f477429c4d2e451.zip
A small step for GnuPG but a huge leap for error codes.
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/util.h b/common/util.h
index ef988f672..c6d2ea7b8 100644
--- a/common/util.h
+++ b/common/util.h
@@ -21,8 +21,9 @@
#ifndef GNUPG_COMMON_UTIL_H
#define GNUPG_COMMON_UTIL_H
-#include <gcrypt.h> /* we need this for the memory function protos */
-#include <time.h> /* we need time_t */
+#include <gcrypt.h> /* We need this for the memory function protos. */
+#include <time.h> /* We need time_t. */
+#include <gpg-error.h> /* we need gpg-error_t. */
/* to pass hash functions to libksba we need to cast it */
#define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)
@@ -53,7 +54,7 @@
int map_ksba_err (int err);
int map_gcry_err (int err);
int map_kbx_err (int err);
-int map_assuan_err (int err);
+gpg_error_t map_assuan_err (int err);
int map_to_assuan_status (int rc);
/*-- gettime.c --*/