summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2015-12-18mark a variable unused to fix a warning.Nick Mathewson
2015-12-18Remove an extra space in backtrace version stringcypherpunks
2015-12-18Move some more code inside a tortls.c ifdef to fix deadcode warning.Nick Mathewson
2015-12-18Fix a coverity NULL-pointer deref warning in the tortls tests.Nick Mathewson
Also, make our cert validation code more NULL-resistant. This is CID 1327891.
2015-12-18Fix some dead code in tortls.cNick Mathewson
If SSL_CIPHER_find exists, then we won't use either of the two kludges that would replace it. Found by Coverity; fixes CID 1340256.
2015-12-17Improve warning messagecypherpunks
The user parameter is not checked so we do not know the user has been specified.
2015-12-16Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-16Don't call pthread_condattr_setclock() unless it existsNick Mathewson
Fixes bug 17819; bugfix on 0.2.6.3-alpha (specifically, d684dbb0).
2015-12-16Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-16... and fix another backtrace_symbols_fd call in sandbox.cNick Mathewson
2015-12-16... and fix the linux backtrace_symbols{,_fd} callsNick Mathewson
2015-12-16Merge remote-tracking branch 'teor/feature17863'Nick Mathewson
2015-12-16... and fix the linux backtrace_symbols{,_fd} callsNick Mathewson
2015-12-16Limit IPv6 mask bits to 128teor (Tim Wilson-Brown)
2015-12-15Merge branch 'feature8195_small_squashed'Nick Mathewson
2015-12-15Update KeepCapabilities based on comments from asnNick Mathewson
* The option is now KeepBindCapabilities * We now warn if the user specifically asked for KeepBindCapabilities and we can't deliver. * The unit tests are willing to start. * Fewer unused-variable warnings. * More documentation, fewer misspellings.
2015-12-15Add ability to keep the CAP_NET_BIND_SERVICE capability on LinuxNick Mathewson
This feature allows us to bind low ports when starting as root and switching UIDs. Based on code by David Goulet. Implement feature 8195
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