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]); +#ifdef DEBUG_ONION_SKINS +#define PA(a,n) \ + { int _i; for (_i = 0; _i