aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-05-19Merge branch 'add_rust_squashed'Nick Mathewson
2017-05-19Allow Rust build using locally supplied crates or crates.ioSebastian Hahn
This adds a couple of configure commands to control whether we're requiring all dependencies to be available locally (default) or not (--enable-cargo-online-mode). When building from a tarball, we require the RUST_DEPENDENCIES variable to point to the local repository of crates. This also adds src/ext/rust as a git submodule that contains such a local repository for easy setup.
2017-05-19cargo-online-mode configure argumentSebastian Hahn
Passing --enable-cargo-online-mode during configure allows cargo to make network requests while building Tor or running tests. If this flag is not supplied, the dependencies need to be available in the form of a local mirror.
2017-05-19Add rustfmt.tomlSebastian Hahn
2017-05-19Run cargo test during make checkSebastian Hahn
2017-05-19Add some Rust utility functions and print supportSebastian Hahn
This gives an indication in the log that Tor was built with Rust support, as well as laying some groundwork for further string-returning APIs to be converted to Rust
2017-05-19Merge remote-tracking branch 'jigsaw/torrc-dir-fix-1922_squashed2'Nick Mathewson
2017-05-19Merge branch 'ticket21953_029'Nick Mathewson
2017-05-19Define HeapEnableTerminationOnCorruption if the headers don't.Nick Mathewson
MSDN says that it's always going to be 1, and they're usually pretty accurate about that. Fixes a bug in 21953.
2017-05-19fix typoRoger Dingledine
2017-05-18Add support for %include funcionality on torrc #1922Daniel Pinto
config_get_lines is now split into two functions: - config_get_lines which is the same as before we had %include - config_get_lines_include which actually processes %include
2017-05-18Merge branch 'maint-0.3.0'Nick Mathewson
2017-05-18Merge branch 'bug22252_029' into maint-0.3.0Nick Mathewson
2017-05-17Fixed error on BASEXX_NOPAD LEN and BUFSIZE macros #21872Daniel Pinto
2017-05-16Fix crash when starting with LearnCircuitBuildTimeout 0.Nick Mathewson
Before we've set our options, we can neither call get_options() nor networkstatus_get_latest_consensus(). Fixes bug 22252; bugfix on 4d9d2553baa6856b1d85ec26baa1ac3d2c24832a in 0.2.9.3-alpha.
2017-05-16Fix resource leak in parse_consensus_request()Nick Mathewson
We were allocating diff_hash_in_url on some URLs, but not freeing it. Fixes CID 1409669. Bug not in any released Tor.
2017-05-16Report deleted consensuses as NOT_FOUND rather than AVAILABLENick Mathewson
This bug happened because of a bogus pointer check in consdiffmgr_find_consensus(), not in any released Tor. Fixes CID 1409670. Good catch, Coverity!
2017-05-16Merge branch 'maint-0.3.0'Nick Mathewson
2017-05-16Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-05-16Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-05-16Update fallback directory mirrors in May 2017teor
Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in December 2016 (of which ~126 were still functional), with a list of 151 fallbacks (32 new, 119 existing, 58 removed) generated in May 2017. Resolves ticket 21564.
2017-05-15bump version to 0.3.0.7Nick Mathewson
2017-05-15Merge branch 'maint-0.3.0'Nick Mathewson
2017-05-15remove a variable I missedNick Mathewson
2017-05-15Do not try to uncompress an empty spoolNick Mathewson
2017-05-15fix a memory leakNick Mathewson
2017-05-15Test fix: always set address in new_dir_conn()Nick Mathewson
2017-05-15Dircache protocol version 2 adds support for diffsNick Mathewson
2017-05-15Try not to mess up caches with the X-Or-Diff-From-Consensus headerNick Mathewson
2017-05-15Split consensus-request parsing into a separate functionNick Mathewson
This ought to make the control flow a tiny bit more readable.
2017-05-15Prop140, continued: accept "diff/<HASH>" in URLs, per proposal.Nick Mathewson
2017-05-15Merge remote-tracking branch 'public/prop140_aftermath_cfg'Nick Mathewson
2017-05-15Merge branch 'ahf_bugs_21667_2_squashed'Nick Mathewson
2017-05-15Fix dir_handle_get/... test-cases for prop#278 support.Alexander Færøy
See: https://bugs.torproject.org/21667
2017-05-15dir_handle_get: repair two test cases, note the fixes for 3 othersNick Mathewson
2017-05-15Handle non-compressed requests gracefully.Alexander Færøy
This patch makes us use FALLBACK_COMPRESS_METHOD to try to fetch an object from the consensus diff manager in case no mutually supported result was found. This object, if found, is then decompressed using the spooling system to the client. See: https://bugs.torproject.org/21667
2017-05-15Remove old consensus fetching code from handle_get_current_consensus().Alexander Færøy
This patch removes the calls to spooled_resource_new() when trying to download the consensus. All calls should now be going through the consdiff manager. See: https://bugs.torproject.org/21667
2017-05-15Fix too wide line from `make check-spaces`.Alexander Færøy
See: https://bugs.torproject.org/21667
2017-05-15Check for best consensus when no consensusdiff was found.Alexander Færøy
This patch ensures that we use the current consensus in the case where no consensus diff was found or a consensus diff wasn't requested. See: https://bugs.torproject.org/21667
2017-05-15Copy valid/fresh-until and signatories values into diffs.Nick Mathewson
2017-05-15Store fresh/valid-until and signatories values on all consensus objects.Nick Mathewson
2017-05-15Implement functions to expose valid/fresh-until and votersNick Mathewson
These still won't do anything till I get the values to be filled in. Also, I changed the API a little (with corresponding changes in directory.c) to match things that it's easier to store.
2017-05-15Move stub accessor functions a level higher, to consdiffmgrNick Mathewson
2017-05-15Fetch the current consensus from the conscache subsystem.Alexander Færøy
This patch changes handle_get_current_consensus() to make it read the current consensus document from the consensus caching subsystem. See: https://bugs.torproject.org/21667
2017-05-15Initialize the HS cache at startupNick Mathewson
Failure to do this caused an assertion failure with #22246 . This assertion failure can be triggered remotely, so we're tracking it as medium-severity TROVE-2017-002.
2017-05-15Merge branch 'bug22245_024'Nick Mathewson
2017-05-15Add hs_test_helpers.h to noinst_HEADERSNick Mathewson
2017-05-15Fix a logic error in hibernate.cNick Mathewson
Closes bug 22245; bugfix on 0.0.9rc1, when bandwidth accounting was first introduced. Found by Andrey Karpov and reported at https://www.viva64.com/en/b/0507/
2017-05-15Fix assertion to actually have a chance of failingNick Mathewson
This assertion can only fail if we mess up some of our other code, but let's try to get it right. Closes 22244.
2017-05-15Merge branch 'bug18100_029'Nick Mathewson