summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | proto: Make the new reject_stream() test check the END cell tooGabriela Moldovan2026-06-231-1/+5
| | |
| * | proto: Factor helper macro out of test functionGabriela Moldovan2026-06-231-17/+17
| | | | | | | | | | | | This is just code motion
| * | proto: Refactor test macro to not rely on function contextGabriela Moldovan2026-06-231-6/+7
| | | | | | | | | | | | | | | | | | I am about to move this out of the `extend_and_forward()` test, because I want to reuse it in the new `reject_stream()` test for checking that the relay wrote an END cell to the stream.
| * | proto: Add a test for rejecting an incoming stream in the relay reactorGabriela Moldovan2026-06-231-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | This test currently fails, because `IncomingStream::reject()` calls `RelayCirc::close_pending()` under the hood, which isn't implemented yet. Part of #2590
* | | Merge branch 'log_hopsettings' into 'main'Nick Mathewson2026-06-231-1/+2
|\ \ \ | |/ / |/| | | | | | | | proto: log hop settings at trace upon client circuit opening. See merge request tpo/core/arti!4076
| * | proto: log hop settings at trace upon client circuit opening.Nick Mathewson2026-06-231-1/+2
| | |
* | | tor-netdoc: Blocking TODOs for dangerous callsClara Engler2026-06-231-0/+2
| | |
* | | tor-checkable: TODO for TimerangeBound from TimeboundClara Engler2026-06-231-0/+4
| | |
* | | tor-netdoc: Explain why .dangerously_assume_timely() is okClara Engler2026-06-231-0/+2
| | |
* | | tor-netdoc: Update semver.mdClara Engler2026-06-231-0/+1
| | | | | | | | | | | | | | | This updates semver.md with the breaking changes done to the Ed25519 certificate verification methods.
* | | tor-netdoc: Fix EdCert rustdoc numberingClara Engler2026-06-231-16/+14
| | |
* | | tor-netdoc: Use TimerangeBound for EdCert verify (fmt)Clara Engler2026-06-231-14/+14
| | | | | | | | | | | | No functional change.
* | | tor-netdoc: Use TimerangeBound for EdCert verifyClara Engler2026-06-231-48/+26
| | | | | | | | | | | | | | | | | | | | | This commit modifies the .verify() method for the Ed25519 embedded certificates to wrap the result in a TimerangeBound, which inevitably also changes the function signature in terms of arguments to no longer accept SystemTime/Duration arguments.
* | | Merge branch 'deftly-impl' into 'main'Ian Jackson2026-06-233-24/+15
|\ \ \ | | | | | | | | | | | | | | | | Try out deftly $impl feature, mostly in tor-config See merge request tpo/core/arti!4095
| * | | tor-memquota-cost derive: Tidy formattingIan Jackson2026-06-111-2/+2
| | | |
| * | | tor-memquota-cost derive: Use beta_deftly Impl featureIan Jackson2026-06-111-1/+2
| | | |
| * | | tor-memquota-cost derive: Use beta_deftly Xmeta default featureIan Jackson2026-06-111-4/+3
| | | |
| * | | tor-config: Flattenable: use beta_deftly $impl featureIan Jackson2026-06-111-3/+2
| | | |
| * | | tor-config: derive.rs: use beta_deftly $impl featureIan Jackson2026-06-111-16/+8
| | | |
* | | | Merge branch 'addr-policy-fix' into 'main'Ian Jackson2026-06-233-68/+54
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | tor-netdoc: addr policy: Overhaul and fix /0 bug Closes #2589 See merge request tpo/core/arti!4128
| * | | tor-netdoc: addr policy: Rename variant from Star to AllIan Jackson2026-06-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | IMO it makes more sense to describe the semantics, than the syntax. (This is a private type at the moment.)
| * | | tor-netdoc: addr policy: Add tests for overlong prefixesIan Jackson2026-06-181-0/+5
| | | | | | | | | | | | | | | | | | | | These are currently accepted. I'm not sure if we want to change that. For now, add a test case.
| * | | tor-netdoc: addr policy: Use ipnet instead of open-coding it allIan Jackson2026-06-182-31/+18
| | | | | | | | | | | | | | | | | | | | ipnet is a very widely used crate which is already in our dependency stack.
| * | | tor-netdoc: addr policy: Fix /0 handling bugIan Jackson2026-06-181-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ADDR/0 is not the same as *, because it specifies the IP version. Turning 0.0.0.0/0 into * is wrong, because * accepts IPv6 too. Do this by abolishing the V4Star and V6Star variants. Sadly Rust thinks that u32 << 32 is an overflow, not zero, so we do still need a special case for a zero prefix length. (But we're about to delete this code.) Fixes #2589.
| * | | tor-netdoc: addr policy tests: Add test case for IPv4 /0Ian Jackson2026-06-181-0/+1
| | | | | | | | | | | | | | | | This is, also, wrong.
| * | | tor-netdoc: addr policy tests: Rename check/check1/check2Ian Jackson2026-06-181-11/+11
| | | | | | | | | | | | | | | | | | | | We should privilege the "is the same" case. Rename check to check2 and check1 to check.
| * | | tor-netdoc: addr policy tests: Avoid repeating where string isn't changedIan Jackson2026-06-181-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to easily distinguish by eye, the cases where things changed (ie, where the input string was canonical), from the ones where they didn't. One of these cases is a bug.
| * | | tor-netdoc: addr policy tests: Improve a few panic messagesIan Jackson2026-06-181-2/+2
| | | |
| * | | tor-netdoc: addr policy: Correct terminologyIan Jackson2026-06-182-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A "mask" is a bitmask, eg 255.255.0.0 in 192.168.0.0/255.255.0.0. These are all prefix lengths. Using the word "mask" to refer to a prefix length is quite bad, because prefix lengths are numbers and sometimes masks are too. Using one as the other would be a bug.
* | | | Merge branch 'rd-derive-parse' into 'main'Ian Jackson2026-06-232-2/+52
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Derive NetdocParseableUnverified for RouterDesc See merge request tpo/core/arti!4134
| * | | tor-netdoc: Add TODOClara Engler2026-06-231-1/+1
| | | |
| * | | tor-netdoc: Replace assume_wellsigned() with unwrap_unverified()Clara Engler2026-06-231-10/+3
| | | |
| * | | tor-netdoc: Add small RouterDesc parse2 testClara Engler2026-06-221-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a very small RouterDesc parse2 test only verifying whether the testdata2 gets properly parsed, with a minimal length verification alongside two identity related fields. Once we have encoding and verification support, we have to extend this test of course.
| * | | tor-netdoc: Add test only RouterDesc verifyClara Engler2026-06-221-1/+8
| | | | | | | | | | | | | | | | | | | | Only for testing, just returns the inner body. Will be removed once we have a proper verify method.
| * | | Derive NetdocParseableUnverified for RouterDescClara Engler2026-06-222-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finally! 🎉 This commit derives NetdocParseableUnverified for RouterDesc by adding the respective derive_deftly attributes to the top-level definition as well as the member fields that require it. A .verify() method as well as unit tests will be added in the next commits. Encoding still depends on a few tiny papercuts but will otherwise be added shortly too, although in a different branch.
* | | | tor-netdoc: relay families: Add TODO re overhaul/removal of type(s)Ian Jackson2026-06-221-0/+7
| | | |
* | | | tor-netdoc: relay families: Move TODO out of rustdocIan Jackson2026-06-221-2/+2
| | | |
* | | | tor-netdoc: Microdesc: derive ConstructorIan Jackson2026-06-223-2/+12
| | | |
* | | | tor-netdoc Micordesc: Make intro item type publicIan Jackson2026-06-222-6/+7
| | | | | | | | | | | | | | | | | | | | We don't need the type to be private. Indeed, we'd like it not to be to make Microdesc construction with Constructor regular
* | | | tor-netdoc Micordesc: rename the intro item typeIan Jackson2026-06-221-3/+3
| | | | | | | | | | | | | | | | | | | | "OnionKeyIntro" is particularly odd. Mostly people won't need to refer to this, anyway.
* | | | tor-netdoc test: Add a round-trip test for microdescriptorsIan Jackson2026-06-221-1/+12
| | | |
* | | | tor-netdoc: Avoid encoding default values in microdescsIan Jackson2026-06-221-4/+4
| | | |
* | | | tor-netdoc: encode derive: New default(skip) featureIan Jackson2026-06-224-0/+72
| | | | | | | | | | | | | | | | This lets us skip fields which have the default values.
* | | | tor-netdoc: encode derive: New default(skip) feature (pre-fmt)Ian Jackson2026-06-221-3/+7
| | | |
* | | | tor-netdoc: derive encoding for microdescriptorsIan Jackson2026-06-223-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All these types already have parsing derives. The encoding isn't quite right yet. It's legal, but doesn't match C Tor as well as we'd like.
* | | | Merge branch 'tor-dirauth' into 'main'Ian Jackson2026-06-228-1/+260
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Create dirauth crates (empty) See merge request tpo/core/arti!4122
| * | | | tor-dirauth: Correct authors (fmt)Ian Jackson2026-06-222-2/+10
| | | | |
| * | | | arti-dirauth: Update Cargo metadata (authors, MSRV)Ian Jackson2026-06-221-2/+2
| | | | |
| * | | | tor-dirauth: Update MSRVIan Jackson2026-06-221-1/+1
| | | | |
| * | | | tor-dirauth: Correct authorsIan Jackson2026-06-221-1/+1
| | | | |