Changeset 3132
- Timestamp:
- Sep 22, 2007, 4:44:50 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/handshake.c
r3130 r3132 884 884 uint32_t crypto_select; 885 885 886 dbgmsg( handshake, "zbz reading IA..." ); 886 887 if( EVBUFFER_LENGTH(inbuf) < needlen ) 887 888 return READ_MORE; 888 889 890 dbgmsg( handshake, "zbz reading IA..." ); 889 891 /* parse the handshake ... */ 890 892 i = parseHandshake( handshake, inbuf ); … … 903 905 /* send crypto_select */ 904 906 { 907 dbgmsg( handshake, "handshake->crypto_provide is %d\n", (int)handshake->crypto_provide ); 905 908 if( handshake->crypto_provide & CRYPTO_PROVIDE_CRYPTO ) 906 909 crypto_select = CRYPTO_PROVIDE_CRYPTO; … … 908 911 crypto_select = CRYPTO_PROVIDE_PLAINTEXT; 909 912 else { 913 dbgmsg( handshake, "gronk..." ); 910 914 evbuffer_free( outbuf ); 911 915 tr_handshakeDone( handshake, FALSE ); … … 1067 1071 handshake->io = io; 1068 1072 handshake->crypto = tr_peerIoGetCrypto( io ); 1069 handshake->allowUnencryptedPeers = encryption_mode!=TR_ENCRYPTION_REQUIRED;1073 handshake->allowUnencryptedPeers = 0;//encryption_mode!=TR_ENCRYPTION_REQUIRED; 1070 1074 handshake->doneCB = doneCB; 1071 1075 handshake->doneUserData = doneUserData; -
trunk/libtransmission/peer-mgr.c
r3129 r3132 655 655 handshake, 656 656 handshakeCompare ); 657 assert( ours != NULL );658 assert( ours == handshake );657 //assert( ours != NULL ); 658 //assert( ours == handshake ); 659 659 660 660 in_addr = tr_peerIoGetAddress( io, &port ); … … 741 741 assert( peer != NULL ); 742 742 743 #if 0 743 744 if( peer->io != NULL ) { /* already connected */ 744 745 fprintf( stderr, "not connecting because we already have an IO for that address\n" ); … … 759 760 t->hash ); 760 761 initiateHandshake( manager, io ); 762 #endif 761 763 } 762 764 -
trunk/libtransmission/peer-msgs.c
r3130 r3132 790 790 canDownload( const tr_peermsgs * msgs UNUSED ) 791 791 { 792 #if 0793 792 tr_torrent * tor = msgs->torrent; 794 793 … … 798 797 if( tor->downloadLimitMode == TR_SPEEDLIMIT_SINGLE ) 799 798 return tr_rcCanTransfer( tor->download ); 800 #endif801 799 802 800 return TRUE;
Note: See TracChangeset
for help on using the changeset viewer.