commit | 4e076d746f2574ce3ce82950ce90c0187a9dc612 | [log] [tgz] |
---|---|---|
author | Giovanni Bajo <rasky@develer.com> | Fri Apr 27 03:24:12 2012 +0200 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Aug 20 15:41:21 2013 +0100 |
tree | 2e0a45aa61bf8690dadb996b4e7da9d6de022601 | |
parent | 13e435ebcaa5170879218d1c8c28178c90fefacf [diff] [blame] |
Debug function.
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 @@ } 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_;