summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | tor-guardmgr: Add a TODO about a call that needs to be relocated.Gabriela Moldovan2024-04-221-0/+10
|/ / | | | | | | This TODO is fixed later in the branch.
* | Merge branch 'relay-usage' into 'main'gabi-2502024-04-224-4/+26
|\ \ | |/ |/| | | | | | | | | tor-relay-selection: Introduce RelayUsage::vanguard. Closes #1364 See merge request tpo/core/arti!2093
| * tor-guardmgr: Use RelayUsage::vanguard in the VanguardMgr.Gabriela Moldovan2024-04-222-3/+2
| | | | | | | | Closes #1364
| * tor-relay-selection: Introduce RelayUsage::vanguard.Gabriela Moldovan2024-04-222-1/+24
|/ | | | | | | | | | | This adds a new `RelayUsage` for vanguards. As per the original [vanguards implementation], vanguards must: * have the Fast, Stable, and Valid flags * be selected using the `Middle` weight Part of #1364 [vanguards implementation]: https://github.com/mikeperry-tor/vanguards
* Merge branch 'upgrade-rustls' into 'main'gabi-2502024-04-225-53/+78
|\ | | | | | | | | | | | | Upgrade to futures-rustls 0.26.0, rustls 0.23.5. Closes #1377 See merge request tpo/core/arti!2095
| * Add a note about CryptoProvicder.Nick Mathewson2024-04-221-0/+4
| |
| * rustls: Avoid aws-lc-rs for now.Nick Mathewson2024-04-223-166/+2
| |
| * Upgrade to futures-rustls 0.26.0, rustls 0.23.5.Nick Mathewson2024-04-225-53/+238
| | | | | | | | | | | | | | | | | | The rustls upgrade will solve #1377 and CVE-2024-32650. Note that we've had to patch our RustlsProvider impl a bit in order to keep the tests passing. See comments. Closes #1377.
* | Merge branch 'fix-nightly-20240422' into 'main'Nick Mathewson2024-04-221-3/+3
|\ \ | |/ |/| | | | | Resolve nightly clippy errors in hashx. See merge request tpo/core/arti!2096
| * Resolve nightly clippy errors in hashx.Nick Mathewson2024-04-221-3/+3
|/ | | | | | Nightly clippy doesn't like using "expr as T" when the conversion is lossless; it prefers "T::from(expr)" so that if we later change the type of T to something with a lossy conversion, we'll know.
* Merge branch 'hs-circ-pool' into 'main'gabi-2502024-04-151-0/+14
|\ | | | | | | | | arti-client: add hs_circ_pool() method on TorClient See merge request tpo/core/arti!2077
| * arti-client: add hs_circ_pool() method on TorClientRichard Pospesel2024-04-151-0/+14
|/
* Merge branch 'vanguards-cleanup' into 'main'Alexander Færøy2024-04-153-37/+4
|\ | | | | | | | | tor-guardmgr: Minor vanguard-related cleanups See merge request tpo/core/arti!2088
| * tor-guardmgr: Remove unnecessary mutable reference.Gabriela Moldovan2024-04-152-4/+4
| |
| * tor-guardmgr: Remove outdated TODO.Gabriela Moldovan2024-04-151-6/+0
| | | | | | | | It was addressed in !2083
| * tor-guardmgr: Remove outdated documentation.Gabriela Moldovan2024-04-151-3/+0
| | | | | | | | | | This is no longer true because of !2082. The `VanguardSet` *does* own its `TimeBoundVanguards`.
| * tor-guardmgr: Remove unused TimeBoundVanguard implementations.Gabriela Moldovan2024-04-151-24/+0
| | | | | | | | These are not used anymore as of !2082, so we can remove them now.
* | Merge branch 'coarse' into 'main'Alexander Færøy2024-04-152-3/+5
|\ \ | |/ |/| | | | | Minor docs fixes See merge request tpo/core/arti!2087
| * vanguards: Fix another doc refIan Jackson2024-04-151-1/+1
| | | | | | | | This was a typo.
| * vanguards: Fix a doc refIan Jackson2024-04-151-2/+3
| | | | | | | | This is a broken link when built without --document-private-items.
| * tor-rtcompat: Add CoarseTimeProvider to docs for Runtime traitIan Jackson2024-04-151-0/+1
|/ | | | I overlooked this, apparently.
* Merge branch 'fix-coc-link' into 'main'gabi-2502024-04-151-1/+1
|\ | | | | | | | | Fix link to the Code of Conduct See merge request tpo/core/arti!2085
| * Fix link to the Code of ConductWiktor Kwapisiewicz2024-04-121-1/+1
| | | | | | | | | | | | | | | | It seems Gitlab doesn't follow symlinks and visiting the link shows only the filename. This patch replaces the link with the filename of the destination file thus showing actual content when visited.
* | Merge branch 'onion-service-status-events' into 'main'gabi-2502024-04-151-6/+0
|\ \ | | | | | | | | | | | | tor-hsservice: use shared status_tx to report OnionServiceStatus via... See merge request tpo/core/arti!2086
| * | tor-hsservice: use shared status_tx to report OnionServiceStatus via ↵Richard Pospesel2024-04-131-6/+0
| |/ | | | | | | RunningOnionService::status_events()
* | Merge branch 'static_fuzzing' into 'main'Ian Jackson2024-04-151-2/+75
|\ \ | |/ |/| | | | | fuzz_it_all: Add a step where we run the fuzzers on the corpus alone. See merge request tpo/core/arti!2071
| * Make fuzz_it_all configurable.Nick Mathewson2024-04-031-2/+59
| | | | | | | | | | Most importantly for #1350, give it an option to _only_ run the fuzzer against the testcases in the corpus.
| * fuzz_it_all: Add a step where we run the fuzzers on the corpus alone.Nick Mathewson2024-04-031-0/+16
| | | | | | | | (This is suitable for CI testing on our fuzzers.)
* | Merge branch 'vanguard-config' into 'main'gabi-2502024-04-115-36/+107
|\ \ | | | | | | | | | | | | tor-guardmgr: Read the VanguardMode from the consensus, not from the config. See merge request tpo/core/arti!2083
| * | tor-guardmgr: Split derive list over multiple lines.Gabriela Moldovan2024-04-111-2/+4
| | |
| * | tor-guardmgr: Derive Ord for VanguardMode.Gabriela Moldovan2024-04-112-12/+16
| | |
| * | tor-guardmgr: Expand on a TODO about handling config changes.Gabriela Moldovan2024-04-111-0/+4
| | |
| * | tor-guardmgr: Add a TODO about updating has_onion_svc on reconfigure.Gabriela Moldovan2024-04-111-0/+1
| | |
| * | tor-guardmgr: Fix typo in VanguardMgr error message.Gabriela Moldovan2024-04-111-1/+1
| | |
| * | tor-guardmgr: Read the VanguardMode from VanguardParams.Gabriela Moldovan2024-04-111-26/+54
| | | | | | | | | | | | | | | | | | Based on our discussion on https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/258#note_3011734 If it turns out this is not the behaviour we want, we can update `Inner::mode()` accordingly.
| * | tor-guardmgr: Store whether we're running an onion svc (fmt).Gabriela Moldovan2024-04-111-1/+6
| | |
| * | tor-guardmgr: Store whether we're running an onion svc.Gabriela Moldovan2024-04-113-3/+18
| | | | | | | | | | | | | | | | | | The `VanguardMgr` needs to know whether arti is running as an onion service or not, in order to figure out which of the `vanguards_enabled` and `vanguards_hs_service` modes to use.
| * | tor-guardmgr: Add the two VanguardModes to VanguardParams.Gabriela Moldovan2024-04-111-0/+12
|/ / | | | | | | | | | | | | | | We have two vanguard modes, one for when arti is running as a client, and a separate one for when it's running as a service. Both modes are extracted from the `NetParameters`, so they belong in `VanguardParams`.
* | Merge branch 'rpc_deftly' into 'main'Ian Jackson2024-04-1125-350/+553
|\ \ | | | | | | | | | | | | Refactor RPC system to use derive_deftly; add generic-object support See merge request tpo/core/arti!2079
| * | Add TODO RPC items from review.Nick Mathewson2024-04-112-0/+9
| | |
| * | Fix a comment.Nick Mathewson2024-04-111-2/+1
| | |
| * | rpc: Add a missing not() to generic test.Nick Mathewson2024-04-111-1/+1
| | |
| * | Upgrade derive-deftly requirement to 0.10.3Nick Mathewson2024-04-1112-72/+52
| | | | | | | | | | | | We're taking this for the fix to derive-deftly#52.
| * | Remove a duplicate $twheres.Nick Mathewson2024-04-111-1/+1
| | |
| * | rpc: Adjust a TODO comment.Nick Mathewson2024-04-111-1/+1
| | |
| * | rpc: Move deftly attributes into an `rpc` namespace.Nick Mathewson2024-04-117-24/+24
| | |
| * | Add generic support for RPC objects.Nick Mathewson2024-04-081-8/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since we can't enumerate every instantiation at compile time, we instead provide a macro to generate an _installer_ function that installs a set of functions for a given instantiation. Due to the limitations of macro_rules, the syntax for generics is a bit ugly.
| * | Refactor invoke_fn macro to make inventory optionalNick Mathewson2024-04-081-14/+19
| | | | | | | | | | | | | | | Now there is an `decl_rpc_invoke_fn` macro that *only* declares the type-erased functions. Another macro's job will be to register it.
| * | Globally rename rpc_invoke_fn to static_rpc_invoke_fnNick Mathewson2024-04-083-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | This will be called _static_ to make it clear that it registers the method statically, so you don't need to install it at runtime. After a bit more work, there will be a separate macro that declares an installer function.
| * | Refactor: remove existence of HasConstTypeId_ as a traitNick Mathewson2024-04-089-56/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | We don't actually need this to be a trait; we just need methods and objects to have a `CONST_TYPE_ID_` if they want to participate in the inventory-based method registry. Removing this trait makes it much simpler to declare methods and objects.