Changeset 12204 for trunk/libtransmission/crypto.c
- Timestamp:
- Mar 22, 2011, 3:19:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/crypto.c
r11717 r12204 84 84 RC4_KEY enc_key; 85 85 uint8_t torrentHash[SHA_DIGEST_LENGTH]; 86 tr_boolisIncoming;87 tr_booltorrentHashIsSet;88 tr_boolmySecretIsSet;86 bool isIncoming; 87 bool torrentHashIsSet; 88 bool mySecretIsSet; 89 89 uint8_t myPublicKey[KEY_LEN]; 90 90 uint8_t mySecret[KEY_LEN]; … … 336 336 tr_cryptoWeakRandInt( int upperBound ) 337 337 { 338 static tr_bool init = FALSE;338 static bool init = false; 339 339 340 340 assert( upperBound > 0 ); … … 343 343 { 344 344 srand( tr_time_msec( ) ); 345 init = TRUE;345 init = true; 346 346 } 347 347 … … 389 389 } 390 390 391 tr_bool391 bool 392 392 tr_ssha1_matches( const char * source, const char * pass ) 393 393 { … … 396 396 char * hashed; 397 397 uint8_t buf[SHA_DIGEST_LENGTH]; 398 tr_bool result;398 bool result; 399 399 400 400 /* extract the salt */ … … 411 411 hashed[0] = '{'; 412 412 413 result = strcmp( source, hashed ) == 0 ? TRUE : FALSE;413 result = strcmp( source, hashed ) == 0 ? true : false; 414 414 415 415 tr_free( hashed );
Note: See TracChangeset
for help on using the changeset viewer.