aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-05-21 13:00:00 +0000
committerWerner Koch <[email protected]>2013-05-22 07:56:45 +0000
commitcb6a64bb78296c8e9f72df0c482ff847e89a1541 (patch)
treea7ae8bac97bd9c639c2984c6f3ddeb7f42b07601 /common/util.h
parentagent: Fix length detection of canonical formatted openpgp keys. (diff)
downloadgnupg-cb6a64bb78296c8e9f72df0c482ff847e89a1541.tar.gz
gnupg-cb6a64bb78296c8e9f72df0c482ff847e89a1541.zip
New debug functions log_printcanon and log_printsexp.
* common/sexputil.c (sexp_to_string, canon_sexp_to_string): New. (log_printcanon, log_printsexp): New. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 73ba84e41..13b702ce5 100644
--- a/common/util.h
+++ b/common/util.h
@@ -167,6 +167,11 @@ gpg_error_t b64dec_finish (struct b64state *state);
/*-- sexputil.c */
+char *canon_sexp_to_string (const unsigned char *canon, size_t canonlen);
+void log_printcanon (const char *text,
+ const unsigned char *sexp, size_t sexplen);
+void log_printsexp (const char *text, gcry_sexp_t sexp);
+
gpg_error_t make_canon_sexp (gcry_sexp_t sexp,
unsigned char **r_buffer, size_t *r_buflen);
gpg_error_t make_canon_sexp_pad (gcry_sexp_t sexp, int secure,