aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'timebound-naming' into 'main'gabi-2502026-07-1615-79/+79
|\ | | | | | | | | tor-checkable: Rename Timebound to TimeBound and TimerangeBound to TimeRangeBound See merge request tpo/core/arti!4215
| * Use new TimeRangeBound name throughout the treeIan Jackson2026-07-1612-61/+61
| |
| * Use new TimeBound name throughout the treeIan Jackson2026-07-1611-21/+21
| |
* | tor-netdoc: Remove now-redundant bindingIan Jackson2026-07-161-2/+1
| |
* | Use "extend" for tor-netdoc lines StrExtIan Jackson2026-07-162-3/+6
|/
* Merge branch 'remove-lint' into 'main'Jim Newsome2026-07-153-3/+1
|\ | | | | | | | | | | | | Removed unnecessary lint Closes #2556 See merge request tpo/core/arti!4210
| * add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
| |
| * Removed unnecessary lintpryty262026-07-153-3/+1
| | | | | | | | Removed unnecessary lint
* | tor-netdoc: Expose ConsensusMethod's fieldIan Jackson2026-07-152-1/+3
| |
* | tor-netdoc: document port summaries in semver.mdIan Jackson2026-07-151-0/+1
| |
* | tor-netdoc: Test that test helper can fail as expectedIan Jackson2026-07-151-6/+39
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4198#note_3434449
* | tor-netdoc: Fix typos in docsIan Jackson2026-07-151-2/+2
| |
* | tor-netdoc: Implement precise port summariesIan Jackson2026-07-153-0/+557
| | | | | | | | | | | | | | | | For calculating `ipv6-policy` in routerdescs. Also implement for v4 for the benefit of future tests of approximate port policy summaries, for possible future protocol change, and for completeness.
* | tor-netdoc: Stabilise votes and encoding of authcerts (formatting)Ian Jackson2026-07-153-13/+8
| |
* | tor-netdoc: Stabilise votes and encoding of authcertsIan Jackson2026-07-159-37/+17
| |
* | tor-netdoc: Remove a now-unnecessary allowIan Jackson2026-07-151-1/+0
| |
* | tor-netdoc: drop a done TODOIan Jackson2026-07-151-3/+0
| | | | | | | | torspec!499 is merged.
* | tor-netdoc tests: Test consensus verification error casesIan Jackson2026-07-153-5/+104
| |
* | tor-netdoc tests: Break out prep_netstatus_verify (fmt)Ian Jackson2026-07-151-6/+1
| |
* | tor-netdoc tests: Break out prep_netstatus_verifyIan Jackson2026-07-151-18/+32
| |
* | tor-netdoc tests: Test roundtrip of subset of live dataIan Jackson2026-07-152-2/+55
| | | | | | | | With facility to test roundtrip of whole consensus.
* | tor-netdoc tests: Run new testdata-live-download scriptIan Jackson2026-07-153-0/+473
| |
* | tor-netdoc tests: Provide new testdata-live-download scriptIan Jackson2026-07-153-0/+78
| | | | | | | | | | | | | | | | I have confimed the consent of the operators of the relays listed in the script. The rationale for using .entire.FOO filenames for the curl outputs will become clear shortly.
* | tor-netdoc: Add some missing "retain-unknown" cfg gates to testsIan Jackson2026-07-151-4/+4
| | | | | | | | Nothing in CI tests incomplete without retain-unknown, apparently.
* | tor-netdoc: Now that poc is gone, make some things no longer pub(crate)Ian Jackson2026-07-151-9/+4
| |
* | tor-netdoc: Abolish pocIan Jackson2026-07-155-421/+0
| |
* | Merge branch 'clippy_warning' into 'main'Jim Newsome2026-07-132-3/+3
|\ \ | | | | | | | | | | | | multiple crates: Fix clippy warnings See merge request tpo/core/arti!4203
| * | multiple crates: Fix clippy warningshjrgrn2026-07-102-3/+3
| |/
* | Merge branch 'upgrade-cipher' into 'main'gabi-2502026-07-132-2/+2
|\ \ | |/ |/| | | | | Upgrade cipher, aes, and ctr. See merge request tpo/core/arti!4195
| * Upgrade cipher, aes, and ctr.Nick Mathewson2026-07-132-2/+2
| |
* | Merge branch 'onion-svc-negotiate-v2' into 'main'Nick Mathewson2026-07-024-5/+177
|\ \ | | | | | | | | | | | | | | | | | | Negotiate flowcontrol-cc and CGO on onion services Closes #2473 and #1948 See merge request tpo/core/arti!4135
| * | Change HS descriptor sendme_inc into a NonZeroU8Nick Mathewson2026-07-022-7/+10
| | | | | | | | | | | | | | | This saves us from having to check whether it is 0, and better represents what the type is allowed to be.
| * | netdoc: Add new capability negotiation pieces to hsdesc.Nick Mathewson2026-07-024-5/+174
| | | | | | | | | | | | | | | | | | | | | | | | The "flow-control" item is documented in proposal 324 section 9.1; there's a ticket (torspec#418) to document it. The "proto" item is documented at https://spec.torproject.org/rend-spec/hsdesc-encrypt.html#item:proto
* | | tor-netdoc: rangemap_mutate_range: Adjust a plaintive commentIan Jackson2026-07-021-1/+1
| | |
* | | tor-netdoc: rangemap_mutate_range: New functionIan Jackson2026-07-025-0/+326
|/ / | | | | | | This will be used for exit port summary calculations.
* | tor-netdoc: Remove Eq on various typesClara Engler2026-07-024-4/+6
| | | | | | | | | | This reverts the Eq derives added in !4150 while keeping the PartialEq, in order to support including this in Unknown.
* | tor-netdoc: Derive encoding for RouterSignatureClara Engler2026-07-021-9/+6
| |
* | tor-netdoc: Add TODO for .encode_sign()Clara Engler2026-07-021-0/+1
| |
* | tor-netdoc: Change concept of test_parse2Clara Engler2026-07-021-4/+4
| | | | | | | | | | | | | | This test is now called test_parse2_simple and intended to test simple parse2 and encode round-trip functionality without edge-cases and such. More edge tests will be added once we have a proper verification logic.
* | tor-netdoc: Round-trip encoding testClara Engler2026-07-021-1/+23
| | | | | | | | | | | | This commit adds a round-trip encoding test to test_parse2 that encodes the decoded results and decodes them again in order to verify that the again decoded result is equal to the original one.
* | tor-netdoc: Adjust test_parse2 to keep signaturesClara Engler2026-07-021-4/+5
| | | | | | | | | | | | | | Required for round trip encode testing which we will add in the next commit. We only keep the actual RouterDescSignatures because then we can do Eq.
* | tor-netdoc: NetdocEncodable for RouterDescClara Engler2026-07-022-5/+8
| |
* | tor-netdoc: NetdocEncodable for RouterDescSignaturesClara Engler2026-07-022-1/+2
| |
* | tor-netdoc: ItemValueEncodable for RouterSignatureClara Engler2026-07-022-0/+8
| | | | | | | | Needed for encoding.
* | Merge branch 'addr-policy-api-bis' into 'main'Clara Engler2026-07-024-2/+27
|\ \ | | | | | | | | | | | | tor-netdoc: Further minor improvements to addr and port policy types See merge request tpo/core/arti!4191
| * | tor-netdoc: Improve Debug for PortRangeIan Jackson2026-07-011-1/+2
| | | | | | | | | | | | | | | This appears in a lot of debug output and the `... lo: ... hi: ...` formulation is very noisy.
| * | tor-netdoc: AddrPolicy::rules provides a DoubleEndedIteratorIan Jackson2026-07-012-1/+2
| | |
| * | tor-netdoc: Make PortRange CopyIan Jackson2026-07-012-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This type consists of, and will always consist of, two u16. Making it Copy is convenient. This will preclude us making it contain a RangeInclusive because std::ops::RangeInclusive is not Copy (due to API design blunder in std), and std::range is still unstable. I think that's OK.
| * | tor-netdoc: Add conversions between PortRange and RangeInclusiveIan Jackson2026-07-012-0/+14
| | |
| * | tor-netdoc: Add (private) PortPolicy::from_allowed_ranges constructorIan Jackson2026-07-011-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Callers in policy.rs's sub-modules should not be required to open-code constructing this, even though they can. (PortRanges is module-private, so this is too.) This is without prejudice to possible rationalisation of the types in this area.