| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | tor-netdir: Add a by_id_pair() function to look up a relay by both IDs. | Nick Mathewson | 2021-09-16 | 1 | -1/+21 | |
| | | | ||||||
| * | | Merge remote-tracking branch 'origin/mr/82' | Nick Mathewson | 2021-09-16 | 4 | -11/+11 | |
| |\ \ | ||||||
| | * | | Do not use set_ prefix on derive_builder setters | Jani Monoses | 2021-09-16 | 4 | -11/+11 | |
| | | | | ||||||
| * | | | Add small qualifiers on android.md | Nick Mathewson | 2021-09-16 | 1 | -0/+5 | |
| | | | | ||||||
| * | | | fix typo and change upstream link | Trinity Pointard | 2021-09-15 | 1 | -7/+6 | |
| | | | | ||||||
| * | | | document android building | Trinity Pointard | 2021-09-14 | 1 | -0/+152 | |
| |/ / | ||||||
| * | | Update maint/Cargo.lock again. | Nick Mathewson | 2021-09-13 | 1 | -8/+8 | |
| | | | ||||||
| * | | Merge remote-tracking branch 'origin/mr/80' | Nick Mathewson | 2021-09-13 | 2 | -130/+120 | |
| |\ \ | ||||||
| | * | | update misc/Cargo.lock | Trinity Pointard | 2021-09-12 | 1 | -130/+117 | |
| | | | | ||||||
| | * | | CI: make fail when new deps not in misc/Cargo.lock | Trinity Pointard | 2021-09-12 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently adding new deps can cause builds to not be reproducibles because that new dependancies don't have their versions frozen in misc/Cargo.lock. This make so CI reject commits in that situation, with a message telling what to do to fix the issue. | |||||
| * | | | derive 'Default' where possible | Daniel Eades | 2021-09-11 | 2 | -17/+2 | |
| |/ / | ||||||
| * | | Add identity-based accessors (and indices) to NetDir. | Nick Mathewson | 2021-09-10 | 1 | -36/+152 | |
| | | | | | | | | | | | | | (Thank goodness for rust; we messed up the coherency in C here so many times, but I'm pretty sure that this time around we can't have gotten it wrong.) | |||||
| * | | Merge remote-tracking branch 'origin/mr/77' | Nick Mathewson | 2021-09-10 | 3 | -12/+22 | |
| |\ \ | ||||||
| | * | | Create a separate logging section in config. | Jani Monoses | 2021-09-09 | 3 | -12/+22 | |
| | | | | ||||||
| * | | | Use derive_builder for Authority and FallbackDir. | Nick Mathewson | 2021-09-10 | 4 | -125/+23 | |
| | | | | ||||||
| * | | | Suppress a cognitive-complexity lint in tests | Nick Mathewson | 2021-09-09 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | Typo fixes | Nick Mathewson | 2021-09-09 | 5 | -11/+11 | |
| | | | | ||||||
| * | | | Add guard-related network parameters. | Nick Mathewson | 2021-09-09 | 1 | -3/+118 | |
| | | | | ||||||
| * | | | Add an IntegerDays numeric type. | Nick Mathewson | 2021-09-09 | 1 | -0/+54 | |
| | | | | ||||||
| * | | | Use macros and traits to simplify the declaration of parameters. | Nick Mathewson | 2021-09-09 | 2 | -135/+173 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we'd have to declare the field for a parameter in one place, its default in a second, and its consensus key in a third. That's error-prone and not so fun! This patch changes the way we declare parameters so that we declare a structure once, and macros expand it to all do the right thing. This required a few new traits and implementations to ensure uniformity across the types that can go in parameters: We need every parameter type to implement TryFrom<i32> and to implement SaturatingFromInt32. Eventually we might want SaturatingFromInt32 to be a more generic SaturatingFrom, but that's not for now. | |||||
| * | | | Use derive_builder for the rest of tor_dirmgr::config | Nick Mathewson | 2021-09-09 | 2 | -83/+24 | |
| | | | | ||||||
| * | | | Use derive_builder for DownloadScheduleConfig | Nick Mathewson | 2021-09-08 | 1 | -66/+7 | |
| | | | | ||||||
| * | | | Use derive_builder for NetworkConfig. | Nick Mathewson | 2021-09-08 | 4 | -148/+43 | |
| |/ / | ||||||
| * | | run CI only on amd64 runners | Trinity Pointard | 2021-09-08 | 1 | -0/+7 | |
| | | | ||||||
| * | | Merge remote-tracking branch 'origin/mr/73' | Nick Mathewson | 2021-09-08 | 3 | -7/+33 | |
| |\ \ | ||||||
| | * | | Make journald an optional feature. | Jani Monoses | 2021-09-07 | 2 | -7/+9 | |
| | | | | ||||||
| | * | | Do not log to journald by default | Jani Monoses | 2021-09-07 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Allow logging to journald. | Jani Monoses | 2021-09-07 | 3 | -7/+31 | |
| | | | | | | | | | | | | | | | | Log to journald when available, add journald config option. Separate logging setup into its own function. | |||||
| * | | | Fix clippy warnings in tests with --all-features | Nick Mathewson | 2021-09-08 | 2 | -10/+9 | |
| | | | | ||||||
| * | | | Fix/suppress a few more clippy lints in tests. | Nick Mathewson | 2021-09-08 | 6 | -9/+14 | |
| | | | | | | | | | | | | | | | | I'm alright with allowing cognitive-complexity violations in the tests. | |||||
| * | | | Merge remote-tracking branch 'origin/mr/71' | Nick Mathewson | 2021-09-08 | 84 | -113/+197 | |
| |\ \ \ | ||||||
| | * | | | run clippy on test modules | Daniel Eades | 2021-09-08 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | fix/silence clippy lints in test modules | Daniel Eades | 2021-09-08 | 84 | -112/+197 | |
| | | | | | ||||||
| * | | | | Check for correct-ish decoding of all parameters. | Nick Mathewson | 2021-09-08 | 1 | -4/+77 | |
| | | | | | ||||||
| * | | | | Add validation function to WeightSet | Nick Mathewson | 2021-09-08 | 1 | -1/+18 | |
| | | | | | | | | | | | | | | | | | | | | | Our relay selection code can give wrong answers if we overflow u64::MAX, so let's make sure we never do that. | |||||
| * | | | | Replace weighted-choice code with rand::seq::SliceRandom. | Nick Mathewson | 2021-09-08 | 3 | -231/+159 | |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | Doing this makes the code faster, lets us throw away some code, and makes it easier to add a "choose-N-disjoint relays" implementation. See large comment about plusses and minuses of new code. (Note that the old implementation wasn't constant-time either.) | |||||
| * | | | More tests in pareto.rs | Nick Mathewson | 2021-09-08 | 1 | -9/+47 | |
| | | | | ||||||
| * | | | Latest arti-corpora. | Nick Mathewson | 2021-09-07 | 1 | -0/+0 | |
| | | | | ||||||
| * | | | Use same defaults for abandon and close times in timeout code. | Nick Mathewson | 2021-09-07 | 1 | -6/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On torspec!40, Mike says: I don't think there is a practical difference here. As per Section 2.4.5, if 60 seconds is not enough and causes the liveness test to fail due to too many timeouts, we will double the initial timeout. This makes our behavior the same as C tor. | |||||
| * | | | Stop making abandoned/successful circuit counts persistent | Nick Mathewson | 2021-09-07 | 1 | -22/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C Tor implementation doesn't do this, and Mike says: I think it is a reasonable enough assumption that if Tor has restarted, this kind data is no longer fresh enough to be accurate for this purpose. This is also only 20 circuits here, and typical timeouts are now around 1-2 seconds or less.. So a restarted client with a timeout that is too low for a new internet connection will figure this out pretty quickly. I think that is OK. (from torspec!40) | |||||
| * | | | A little more test coverage in tor-circmgr::mgr | Nick Mathewson | 2021-09-07 | 2 | -6/+36 | |
| | | | | ||||||
| * | | | tor_circmgr::mgr -- refactor some duplicate code. | Nick Mathewson | 2021-09-07 | 1 | -20/+32 | |
| | | | | ||||||
| * | | | Rename pick_action to clarify that it can modify self | Nick Mathewson | 2021-09-07 | 1 | -5/+5 | |
| | | | | ||||||
| * | | | Exclude tor-bytes fuzzing helper code from tarpaulin coverage. | Nick Mathewson | 2021-09-07 | 1 | -2/+2 | |
| | | | | ||||||
| * | | | Update corpus and links. | Nick Mathewson | 2021-09-07 | 7 | -7/+7 | |
| | | | | ||||||
| * | | | Fix bugs in last fuzzer code. | Nick Mathewson | 2021-09-07 | 1 | -2/+3 | |
| | | | | ||||||
| * | | | Merge remote-tracking branch 'origin/mr/72' | Nick Mathewson | 2021-09-07 | 1 | -1/+1 | |
| |\ \ \ | ||||||
| | * | | | use https submodule | Trinity Pointard | 2021-08-30 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Improvements to array-of-u8 handling in tor-bytes. | Nick Mathewson | 2021-09-07 | 3 | -50/+112 | |
| | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have const generics, we can use them. We can also avoid an extra clone in the implementation for [u8; N]. Nothing in our codebase requires that we use Reader or Writer on a GenericArray holding anything other than u8, so I've switched back to the more efficient implementation there. I've added a fuzzer case for the new method, but apparently rustc nightly isn't working too well with fuzzers for me; I'm going to try it tomorrow. | |||||
| * | | | Document every macro. | Nick Mathewson | 2021-09-07 | 6 | -2/+12 | |
| | | | | | | | | | | | | | | | | (The nightly version of clippy now includes macros for its missing_docs_in_private_items lint.) | |||||
