Changeset 3269 for trunk/libtransmission/peer-io.c
- Timestamp:
- Oct 2, 2007, 2:35:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-io.c
r3267 r3269 451 451 { 452 452 case PEER_ENCRYPTION_NONE: 453 /*fprintf( stderr, "writing %d plaintext bytes to outbuf...\n", byteCount );*/454 453 evbuffer_add( outbuf, bytes, byteCount ); 455 454 break; 456 455 457 456 case PEER_ENCRYPTION_RC4: 458 /*fprintf( stderr, "encrypting and writing %d bytes to outbuf...\n", byteCount );*/459 457 tmp = tr_new( uint8_t, byteCount ); 460 458 tr_cryptoEncrypt( io->crypto, byteCount, bytes, tmp ); … … 505 503 { 506 504 case PEER_ENCRYPTION_NONE: 507 /*fprintf( stderr, "reading %d plaintext bytes from inbuf...\n", byteCount );*/508 505 evbuffer_remove( inbuf, bytes, byteCount ); 509 506 break; 510 507 511 508 case PEER_ENCRYPTION_RC4: 512 /*fprintf( stderr, "reading AND DECRYPTING %d bytes from inbuf...\n", byteCount );*/513 509 evbuffer_remove( inbuf, bytes, byteCount ); 514 510 tr_cryptoDecrypt( io->crypto, byteCount, bytes, bytes );
Note: See TracChangeset
for help on using the changeset viewer.