Changeset 3079


Ignore:
Timestamp:
Sep 15, 2007, 9:06:36 PM (14 years ago)
Author:
charles
Message:

tighten up some of the field widths in the Handshake internal struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/handshake.c

    r3077 r3079  
    7878{
    7979    unsigned int peerSupportsEncryption : 1;
     80    unsigned int havePeerID             : 1;
    8081    tr_peerIo * io;
    8182    tr_crypto * crypto;
     
    8788    uint16_t pad_c_len;
    8889    uint16_t pad_d_len;
    89     int ia_len;
    90     int crypto_select;
     90    uint16_t ia_len;
     91    uint32_t crypto_select;
    9192    uint8_t myReq1[SHA_DIGEST_LENGTH];
    9293    uint8_t peer_id[20];
    93     int have_peer_id;
    9494    handshakeDoneCB doneCB;
    9595    void * doneUserData;
     
    710710    tr_peerIoSetPeersId( handshake->io, handshake->peer_id );
    711711    bytesRead += sizeof(handshake->peer_id);
    712     handshake->have_peer_id = TRUE;
     712    handshake->havePeerID = TRUE;
    713713
    714714    assert( bytesRead == HANDSHAKE_SIZE );
     
    796796fireDoneCB( tr_handshake * handshake, int isConnected )
    797797{
    798     const uint8_t * peer_id = isConnected && handshake->have_peer_id
     798    const uint8_t * peer_id = isConnected && handshake->havePeerID
    799799        ? handshake->peer_id
    800800        : NULL;
Note: See TracChangeset for help on using the changeset viewer.