aboutsummaryrefslogtreecommitdiffstats
path: root/sm/util.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sm/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sm/util.h b/sm/util.h
index f3b4ab7b5..c0fc6667e 100644
--- a/sm/util.h
+++ b/sm/util.h
@@ -23,6 +23,10 @@
#include <gcrypt.h> /* we need this for the memory function protos */
+/* to pass the fucntion to libksba we need to cast it */
+#define HASH_FNC ((void (*)(void *, const byte*,size_t))gcry_md_write)
+
+
#include "../jnlib/logging.h"
#include "../jnlib/argparse.h"
#include "../jnlib/stringhelp.h"
@@ -46,5 +50,9 @@
/*-- misc.c --*/
int map_ksba_err (int err);
+int map_gcry_err (int err);
+int map_kbx_err (int err);
#endif /*UTIL_H*/
+
+