aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-18 19:22:56 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-18 19:22:56 +0000
commit208625ae3188055506fdceb6720b97cf3efade11 (patch)
tree01ec19b1029d9a06173f97a84b255bd1b2717eb8 /src/or/onion.c
parentc01253da96876a69e99db8ec7662fb335e59aca9 (diff)
downloadtor-208625ae3188055506fdceb6720b97cf3efade11.tar.gz
tor-208625ae3188055506fdceb6720b97cf3efade11.zip
clean up some presentation and comments
svn:r1294
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index e71c68f1a5..8293b27dcb 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -131,15 +131,15 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
memcpy(cell.payload, payload, ONIONSKIN_REPLY_LEN);
- log_fn(LOG_INFO,"init digest forward %d, backward %d.",
- (int)*(uint32_t*)(keys), (int)*(uint32_t*)(keys+20));
+ log_fn(LOG_INFO,"init digest forward 0x%.8x, backward 0x%.8x.",
+ (unsigned int)*(uint32_t*)(keys), (unsigned int)*(uint32_t*)(keys+20));
circ->n_digest = crypto_new_digest_env(CRYPTO_SHA1_DIGEST);
crypto_digest_add_bytes(circ->n_digest, keys, 20);
circ->p_digest = crypto_new_digest_env(CRYPTO_SHA1_DIGEST);
crypto_digest_add_bytes(circ->p_digest, keys+20, 20);
- log_fn(LOG_DEBUG,"init cipher forward %d, backward %d.",
- (int)*(uint32_t*)(keys+40), (int)*(uint32_t*)(keys+40+16));
+ log_fn(LOG_DEBUG,"init cipher forward 0x%.8x, backward 0x%.8x.",
+ (unsigned int)*(uint32_t*)(keys+40), (unsigned int)*(uint32_t*)(keys+40+16));
if (!(circ->n_crypto =
crypto_create_init_cipher(CIRCUIT_CIPHER,keys+40,iv,0))) {
log_fn(LOG_WARN,"Cipher initialization failed (n).");