~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to libtransmission/handshake.c

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Benner
  • Date: 2007-11-22 12:37:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122123714-b0xi4zxhgk5qwbmc
Tags: 0.93.dfsg-2
* Added missing build-dependency (python).
* debian/control: switching to Homepage, Vcs-Browser and Vcs-Svn official
  fields (Leo "costela" Antunes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: handshake.c 3605 2007-10-27 21:29:39Z charles $
 
10
 * $Id: handshake.c 3681 2007-11-01 18:40:13Z charles $
11
11
 */
12
12
 
13
13
#include <assert.h>
810
810
{
811
811
    int i;
812
812
    const size_t needlen = handshake->ia_len;
813
 
    struct evbuffer * outbuf = evbuffer_new( );
 
813
    struct evbuffer * outbuf;
814
814
    uint32_t crypto_select;
815
815
 
816
816
dbgmsg( handshake, "reading IA... have %d, need %d", (int)EVBUFFER_LENGTH(inbuf), (int)needlen );
822
822
    i = parseHandshake( handshake, inbuf );
823
823
dbgmsg( handshake, "parseHandshake returned %d", i );
824
824
    if( i != HANDSHAKE_OK ) {
825
 
        evbuffer_free( outbuf );
826
825
        tr_handshakeDone( handshake, FALSE );
827
826
        return READ_DONE;
828
827
    }
832
831
    **/
833
832
 
834
833
    tr_cryptoEncryptInit( handshake->crypto );
 
834
    outbuf = evbuffer_new( );
835
835
 
836
836
dbgmsg( handshake, "sending vc" );
837
837
    /* send VC */