aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-06-21Merge branch 'additional_rust_test_fixes' into maint-0.3.4Nick Mathewson
2018-06-21Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-06-20fix memory leak in protover.cRoger Dingledine
Fix a memory leak where directory authorities would leak a chunk of memory for every router descriptor every time they considered voting. This bug was taking down directory authorities in the live network due to out-of-memory issues. Fixes bug 26435; bugfix on 0.3.3.6.
2018-06-20add build.rs to EXTRA_DISTNick Mathewson
2018-06-20eol@eof is still the law in 0.3.4 :(Nick Mathewson
2018-06-20Add a leak suppression for backtrace_allocNick Mathewson
This appears to be an internal rust thing: I don't know why it's leaking. We should investigate further.
2018-06-20Merge branch 'maint-0.3.4' into additional_rust_test_fixesNick Mathewson
2018-06-20Fix clang warnings introduced by 9f2b887c5d251b93ee9def708Nick Mathewson
2018-06-20Fix memory leak in CryptoDigest typeNick Mathewson
If you're owning a C pointer, you need to implement Drop.
2018-06-20Disable doctests in src/rust/crypto module.Nick Mathewson
These all need C linking to work, and so far, rustdoc does not seem to respect cargo setting about build scripts or RUSTOPTIONS.
2018-06-20Fix bugs in rust digest testsNick Mathewson
2018-06-20Merge branch 'rust_build_script_v3' into additional_rust_test_fixesNick Mathewson
2018-06-20rust: Remove --all-features flag from `cargo test` call in test_rust.sh.Isis Lovecruft
We'd like to feature gate code that calls C from Rust, as a workaround to several linker issues when running `cargo test` (#25386), and we can't feature gate anything out of test code if `cargo test` is called with `--all-features`. * FIXES #26400: https://bugs.torproject.org/26400
2018-06-20eol@eof in test-dir.cNick Mathewson
2018-06-20Merge branch 'asn_bug24977_final_squashed' into maint-0.3.4Nick Mathewson
2018-06-20Recreate nodelist before use if it's outdated.George Kadianakis
We currently only do the check when we are about to use the HSDir indices.
2018-06-20Recreate voting schedule before use if it's outdated.George Kadianakis
2018-06-20rust: Remove redundant "testing" feature from tor_log crate.Isis Lovecruft
It was synonymous with the builtin "test" feature. * FIXES #26399: https://bugs.torproject.org/26399
2018-06-20Enable DEBUG_SMARTLIST in unit testsrl1987
2018-06-20Refrain from accessing empty smartlist in test_bridges_clear_bridge_listrl1987
Just check that smartlist length is zero instead
2018-06-20Merge remote-tracking branch 'catalyst-github/bug26415_034' into maint-0.3.4Nick Mathewson
2018-06-19Fix linker errors when building Tor.Alexander Færøy
This patch fixes linking errors when compiling Tor with the dirauth module disabled. See: https://bugs.torproject.org/26418
2018-06-19Fix compilation of Rust crypto doctestsTaylor Yu
The doctests for src/rust/crypto don't compile for multiple reasons, including some missing exports and incorrect identifier paths. Fixes bug 26415; bugfix on 0.3.4.1-alpha.
2018-06-19Use a rust build script to set linker options correctly for tests.Nick Mathewson
We need this trick because some of our Rust tests depend on our C code, which in turn depend on other native libraries, which thereby pulls a whole mess of our build system into "cargo test". To solve this, we add a build script (build.rs) to set most of the options that we want based on the contents of config.rust. Some options can't be set, and need to go to the linker directly: we use a linker replacement (link_rust.sh) for these. Both config.rust and link_rust.sh are generated by autoconf for us. This patch on its own should enough to make the crypto test build, but not necessarily enough to make it pass.
2018-06-18Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.aNick Mathewson
This was already added to LIBTOR_A_SOURCES; it doesn't need to get added again. Fixes bug 26402. Bugfix on 0.3.4.1-alpha.
2018-06-18Revert "Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a"Nick Mathewson
This reverts commit 70d91bd059869a0ecf24ceb66942ada4f66f03c9.
2018-06-18Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.aNick Mathewson
This was already added to LIBTOR_A_SOURCES; it doesn't need to get added again. Fixes bug 26402. Bugfix on 0.3.4.1-alpha.
2018-06-16Changes to make the rust crypto::mod tests compileNick Mathewson
The digest tests don't link yet, though.
2018-06-16Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-06-16Fix a bug in my fix for #26258Nick Mathewson
The fix here is use a different bourne shell subsitution for CARGO_ONLINE, so that an empty string counts as set.
2018-06-16Merge remote-tracking branch 'isis/bug26267' into maint-0.3.4Nick Mathewson
2018-06-16Merge remote-tracking branch 'isis/bug26245' into maint-0.3.4Nick Mathewson
2018-06-15rust: Remove unused N_DIGEST_ALGORITHMS constant from crypto_digest.rs.Isis Lovecruft
In the C code, this constant is only ever used in src/test/bench.c. * FIXES part of #26245: https://bugs.torproject.org/26245
2018-06-15rust: Add comment and pragma on "unused" smartlist_t type.Isis Lovecruft
* FIXES part of #26245: https://bugs.torproject.org/26245
2018-06-15Make Rust warnings conditionally fatalTaylor Yu
Set rustc flags to treat warnings as fatal if configured with --enable-warnings.
2018-06-15rust: Expose rand module from crypto crate.Isis Lovecruft
2018-06-15Bump master to 0.3.5.0-alpha-devtor-0.3.5.0-alpha-devNick Mathewson
2018-06-15Set default-features = false for rand_coreTaylor Yu
Apparently rand and rand_core need to be built with the "std" feature set consistently, or there will be a compile error in rngs/jitter.rs.
2018-06-14Merge branch 'maint-0.3.3'Nick Mathewson
2018-06-14Merge remote-tracking branch 'public/bug26258_033' into maint-0.3.3Nick Mathewson
2018-06-13squash! Make sure that the test_rust.sh script fails when a test failsNick Mathewson
Also make sure that we're actually running the test from within the right cwd, like we do when we're building. This seems necessary to avoid an error when running offline. Amusingly, it appears that we had this bug before: we just weren't noticing it, because of bug 26258.
2018-06-13Merge remote-tracking branch 'asn-github/bug26358'Nick Mathewson
2018-06-13Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-06-13Merge branch 'maint-0.3.3'Nick Mathewson
2018-06-13Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-06-13Merge branch 'bug26158_031' into maint-0.3.1Nick Mathewson
2018-06-13Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-06-13Merge branch 'maint-0.3.3'Nick Mathewson
2018-06-13Merge branch 'bug25686_diagnostic_032' into maint-0.3.2Nick Mathewson
2018-06-13Merge remote-tracking branch 'rl1987/bug24891'Nick Mathewson