| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | arti-client: Keep a handle to the HsCircPool if onion-service-client is enabled. | Gabriela Moldovan | 2024-03-11 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If vanguards are enabled, we will need to be able to reconfigure the HS circ pool in `TorClient::reconfigure_inner` (to handle the switch from vanguards-full to vanguards-lite etc.). The reconfiguration needs to happen even if only one of `onion-service-client` and `onion-service-service` is enabled. Without this change, in the `onion-service-client`-enabled / `onion-service-service`-disabled case, we'd need to reach into `HsClientConnector::hs_circ_pool` to reconfigure the client `HsCircPool`. By making `hs_circ_pool` part of `TorClient` in both cases, we only need to call `HsCircPool::reconfigure` from one place (in `TorClient::reconfigure_inner`). | |||||
| * | | tor-circmgr: Discard all circuits if VanguardMgr says so. | Gabriela Moldovan | 2024-03-11 | 1 | -0/+11 | |
| | | | ||||||
| * | | arti-client: Add vanguard_config() to CircMgrConfig. | Gabriela Moldovan | 2024-03-11 | 3 | -2/+27 | |
| | | | ||||||
| * | | arti-client: Add VanguardsConfig to TorClientConfig. | Gabriela Moldovan | 2024-03-11 | 4 | -3/+23 | |
| | | | ||||||
| * | | arti-client: Re-export VanguardsConfig from vanguards module. | Gabriela Moldovan | 2024-03-11 | 3 | -1/+11 | |
| | | | ||||||
| * | | tor-circmgr: Add functions for reconfiguring the HS circuit pool. | Gabriela Moldovan | 2024-03-11 | 2 | -1/+40 | |
| | | | | | | | | | | | If the vanguard "mode" (full/lite/disabled) changes, we purge all the circuits from the HS circuit pool because they are no longer suitable. | |||||
| * | | tor-circmgr: Store the VanguardMode in HsCircPool. | Gabriela Moldovan | 2024-03-11 | 1 | -0/+11 | |
| | | | ||||||
| * | | tor-circmgr: Give CircMgr a VanguardMgr. | Gabriela Moldovan | 2024-03-11 | 11 | -2/+76 | |
| | | | | | | | | | Closes #1277 | |||||
| * | | tor-guardmgr: Add vanguards API skeleton. | Gabriela Moldovan | 2024-03-11 | 6 | -1/+297 | |
| | | | | | | | | | Part of #1275 | |||||
| * | | fix: fix typos | Dimitris Apostolou | 2024-03-09 | 3 | -6/+6 | |
| | | | ||||||
| * | | BackoffSchedule refactoring and improvements | Neel Chauhan | 2024-03-07 | 2 | -22/+38 | |
| | | | ||||||
| * | | Merge branch 'typos' into 'main' | gabi-250 | 2024-03-07 | 30 | -36/+36 | |
| |\ \ | | | | | | | | | | | | | Fix various typos See merge request tpo/core/arti!2032 | |||||
| | * | | Fix typos in documentation | Tobias Stoeckmann | 2024-03-06 | 3 | -4/+4 | |
| | | | | ||||||
| | * | | Fix typo in error message | Tobias Stoeckmann | 2024-03-06 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Fix typos in doc comments | Tobias Stoeckmann | 2024-03-06 | 24 | -28/+28 | |
| | | | | ||||||
| | * | | Fix typos in comments | Tobias Stoeckmann | 2024-03-06 | 3 | -3/+3 | |
| | | | | ||||||
| * | | | Merge branch 'checkable_arith' into 'main' | Ian Jackson | 2024-03-07 | 1 | -2/+14 | |
| |\ \ \ | | | | | | | | | | | | | | | | | tor-checkable: Use checked arithmetic See merge request tpo/core/arti!2031 | |||||
| | * | | | tor-checkable: Use checked arithmetic | Tobias Stoeckmann | 2024-03-05 | 1 | -2/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that arithmetic with SystemTime and Duration fits into SystemTime. If the result does not fit, set the affected boundary to None. After all it implies that this point in time is not reachable on the system. Avoids integer overflow or panic, depending on debug or release build. | |||||
| * | | | | tor-bytes: avoid write_zeros truncation | Tobias Stoeckmann | 2024-03-06 | 1 | -1/+1 | |
| | |/ / |/| | | | | | | | | | | | | | | | | | Use a saturating add while determining the new length. If it really ends up being usize::MAX, the resize will most likely panic. This is at least a more reliable end of processing than going on with a much smaller vector than expected. | |||||
| * | | | Merge branch 'arti-client-typo-fix' into 'main' | Nick Mathewson | 2024-03-06 | 1 | -1/+1 | |
| |\ \ \ | |/ / |/| | | | | | | | | arti-client: Fix typo in error message. See merge request tpo/core/arti!2030 | |||||
| | * | | arti-client: Fix typo in error message. | Gabriela Moldovan | 2024-03-05 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | arti, CI: Add a test case for command line help | Ian Jackson | 2024-03-05 | 1 | -0/+3 | |
| | | | | ||||||
| * | | | arti: Print help on `arti hss` without subcommand | Ian Jackson | 2024-03-05 | 1 | -0/+1 | |
| | | | | | | | | | | | | | That's not the default. | |||||
| * | | | arti: Fix misplaced clap hunk | Ian Jackson | 2024-03-05 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab950a68 "arti: Add an hss subcommand." mistakenly moved the calls to `subcommand_required` and `arg_required_else_help` into the compile-time conditional. But they're related to the main command parsing. Fixes #1311 | |||||
| * | | | AuthorizedClientConfig: add semver note | Ian Jackson | 2024-03-05 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | PathExt::display_lossy: Add semver note | Ian Jackson | 2024-03-05 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | test-temp-dir: Allow use of Path::display in test diagnostic output | Ian Jackson | 2024-03-05 | 1 | -1/+8 | |
| | | | | | | | | | | | | | | | | | | | We're going to tell clippy to forbid Path::display. But we can't have the PathExt from tor-basic-utils, here. We can't put the allow on the function call expression, only a block or function. | |||||
| * | | | fs-mistrust: Introduce a fn display_lossy | Ian Jackson | 2024-03-05 | 1 | -2/+9 | |
| | | | | | | | | | | | | | | | | We're going to tell clippy to forbid Path::display. But we can't have the PathExt from tor-basic-utils, here. | |||||
| * | | | Use tor_basic_utils::PathExt::display_lossy | Ian Jackson | 2024-03-05 | 10 | -14/+23 | |
| | | | | | | | | | | | | | | | | Change Path::display to this new function, in call sites where it's being used for a diagnostic. | |||||
| * | | | tor-basic-utils: Provide PathExt with display_lossy() method | Ian Jackson | 2024-03-05 | 1 | -0/+25 | |
| | | | | ||||||
| * | | | tor-hsservice: client auth: Only allow `dir:...` to have valid unicode | Ian Jackson | 2024-03-05 | 2 | -4/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have Display/FromStr for AuthorizedClientConfig. We can't have Display if it can containa PathBuf because a PathBuf may not have a string representation. If we want to support non-unicode in the future, we'll need an escaping scheme and messing around with OsStr. The config scheme here may not be the best, but right now I'm just fixing uses of Path::display. | |||||
| * | | | tor-hsservice: Fix description of sub-module handling | Ian Jackson | 2024-03-05 | 1 | -3/+3 | |
| | | | | ||||||
| * | | | tor-hsservice: ipt_mgr: Put file in a sensible order (defeat rustfmt) | Ian Jackson | 2024-03-05 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | tor-hsservice: ipt_mgr: Put file in a sensible order | Ian Jackson | 2024-03-05 | 1 | -220/+235 | |
| | | | | | | | | | | | | | Fixes #1212 | |||||
| * | | | tor-hsservice: prelude: Manually tidy and group Arti and crate imports (fmt) | Ian Jackson | 2024-03-05 | 1 | -27/+15 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Manually tidy and group Arti and crate imports | Ian Jackson | 2024-03-05 | 1 | -41/+31 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Use braced group syntax | Ian Jackson | 2024-03-05 | 1 | -143/+151 | |
| | | | | | | | | | | | | | This reduces visual clutter and reclaims horizontal space. | |||||
| * | | | tor-hsservice: prelude: Manually tidy and group std and upstreams (fmt) | Ian Jackson | 2024-03-05 | 1 | -8/+8 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Manually tidy and group std and upstreams | Ian Jackson | 2024-03-05 | 1 | -35/+20 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Don't import postage::sink::SendError | Ian Jackson | 2024-03-05 | 2 | -5/+3 | |
| | | | | | | | | | | | | | This is too vague. | |||||
| * | | | tor-hsservice: prelude: Don't import futures::stream | Ian Jackson | 2024-03-05 | 2 | -2/+2 | |
| | | | | | | | | | | | | | This is too vague. | |||||
| * | | | Run rustfmt | Ian Jackson | 2024-03-05 | 7 | -139/+118 | |
| | | | | | | | | | | | | | | | | This alphabetises the imports, ready for us to do some more manual tidying. | |||||
| * | | | tor-hsservice: nickname: Trick rustfmt into not exploding derives | Ian Jackson | 2024-03-05 | 1 | -3/+2 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Move imports from nickname.rs | Ian Jackson | 2024-03-05 | 1 | -9/+1 | |
| | | | | | | | | | | | | | There are none here that aren't in the prelude now. | |||||
| * | | | tor-hsservice: don't import derive_more::Display as such | Ian Jackson | 2024-03-05 | 1 | -2/+2 | |
| | | | | | | | | | | | | | "Display" is rather vague. | |||||
| * | | | tor-hsservice: prelude: Move imports from netdir.rs | Ian Jackson | 2024-03-05 | 1 | -5/+1 | |
| | | | | | | | | | | | | | There are none here that aren't in the prelude now. | |||||
| * | | | tor-hsservice: prelude: Move most imports from status.rs | Ian Jackson | 2024-03-05 | 2 | -10/+2 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Move most imports from req.rs | Ian Jackson | 2024-03-05 | 2 | -18/+16 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Move imports from replay.rs | Ian Jackson | 2024-03-05 | 2 | -12/+13 | |
| | | | | ||||||
| * | | | tor-hsservice: prelude: Move most imports from rend_handshake.rs | Ian Jackson | 2024-03-05 | 2 | -16/+10 | |
| | | | | ||||||
