From cb6a64bb78296c8e9f72df0c482ff847e89a1541 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 21 May 2013 14:00:00 +0100 Subject: 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 --- common/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/util.h') 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, -- cgit v1.2.3