summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2015-12-15Merge remote-tracking branch 'teor/feature4483-v10-squashed'Nick Mathewson
2015-12-16Prop210: Add schedules for simultaneous client consensus downloadsteor (Tim Wilson-Brown)
Prop210: Add attempt-based connection schedules Existing tor schedules increment the schedule position on failure, then retry the connection after the scheduled time. To make multiple simultaneous connections, we need to increment the schedule position when making each attempt, then retry a (potentially simultaneous) connection after the scheduled time. (Also change find_dl_schedule_and_len to find_dl_schedule, as it no longer takes or returns len.) Prop210: Add multiple simultaneous consensus downloads for clients Make connections on TestingClientBootstrapConsensus*DownloadSchedule, incrementing the schedule each time the client attempts to connect. Check if the number of downloads is less than TestingClientBootstrapConsensusMaxInProgressTries before trying any more connections.
2015-12-15Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-15Fix backtrace compilation on FreeBSDcypherpunks
On FreeBSD backtrace(3) uses size_t instead of int (as glibc does). This causes integer precision loss errors when we used int to store its results. The issue is fixed by using size_t to store the results of backtrace(3). The manual page of glibc does not mention that backtrace(3) returns negative values. Therefore, no unsigned integer wrapping occurs when its result is stored in an unsigned data type.
2015-12-15Remove obsolete INLINE preprocessor definitioncypherpunks
The INLINE keyword is not used anymore in favor of inline. Windows only supports __inline so an inline preprocessor definition is still needed.
2015-12-15Replace usage of INLINE with inlinecypherpunks
This patch was generated using; sed -i -e "s/\bINLINE\b/inline/" src/*/*.[ch] src/*/*/*.[ch]
2015-12-11Fix a pair of dead assignmentsNick Mathewson
2015-12-10Permit filesystem group to be rootJamie Nguyen
2015-12-10make stack-protector happyNick Mathewson
2015-12-10add a staticNick Mathewson
2015-12-10improve a comment in memwipeNick Mathewson
2015-12-10Merge remote-tracking branch 'public/feature17694_strongest_027'Nick Mathewson
2015-12-09Mark a couple more arguments as unused.Nick Mathewson
2015-12-09Small cleanups and comment fixes to rng functions.Nick Mathewson
2015-12-09try a little harder with getrandom types to avoid warningsNick Mathewson
2015-12-08mark a variable unused.Nick Mathewson
2015-12-08Fix comment switcheroo. Spotted by skruffyNick Mathewson
2015-12-08Merge branch 'feature13696_squashed'Nick Mathewson
2015-12-08Add support for getrandom() and getentropy() when availableYawning Angel
Implements feature #13696.
2015-12-08Always hash crypto_strongest_rand() along with some prngNick Mathewson
(before using it for anything besides feeding the PRNG) Part of #17694
2015-12-07Consistently ignore multicast in internal reject private exit policiesteor (Tim Wilson-Brown)
Consistently ignore multicast addresses when automatically generating reject private exit policies. Closes ticket 17763. Bug fix on 10a6390deb3c9, not in any released version of Tor. Patch by "teor".
2015-11-27use sockaddr_storage for stack-allocated sockets in ersatz socketpairNick Mathewson
2015-11-27Make SIZEOF_SOCKADDR return socklen_t to avoid bad compares.Nick Mathewson
2015-11-27Use uint16_t, not in_port_t (which does not exist on Windows). See #17638.Nick Mathewson
2015-11-25Merge branch 'bug17686_v2_027'Nick Mathewson
2015-11-25Fix documentation for crypto_rand*Nick Mathewson
2015-11-25Now that crypto_rand() cannot fail, it should return void.Nick Mathewson
2015-11-25Add crypto-initializer functions to those whose return values must be checkedNick Mathewson
2015-11-25Make crypto_seed_rng() and crypto_rand() less scary.Nick Mathewson
These functions must really never fail; so have crypto_rand() assert that it's working okay, and have crypto_seed_rng() demand that callers check its return value. Also have crypto_seed_rng() check RAND_status() before returning.
2015-11-26Check the return value of HMAC in crypto.c and assert on errorteor (Tim Wilson-Brown)
Fixes bug #17658; bugfix on commit in fdbb9cdf746b (11 Oct 2011) in tor version 0.2.3.5-alpha-dev.
2015-11-25Merge remote-tracking branch 'teor/comments-20151123'Nick Mathewson
2015-11-25Tweak gtank's sha512 patch a littleNick Mathewson
2015-11-24implement teor's commentsGeorge Tankersley
2015-11-24add SHA512 support to cryptoGeorge Tankersley
2015-11-23Fix comments to describe actual return values (crypto.c)teor (Tim Wilson-Brown)
2015-11-23Fix typo in comment on crypto_add_spaces_to_fpteor (Tim Wilson-Brown)
2015-11-23Comment only: crypto_seed_rng no longer has a "startup" parameterteor (Tim Wilson-Brown)
2015-11-20fix "make check-spaces"Nick Mathewson
2015-11-19Make tor_ersatz_socketpair work on IPv6-only systemsteor (Tim Wilson-Brown)
(But it won't work on some systems without IPv4/IPv6 localhost (some BSD jails) by design, to avoid creating sockets on routable IP addresses. However, those systems likely have the AF_UNIX socketpair, which tor prefers.) Fixes bug #17638; bugfix on a very early tor version, earlier than 22dba27d8dd5 (23 Nov 2004) / svn:r2943. Patch by "teor".
2015-11-18Update comments in get_interface_addresses_ioctlteor (Tim Wilson-Brown)
Comment-only change noting platforms that can return IPv6 addresses from SIOCGIFCONF (or SIOCGLIFCONF).
2015-11-13appease check-spacesNick Mathewson
2015-11-13Merge remote-tracking branch 'public/ticket11150_client_only'Nick Mathewson
2015-11-13Remove a little duplicated code in TAP key expansionNick Mathewson
patch from pfrankw; closes 17587.
2015-11-12Merge branch 'karsten_bug13192_026_03_teor'Nick Mathewson
2015-11-12Rename cast_double_to_int64 to clamp_double_to_int64Nick Mathewson
2015-11-12Make round_to_next_multiple_of always round upwards.Nick Mathewson
Yes, even if it has to return a non-multiple. This prevents us from ever having a bug where we try to use it for allocation, and under-allocate.
2015-11-10appease check-spacesNick Mathewson
2015-11-10every version of openssl we support has SSL_get_stateNick Mathewson
2015-11-10Every openssl we support has ERR_remove_thread_stateNick Mathewson
2015-11-10Move openssl version compatibility defines into a new header.Nick Mathewson