summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | chanmgr: Report Pt errors correctly.Nick Mathewson2022-11-291-1/+1
| |/ | | | | | | | | We were panicking if the PtMgr gave us an error, which isn't so good.
* | Merge branch 'list-builder-lint' into 'main'Nick Mathewson2022-11-291-0/+8
|\ \ | | | | | | | | | | | | tor-basic-utils: list_builder: Use standard test lint block See merge request tpo/core/arti!900
| * | tor-basic-utils: list_builder: Use standard test lint blockIan Jackson2022-11-291-0/+8
| | | | | | | | | | | | This gets rid of a spurious warning on nightly about the use of dbg!
* | | Merge branch 'more-linkspec-tests' into 'main'Nick Mathewson2022-11-295-16/+161
|\ \ \ | |/ / |/| | | | | | | | Add tests for a bunch of code in tor-linkspec See merge request tpo/core/arti!867
| * | Fix up compatibility issues between linkspec tests and other patchesNick Mathewson2022-11-282-6/+6
| | |
| * | linkspec: Add some tests for ChannelMethodNick Mathewson2022-11-282-0/+85
| | |
| * | linkspec: Tests for PtTargetSettingsNick Mathewson2022-11-281-0/+46
| | |
| * | PtTransportName: Remove unused accessors.Nick Mathewson2022-11-281-13/+0
| | |
| * | linkspec: Add tests for has_any_identity.Nick Mathewson2022-11-281-0/+7
| | |
| * | linkspec: Add test for lookup on no-ids.Nick Mathewson2022-11-281-0/+1
| | |
| * | Add a test for ByRelayIds::remove_by_all_idsNick Mathewson2022-11-281-2/+21
| | |
* | | Merge branch 'ptmgr-optional-dep-test' into 'main'Ian Jackson2022-11-291-20/+65
|\ \ \ | | | | | | | | | | | | | | | | MultilineListBuilder etc.: add serde tests See merge request tpo/core/arti!899
| * | | tor-config MultilineListBuilder: Test deserialisationIan Jackson2022-11-291-0/+45
| | | |
| * | | tor-config MultilineListBuilder: Print line number starting at 1, not 0Ian Jackson2022-11-291-1/+1
| | | |
| * | | tor-config list_builder tests: Move Outer up a levelIan Jackson2022-11-291-19/+19
| | | | | | | | | | | | | | | | We're going to reuse this.
* | | | Merge branch 'ptmgr-optional-dep' into 'main'Ian Jackson2022-11-295-7/+66
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Support building without pluggable transports Closes #649 See merge request tpo/core/arti!898
| * | | arti-client: Make ptmgr actually optionalIan Jackson2022-11-291-2/+3
| | | |
| * | | guardmgr: Conditionalise DisplayRule::RedactedIan Jackson2022-11-291-0/+5
| | | | | | | | | | | | | | | | This is unused in bridgeless configs. Fixes a compiler warning.
| * | | arti, arti-client: Conditionalise various things on pt-clientIan Jackson2022-11-292-3/+5
| | | |
| * | | arti cfg tests: Add some more debug outputIan Jackson2022-11-291-0/+1
| | | |
| * | | MultilineListBuilder: Use a manual implementation of DeserializeIan Jackson2022-11-291-2/+52
| | |/ | |/| | | | | | | | | | | | | The error message from `#[serde(untagged)]` would otherwise start to appear when we try to deserialise unsupported PT configurations, when compiled with bridge but not PT support.
* | | Merge branch 'll-todo-fixes' into 'main'Ian Jackson2022-11-296-22/+9
|\ \ \ | | | | | | | | | | | | | | | | Fix and resolve TODO pt-client comments in guardmgr, linkspec. See merge request tpo/core/arti!896
| * | | guardmgr: remove todo about bridge::config::Inner membersNick Mathewson2022-11-291-4/+0
| | | | | | | | | | | | | | | | We've revised this a few times; now it seems plausible.
| * | | guardmgr: Remove now-unneeded #[allow(unnecessary_wraps)]Nick Mathewson2022-11-291-1/+0
| | | |
| * | | Remove deprecated aliases in tor-linkspec.Nick Mathewson2022-11-294-17/+9
| |/ /
* | | Clarify internal error.Ian Jackson2022-11-291-2/+2
| | |
* | | ptmgr: Refine RetryTime for ChildSpawnFailed.Nick Mathewson2022-11-291-1/+7
| | |
* | | ptmgr: Rename ClientTransportFailed, document, and correct its RetryTime.Nick Mathewson2022-11-292-6/+7
| | |
* | | ptmgr: Replace StdioUnavailable with a PtError.Nick Mathewson2022-11-292-11/+12
| | |
* | | Rename LocalLoginFailed to ExternalToolFailed.Nick Mathewson2022-11-292-3/+3
| | |
* | | Document better what LocalProtocolViolation does not cover.Nick Mathewson2022-11-291-1/+4
|/ /
* | Merge branch 'ptmgr-cleanup' into 'main'Nick Mathewson2022-11-2911-52/+181
|\ \ | | | | | | | | | | | | | | | | | | Post-merge cleanups for PtMgr Closes #667 and #659 See merge request tpo/core/arti!893
| * | Spelling fix in arti_client::erreta2022-11-291-1/+1
| | |
| * | Temporarily make ptmgr required for arti-client :/Nick Mathewson2022-11-282-2/+5
| | |
| * | PtMgr: Use a persistent state directory for PT state.Nick Mathewson2022-11-284-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes a `pt_state` directory inside .local/share/arti (or the local equivalent), right next to our existing `state` dir. Ideally we would use a separate directory for each PT, but we have a very fuzzy "what is a specific PT" notion. Closes #667
| * | Integrate PtMgr into arti-client.Nick Mathewson2022-11-284-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | If support is available at compile-time, then we construct a PtMgr and register it with the ChanMgr. We keep a handle to it ourself so that we can reconfigure it as needed. Closes #659.
| * | Fix ChanMgr APIs for setting PtMgr etc to match what TorClient wants.Nick Mathewson2022-11-281-7/+4
| | |
| * | Revise the API of "PtMgr::reconfigure"Nick Mathewson2022-11-281-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | I prefer that it not take `&mut self`, since PtMgr already has interior mutability. I also need it to take `tor_config::Reconfigure` argument, in case it gains any more smarts about validation in the future.
| * | ptmgr: Note a TODO issue around TempDir.Nick Mathewson2022-11-281-0/+2
| | |
| * | ptmgr: Fill in some error-related code; resolve TODOs.Nick Mathewson2022-11-283-8/+55
| | |
| * | ptmgr: clear up unused_import exceptions.Nick Mathewson2022-11-282-16/+21
| | |
| * | PtMgr: New features section in README.mdNick Mathewson2022-11-282-6/+13
| | | | | | | | | | | | | | | | | | | | | Per convention, have a `full` feature. Also, downgrade the 'TODO pt-client' entries in README::limitations, since they are not blockers for 1.1.0.
| * | ptmgr: Mark PtMessage and next_message as experimental-api.Nick Mathewson2022-11-283-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | These are implementation details and we don't want to mark them as stable. To do this, I needed to apply some additional options to the example code's configuration in Cargo.toml.
* | | Switch from sha-1 back to sha1.Nick Mathewson2022-11-291-2/+2
| | | | | | | | | | | | | | | | | | | | | As near as I can tell, the rust-crypto SHA1 crate was called `sha-1` for a while because of a conflict with a different SHA1 crate. Now they apparently have the `sha1` name back and have deprecated the `sha-1` name.
* | | Merge branch 'redacted' into 'main'Ian Jackson2022-11-2916-13/+323
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Define a "redactable" trait, and use it when logging guard info Closes #648 and #627 See merge request tpo/core/arti!882
| * | | Rustdoc fix: escape []s.Nick Mathewson2022-11-281-1/+1
| | | |
| * | | safelog: Make MaybeRedacted<T> opaque.Nick Mathewson2022-11-282-22/+10
| | | |
| * | | GuardMgr: Treat Guards as sensitive and Bridges as redacted.Nick Mathewson2022-11-283-5/+46
| | | | | | | | | | | | | | | | | | | | This machinery is a bit inelegant, but it is all confined to be within the GuardMgr crate, so IMO it should be fine for now.
| * | | Add a default debug_redacted impl to save space.Nick Mathewson2022-11-283-33/+3
| | | |
| * | | Display guards in redacted form in guard status messages.Nick Mathewson2022-11-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Closes #627, again. Closes #648.