From 4e076d746f2574ce3ce82950ce90c0187a9dc612 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Fri, 27 Apr 2012 03:24:12 +0200 Subject: [PATCH] Debug function. --- src/dnssec-openssl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dnssec-openssl.c b/src/dnssec-openssl.c index 59504c4..5a0869f 100644 --- a/src/dnssec-openssl.c +++ b/src/dnssec-openssl.c @@ -36,6 +36,16 @@ static union _Pool } Pool[POOL_SIZE]; static char pool_used = 0; +static void print_hex(unsigned char *data, unsigned len) +{ + while (len > 0) + { + printf("%02x", *data++); + --len; + } + printf("\n"); +} + static int rsasha1_set_signature(VerifyAlgCtx *ctx_, unsigned char *data, unsigned len) { VACTX_rsasha1 *ctx = (VACTX_rsasha1 *)ctx_;