| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 1 | -1/+1 |
| | | | | | Run maint/add_warning | ||||
| * | TorAddr: Add function to inspect the host as an IpAddr, if it is one. | Nick Mathewson | 2025-10-28 | 1 | -0/+8 |
| | | |||||
| * | Switch Cargo.toml files to edition 2024. | Nick Mathewson | 2025-08-07 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again. | ||||
| * | Fix formatting in test_error_kind function | Vijaya Bhaskar | 2025-04-27 | 1 | -1/+4 |
| | | |||||
| * | Implement HasKind trait for TorAddrError | Vijaya Bhaskar | 2025-04-27 | 1 | -1/+23 |
| | | | | | | | | | | This commit implements the HasKind trait for TorAddrError in address.rs, mapping all variants to the InvalidStreamTarget error kind. It also updates the ErrorDetail implementation in err.rs to delegate to TorAddrError's HasKind implementation instead of hardcoding the error kind. Resolves TODOs in address.rs and err.rs. | ||||
| * | Default allow_onion_addrs to true. | Wesley Aptekar-Cassels | 2024-10-07 | 1 | -2/+2 |
| | | | | | | | | This was disabled due to lack of vanguard support. Now that we support vanguards, we should enable this by default. Fixes: #1402 | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | Merge branch 'arti_client_test' into 'main' | gabi-250 | 2024-03-11 | 1 | -1/+12 |
| |\ | | | | | | | | | arti-client: increase coverage in src/address.rs See merge request tpo/core/arti!2029 | ||||
| | * | arti-client: increase coverage in src/address.rs | Brady Fomegne | 2024-03-05 | 1 | -1/+12 |
| | | | | | | | | | | | | | - added test for TorAddr::enforce_config with invalid/onion hostname - added test for display Host::Onion - added test for any type &T who implement IntoTorAddr trait | ||||
| * | | Fix typos in comments | Tobias Stoeckmann | 2024-03-06 | 1 | -1/+1 |
| |/ | |||||
| * | Add NOTEs about similar code for address types. | Nick Mathewson | 2023-12-12 | 1 | -1/+6 |
| | | |||||
| * | arti-client test: add clippy exception | Jim Newsome | 2023-11-16 | 1 | -0/+1 |
| | | | | | This clippy rule appears to be enabled by default in Rust 1.74.0 | ||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | Turn off HS client connections by default | Ian Jackson | 2023-06-29 | 1 | -2/+2 |
| | | | | | As per IRC discussion, re lack of Vanguards. | ||||
| * | arti-client tests: Explicitly enable .onion in most tests | Ian Jackson | 2023-06-29 | 1 | -2/+16 |
| | | | | | | These tests include tests of .onion, which we are disabling by default. So we must make some prefs that enable them. | ||||
| * | arti_client: Add a warning comment to TorAddrError. | Nick Mathewson | 2023-06-29 | 1 | -0/+3 |
| | | |||||
| * | arti_client: Move BadOnion from TorAddrError to ErrorDetail. | Nick Mathewson | 2023-06-29 | 1 | -9/+0 |
| | | | | | | | | | | | This variant can never be constructed when parsing a TorAddr, so it doesn't make sense to have it in TorAddrError: the use can never see it unless they enable `error_detail`. Not a semver break because the client feature is not yet stable. Closes #932. | ||||
| * | HS configuration: Add and honour `allow_onion_addrs` in configuration | Ian Jackson | 2023-06-28 | 1 | -5/+8 |
| | | | | | | | | We put this in `[address_filter]`. The interaction with the corresponding stream preference is a bit complicated. We must turn the stream pref into a `BoolOrAuto`. | ||||
| * | arti-client: address: Prefer to throw OnionAddressResolveRequest (fmt) | Ian Jackson | 2023-06-16 | 1 | -9/+7 |
| | | |||||
| * | arti-client: address: Prefer to throw OnionAddressResolveRequest | Ian Jackson | 2023-06-16 | 1 | -7/+23 |
| | | | | | Reformatting deferred for clarity. | ||||
| * | arti-client: hs: Test cases for variously disabling .onion | Ian Jackson | 2023-06-16 | 1 | -1/+57 |
| | | | | | This test case shows that we return a suboptimal error in some cases. | ||||
| * | arti-client: StreamPrefs::connect_to_onion_services: honour | Ian Jackson | 2023-06-16 | 1 | -0/+12 |
| | | |||||
| * | arti-client: address: Apply deferred rustfmt churn | Ian Jackson | 2023-06-16 | 1 | -2/+6 |
| | | |||||
| * | arti-client: address: Plumb StreamPrefs into enforce_config | Ian Jackson | 2023-06-16 | 1 | -5/+10 |
| | | | | | No functional change yet. We'll use this shortly. | ||||
| * | arti-client: address: Move config enforcement | Ian Jackson | 2023-06-16 | 1 | -5/+9 |
| | | | | | Disposes of two TODOs. | ||||
| * | arti-client: address: Move config enforcement (pre-fmt) | Ian Jackson | 2023-06-16 | 1 | -2/+6 |
| | | | | | This will make subsequent commits less noisy to read. | ||||
| * | arti-client: address: Disable some tests when HS disabled | Ian Jackson | 2023-06-16 | 1 | -9/+16 |
| | | | | | | These have already been partially/replaced supplemented. The other test referred to will appear shortly. | ||||
| * | arti-client: Rename hs feature to onion-service-client (cfg lines) | Ian Jackson | 2023-06-16 | 1 | -6/+6 |
| | | |||||
| * | Discuss in comment why we're not using a newtype for the Strings in Host | Ian Jackson | 2023-03-09 | 1 | -0/+8 |
| | | |||||
| * | Reject invalid hostnames | Ian Jackson | 2023-03-09 | 1 | -2/+5 |
| | | | | | | | Reject them both for .onion and for "exit" hostnames This prevents a `Host` from having an invalid hostname in it. | ||||
| * | Fix reference to no-longer-contemplated Host variant | Ian Jackson | 2023-03-09 | 1 | -1/+1 |
| | | | | | | Reported in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1060#note_2884755 | ||||
| * | Dummy HsId::from_str on .onion: Return Bug, rather than panicking | Ian Jackson | 2023-03-09 | 1 | -5/+4 |
| | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1060#note_2884754 | ||||
| * | Improve error from HsId parse of "www.B32.onion" | Ian Jackson | 2023-03-09 | 1 | -0/+2 |
| | | | | | And add some clarity and todos about address errors. | ||||
| * | arti-client: Parse .onion addresses and dispatch to client.rs | Ian Jackson | 2023-03-09 | 1 | -24/+126 |
| | | | | | | | | Now, a Host has a separate variant for `.onion` which is always used, even when HS is disabled. Currently it ends in a todo!. | ||||
| * | arti-client: DoThingInstructions: Make error returns consistent | Ian Jackson | 2023-03-09 | 1 | -8/+9 |
| | | | | | This is more comprehensible, and will be more convenient. | ||||
| * | arti-client: Host: Use Display::fmt rather than write! | Ian Jackson | 2023-03-09 | 1 | -2/+3 |
| | | | | | | write! is less good because the `{}` overwrites stuff like "did the caller ask for padding". | ||||
| * | Merge branch 'suffix' into 'main' | Nick Mathewson | 2023-03-08 | 1 | -1/+1 |
| |\ | | | | | | | | | Introduce and use ends_with_ignore_ascii_case See merge request tpo/core/arti!1058 | ||||
| | * | Introduce and use ends_with_ignore_ascii_case | Ian Jackson | 2023-03-08 | 1 | -1/+1 |
| | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1056#note_2884428 | ||||
| * | | Merge branch 'host2' into 'main' | Ian Jackson | 2023-03-08 | 1 | -11/+90 |
| |\ \ | |/ |/| | | | | | arti-client: Do not send resolve requests for IP addrs to exits See merge request tpo/core/arti!1057 | ||||
| | * | arti-client: Host: Be more explicit about what is allowed in Hostname | Ian Jackson | 2023-03-08 | 1 | -1/+11 |
| | | | |||||
| | * | Rustfmt | Ian Jackson | 2023-03-08 | 1 | -3/+12 |
| | | | |||||
| | * | Abolish Host::into_string_and_port | Ian Jackson | 2023-03-08 | 1 | -23/+0 |
| | | | | | | | | | | | | | | | | | | | When I was trying to add HS support to these layers, I found I could add a new variant to the `Host` enum but everything would still compile even though I hadn't written the necessary implementation! This method is a liability: when using it, one inevitably writes such latent bugs. | ||||
| | * | arti-client: Do not send resolve requests for IP addrs to exits | Ian Jackson | 2023-03-08 | 1 | -0/+37 |
| | | | | | | | | | | | | | | | | | Doing so doesn't seem like a good idea. It might even be some kind of leak? Found because I added a variant to `address::Host` for hidden services, and noticed that the resolve code still compiled. | ||||
| | * | arti-client addr handling: Introduce StreamInstructions | Ian Jackson | 2023-03-08 | 1 | -0/+46 |
| | | | |||||
| * | | arti-client: Reject .onion, when we should, without allocating | Ian Jackson | 2023-03-08 | 1 | -1/+2 |
| |/ | | | | Use new strip_suffix_ignore_ascii_case | ||||
| * | Rename onion-* cargo features to hs-* in tor-* crates | Ian Jackson | 2023-02-28 | 1 | -1/+1 |
| | | | | | Fixes #756 | ||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | Make a top-level API for connecting to onion services. | Nick Mathewson | 2023-01-12 | 1 | -0/+10 |
| | | | | | Fortunately, it adds very little to the arti-client API surface. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+8 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
