| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Merge branch 'clippy' into 'main' | opara | 2026-07-27 | 1 | -3/+1 |
| |\ | | | | | | | | | Fix some recently-appearing clippy lints See merge request tpo/core/arti!4240 | ||||
| | * | tor-netdoc: Replace two open-coded slice::fill | Ian Jackson | 2026-07-27 | 1 | -3/+1 |
| | | | | | | | | | Placates recent clippy. | ||||
| * | | tor-netdoc: Make RouterStatus.port_policy use Intern, not Arc | Ian Jackson | 2026-07-27 | 2 | -2/+1 |
| | | | | | | | | | We intern these in Microdesc, and should be consistent. | ||||
| * | | tor-netdoc: Make the str in a SoftwareVersion be Intern (fmt) | Ian Jackson | 2026-07-27 | 1 | -3/+1 |
| | | | |||||
| * | | tor-netdoc: Make the str in a SoftwareVersion be Intern | Ian Jackson | 2026-07-27 | 1 | -3/+3 |
| |/ | | | | Rather than converting it to an Arc. This is the new idiom for Intern. | ||||
| * | tor-checkable: Rename `TimeBound::is_valid_at` to `check_valid_at` (fmt) | Ian Jackson | 2026-07-23 | 1 | -1/+5 |
| | | |||||
| * | tor-checkable: Rename `TimeBound::is_valid_at` to `check_valid_at` | Ian Jackson | 2026-07-23 | 1 | -1/+1 |
| | | | | | | I find this names confusing. To my mind "is" implies a function returning `bool`. | ||||
| * | Use new TimeRangeBound name throughout the tree | Ian Jackson | 2026-07-16 | 2 | -8/+8 |
| | | |||||
| * | tor-netdoc: Stabilise votes and encoding of authcerts (formatting) | Ian Jackson | 2026-07-15 | 2 | -6/+3 |
| | | |||||
| * | tor-netdoc: Stabilise votes and encoding of authcerts | Ian Jackson | 2026-07-15 | 5 | -8/+4 |
| | | |||||
| * | tor-netdoc: drop a done TODO | Ian Jackson | 2026-07-15 | 1 | -3/+0 |
| | | | | | torspec!499 is merged. | ||||
| * | tor-netdoc tests: Test consensus verification error cases | Ian Jackson | 2026-07-15 | 2 | -2/+103 |
| | | |||||
| * | tor-netdoc: Replace string slices with str::get() in doc (fmt) | Clara Engler | 2026-06-24 | 1 | -1/+4 |
| | | | | | No functional change, just reformatting. | ||||
| * | tor-netdoc: Replace string slices with str::get() in doc | Clara Engler | 2026-06-24 | 2 | -5/+3 |
| | | | | | | | | | | | | | This commit replaces the use of string slices with str::get() in all document related code. While this is not a perfect replacement for it, the relevant parts in the code heavily depend upon the byte offsets returned by the low level (legacy) parser where changing it would lead to a very big refactoring. Nonetheless, this approach is better because returning a bug is better than crashing. | ||||
| * | tor-netdoc: Fix rs.rs cache comments | Clara Engler | 2026-06-24 | 1 | -1/+1 |
| | | | | | Removes a blocking comment and replaces it with a TODO DIRAUTH. | ||||
| * | Use Intern<T> (fmt) | Clara Engler | 2026-06-24 | 1 | -1/+3 |
| | | | | | No functional change. | ||||
| * | Use Intern<T> | Clara Engler | 2026-06-24 | 1 | -1/+2 |
| | | | | | | This commit modifies the codebase to actually return Intern<T> in InternCache<T> and adds calls to .into() accordingly. | ||||
| * | tor-netdoc tests: test vote roundtrip with testdata2 | Ian Jackson | 2026-06-22 | 1 | -9/+0 |
| | | | | | | | | | | | | Use roundtrip_netstatus, which does nearly all of the work for us. But for it to round-trip, we must do a bunch of fudging. This replaces the old parse2 vote test case (which used the poc type). The test case has some adjustments to cope with missing fields. Move the TODOs for those fields to the test case, so that they're on lines that will be deleted when the fields are implemented. | ||||
| * | tor-netdoc tests: Test verification of votes, error cases | Ian Jackson | 2026-06-22 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: Implement verification for votes | Ian Jackson | 2026-06-22 | 1 | -0/+90 |
| | | |||||
| * | tor-netdoc: consensus_threshold: return a RangeFrom | Ian Jackson | 2026-06-17 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: tests: ns parse2 test: Round trip a plain consensus | Ian Jackson | 2026-06-17 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: provide verify methods on new consensus types | Ian Jackson | 2026-06-17 | 1 | -0/+75 |
| | | |||||
| * | tor-netdoc: Break out consensus_threshold fn | Ian Jackson | 2026-06-17 | 1 | -1/+1 |
| | | | | | This calculation appeared 3 times. | ||||
| * | tor-netdoc: NetworkStatus: derive Encode | Ian Jackson | 2026-06-17 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: rs.rs: tidy imports | Ian Jackson | 2026-06-15 | 1 | -2/+3 |
| | | |||||
| * | tor-netdoc: routerstatus entries: Add `stats` item (votes only) | Ian Jackson | 2026-06-15 | 4 | -1/+8 |
| | | |||||
| * | Merge branch 'verify-general' into 'main' | Ian Jackson | 2026-06-11 | 1 | -5/+2 |
| |\ | | | | | | | | | tor-netdoc: overhaul consensus verification, in preparation for parse2 ns verification See merge request tpo/core/arti!4065 | ||||
| | * | tor-netdoc: ns verification: verify_general, return Result, tidy caller | Ian Jackson | 2026-06-11 | 1 | -5/+2 |
| | | | | | | | | | | | | | Now the caller can use .map_err rather than if .ok(). No functional change. | ||||
| | * | tor-netdoc: ns verification: verify_general, return Result | Ian Jackson | 2026-06-11 | 1 | -1/+1 |
| | | | | | | | | | No functional change. | ||||
| * | | tor-netdoc: Fix a trailing whitespace | Ian Jackson | 2026-06-11 | 1 | -1/+1 |
| | | | |||||
| * | | tor-netdoc: Fix copypaste error | Ian Jackson | 2026-06-11 | 1 | -1/+1 |
| | | | |||||
| * | | tor-netdoc: recommended versions: fix parsing bug in old parser | Ian Jackson | 2026-06-11 | 1 | -4/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | An existing real consensus says something like this: client-versions 0.4.8.19,0.4.8.20,0.4.8.21,0.4.8.22,0.4.8.23,0.4.8.24,0.4.8.25,0.4.9.4-rc,0.4.9.5,0.4.9.6,0.4.9.7,0.4.9.8 so it's not using the additional arguments, and the spec says those should be ignored. See also torspec!500. | ||||
| * | | tor-netdoc: recommended versions: new {client,server}-versions type | Ian Jackson | 2026-06-11 | 3 | -12/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | This is a single comma-separated argument, with absence of the item being the same as absence of the arguemnt. The previous code had `Vec<String>` which in parse2 would mean zero or more occurrences of the item, with one argument each. The old parser would split the whole RHS of the arguments. It still does right now - we'll fix that in a moment. | ||||
| * | | tor-netdoc: old consensus parser: add a binding | Ian Jackson | 2026-06-11 | 1 | -2/+3 |
| | | | | | | | | | This will make the next change here slightly less confusing. | ||||
| * | | tor-netdoc: old consensus parser: break out parse_rec_versions (fmt) | Ian Jackson | 2026-06-11 | 1 | -8/+7 |
| | | | |||||
| * | | tor-netdoc: old consensus parser: break out parse_rec_versions | Ian Jackson | 2026-06-11 | 1 | -10/+8 |
| | | | | | | | | | Again, this is going to get more complicated, so let's make a closure. | ||||
| * | | tor-netdoc: ConsensusBuilder: break out mk_versions | Ian Jackson | 2026-06-11 | 1 | -2/+4 |
| | | | | | | | | | This is going to get more complicated, so let's make a closure for it. | ||||
| * | | tor-netdoc: recommended versions: add spec links | Ian Jackson | 2026-06-11 | 1 | -0/+4 |
| |/ | |||||
| * | tor-netdoc: routerstatus entries: Add `id` item (votes only) | Ian Jackson | 2026-06-11 | 3 | -0/+11 |
| | | |||||
| * | tor-netdoc: routerstatus entries: Add note about location of `m` item | Ian Jackson | 2026-06-11 | 1 | -0/+3 |
| | | |||||
| * | tor-netdoc: routerstatus entries: Add `p` item | Ian Jackson | 2026-06-11 | 4 | -0/+11 |
| | | |||||
| * | tor-netdoc: routerstatus: r item: add dir-port argument | Ian Jackson | 2026-06-11 | 3 | -0/+7 |
| | | | | | This was simply missing. | ||||
| * | tor-netdoc: routerstatus: r item: add blank lines to struct | Ian Jackson | 2026-06-11 | 1 | -0/+5 |
| | | |||||
| * | Merge branch 'validity-time-range' into 'main' | Clara Engler | 2026-06-11 | 2 | -5/+13 |
| |\ | | | | | | | | | tor-netdoc: ns preamble: break out validity_time_range See merge request tpo/core/arti!4054 | ||||
| | * | tor-netdoc: netstatus preamble: use saturating sub for starting_time | Ian Jackson | 2026-06-10 | 1 | -1/+1 |
| | | | |||||
| | * | tor-netdoc: ns preamble: break out validity_time_range (tidy) | Ian Jackson | 2026-06-03 | 1 | -5/+3 |
| | | | | | | | | | Remove the otiose `preamble` and `timebound_range` bindings again. | ||||
| | * | tor-netdoc: ns preamble: break out validity_time_range | Ian Jackson | 2026-06-03 | 2 | -6/+14 |
| | | | | | | | | | | | | | | | We are going to want to use this when we implement verification for network statuses from parse2. Review with --color-moved. | ||||
| | * | tor-netdoc: ns preamble: break out validity_time_range (prep) | Ian Jackson | 2026-06-03 | 1 | -3/+5 |
| | | | | | | | | | | | Introduce and use bindings `preamble` and `timebound_range` that will make the next change easier to review. | ||||
| * | | Merge branch 'clippy-string-slice' into 'main' | Nick Mathewson | 2026-06-10 | 3 | -0/+3 |
| |\ \ | | | | | | | | | | | | | Lint for clippy::string_slice See merge request tpo/core/arti!4086 | ||||
