summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* | | Upgrade to itertools 0.15.0Nick Mathewson2026-07-011-2/+2
| |/ |/| | | | | | | | | Additionally, fix itertools usage in maybenot_padding.rs The definition of `Position` changed in 0.15.0.
* | Upgrade to phf 0.14.0.Nick Mathewson2026-07-011-1/+1
|/
* tor-netdoc: AddrPolicy: Improve docs including spec xrefIan Jackson2026-07-011-2/+8
|
* tor-netdoc: IpPattern: Explain difference between `*` and `0.0.0.0/0`Ian Jackson2026-07-011-1/+4
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4141#note_3430551
* tor-netdoc: AddrPolicy: Provide rules accessorIan Jackson2026-07-012-0/+8
|
* tor-netdoc: AddrPortPattern: Improve APIIan Jackson2026-07-012-1/+7
|
* tor-netdoc: AddrPortPattern: Expose contents, exhaustivelyIan Jackson2026-07-012-2/+8
|
* tor-netdoc: AddrPortPattern: Rename pattern field to addrsIan Jackson2026-07-011-8/+8
| | | | | "Pattern" is wrong. Everything here is a pattern. This field is the *address* pattern as opposed to the *ports* pattern.
* tor-netdoc: AddrPortPattern: Improve formatting a bitIan Jackson2026-07-011-3/+2
|
* tor-netdoc: IpPattern: Expose publiclyIan Jackson2026-07-013-4/+8
|
* tor-netdoc: IpPattern: Improve APIIan Jackson2026-07-011-2/+2
| | | | impl From<IpNet>, Copy, Hash
* tor-netdoc: IpPattern: Improve docsIan Jackson2026-07-011-0/+5
|
* Remove semver.md filesNick Mathewson2026-06-301-56/+0
|
* Version bumps for 2.5.0Nick Mathewson2026-06-301-14/+14
| | | | | | | | | | | | | Closes #2617. We've lucked out this time, and it turns out that every one of our published crates gets a minor bump. So this was generated with: ``` for cr in $(./maint/list-crates); do cargo set-version -p $cr --bump minor done ```
* tor-netdoc: Derive Eq on RouterDescSignaturesClara Engler2026-06-292-1/+2
|
* tor-netdoc: Derive Eq on RouterDescClara Engler2026-06-292-1/+2
|
* tor-netdoc: Derive Eq on (embedded) certificate typesClara Engler2026-06-293-2/+3
|
* tor-netdoc: Remove redundant .clone() callClara Engler2026-06-291-1/+1
| | | | No longer required because it implements Copy.
* tor-netdoc: Fix Ed25519NtorCrossCert rangeClara Engler2026-06-291-11/+4
| | | | | | | | | | This commit fixes the range to NOT include SystemTime::UNIX_EPOCH. This is because TimerangeBound makes a difference between a lower bound being Some or None. This was discovered later during test and is crucial to properly detect a minimum in the yet-to-be-merged .verify() method for router descriptors.