]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
remove obsolete code
authorRoger Dingledine <arma@torproject.org>
Tue, 22 Mar 2005 10:34:00 +0000 (10:34 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 22 Mar 2005 10:34:00 +0000 (10:34 +0000)
svn:r3809

src/or/relay.c

index 4c33b0381a25d8205690f5ca92ab30f1514a525c..5fd5be9097cb3fde73176e6199812d7cff08083c 100644 (file)
@@ -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;
 }