diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-22 10:34:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-22 10:34:00 +0000 |
commit | e07e0a4732d17f9225ade848f244ae7ea70f7208 (patch) | |
tree | 7ad6f85defbb61cda3fef54282cd049395fa18a9 /src/or/relay.c | |
parent | c4470cbedf762292325fd3b39476dc467bce05ea (diff) | |
download | tor-e07e0a4732d17f9225ade848f244ae7ea70f7208.tar.gz tor-e07e0a4732d17f9225ade848f244ae7ea70f7208.zip |
remove obsolete code
svn:r3809
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 4c33b0381a..5fd5be9097 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -107,18 +107,13 @@ static int relay_digest_matches(crypto_digest_env_t *digest, cell_t *cell) { static int relay_crypt_one_payload(crypto_cipher_env_t *cipher, char *in, int encrypt_mode) { char out[CELL_PAYLOAD_SIZE]; /* 'in' must be this size too */ -// relay_header_t rh; -// relay_header_unpack(&rh, in); -// log_fn(LOG_DEBUG,"before crypt: %d",rh.recognized); if (( encrypt_mode && crypto_cipher_encrypt(cipher, out, in, CELL_PAYLOAD_SIZE)) || (!encrypt_mode && crypto_cipher_decrypt(cipher, out, in, CELL_PAYLOAD_SIZE))) { log_fn(LOG_WARN,"Error during relay encryption"); return -1; } memcpy(in,out,CELL_PAYLOAD_SIZE); -// relay_header_unpack(&rh, in); -// log_fn(LOG_DEBUG,"after crypt: %d",rh.recognized); return 0; } |