From: Nick Mathewson Date: Fri, 13 Jun 2003 21:23:14 +0000 (+0000) Subject: Better test messages for onion skin bug X-Git-Tag: tor-0.0.2pre8~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6250b90ac211a67bb7e36c9911f31b06154bb7df;p=thirdparty%2Ftor.git Better test messages for onion skin bug svn:r319 --- diff --git a/src/or/onion.c b/src/or/onion.c index 77bc624dd8..cf4fae5315 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -418,14 +418,19 @@ onion_skin_create(crypto_pk_env_t *dest_router_key, if (crypto_dh_get_public(dh, pubkey+16, dhbytes)) goto err; -#if 0 - printf("Client DH sent: %x %x %x ... %x %x %x\n", - (int) pubkey[16], (int) pubkey[17], (int) pubkey[18], - (int) pubkey[205], (int) pubkey[206], (int) pubkey[207]); - - printf("Client key sent: %x %x %x ... %x %x %x\n", - pubkey[0],pubkey[1],pubkey[2], - pubkey[13],pubkey[14],pubkey[15]); +#ifdef DEBUG_ONION_SKINS +#define PA(a,n) \ + { int _i; for (_i = 0; _i