aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | arti: Don't mention entry validity in the help messageGabriela Moldovan2026-06-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This actually applies to unrecognized entries too, and besides, most users aren't going to think in terms of "valid" vs "invalid" entries, so it's best to omit this qualifier.
* | | | | | | Merge branch 'doc-fix' into 'main'David Goulet2026-06-171-2/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | tor-chanmgr: Remove comment for something that's not implemented See merge request tpo/core/arti!4124
| * | | | | | tor-chanmgr: remove comment for something that's not implementedSteven Engler2026-06-171-2/+1
| | | | | | |
* | | | | | | Merge branch 'keys-list-output' into 'main'gabi-2502026-06-175-149/+386
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | arti: subcommands: keys: Rework output of keys list See merge request tpo/core/arti!4015
| * | | | | | arti: subcommands: keys: Rework output of keys listhjrgrn2026-06-175-149/+386
| | | | | | |
* | | | | | | Merge branch 'stream-reexport' into 'main'David Goulet2026-06-1714-43/+37
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto: Reexport the Incoming* types from tor_proto::stream See merge request tpo/core/arti!4123
| * | | | | | | proto: Update tests to use the new stream exportsGabriela Moldovan2026-06-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests don't compile otherwise.
| * | | | | | | proto: Add crate-level exports for two extra stream types (fmt)Gabriela Moldovan2026-06-1711-37/+20
| | | | | | | |
| * | | | | | | proto: Add crate-level exports for two extra stream typesGabriela Moldovan2026-06-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For convenience. This will soon replace a corresponding re-export from `tor_proto::client::stream`.
| * | | | | | | proto: Re-export StreamReceiver from tor_proto::streamGabriela Moldovan2026-06-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will soon replace the re-export from `tor_proto::client::stream`.
| * | | | | | | proto: Re-export the Incoming* types from tor_proto::streamGabriela Moldovan2026-06-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These will replace the pub re-exports from `tor_proto::client::stream`. This reorg is needed because currently, the only public export of the incoming stream types is from `tor_proto::client::stream`, but these aren't actually client specific: relays will use them too, for implementing exit, DNS and directory streams. So it makes more sense to export them from the top-level stream module instead.
| * | | | | | | proto: Make the stream module pubGabriela Moldovan2026-06-171-1/+1
| | | | | | | |
* | | | | | | | Merge branch 'ci-test' into 'main'Nick Mathewson2026-06-171-3/+45
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Added ipv6 and hostname support for reply for socks5 See merge request tpo/core/arti!4063
| * | | | | | | sockproto: Tighten match and clean comments.Nick Mathewson2026-06-171-12/+6
| | | | | | | |
| * | | | | | | Added ipv6 and hostname support for reply for sockspryty262026-06-111-3/+51
| | | | | | | |
* | | | | | | | tor-netdoc: votes: use EmbeddedCert for the authhcertIan Jackson2026-06-172-2/+6
| | | | | | | |
* | | | | | | | tor-netdoc: EmbeddedCert: support whole netdocs (for AuthCert) (fmt)Ian Jackson2026-06-171-2/+7
| | | | | | | |
* | | | | | | | tor-netdoc: EmbeddedCert: support whole netdocs (for AuthCert)Ian Jackson2026-06-172-2/+34
| | | | | | | |
* | | | | | | | Merge branch 'consensus-roundtrip' into 'main'Ian Jackson2026-06-179-100/+312
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement encoding and verification for consensuses, and add a round trip test See merge request tpo/core/arti!4100
| * | | | | | | | tor-netdoc: consensus_threshold: return a RangeFromIan Jackson2026-06-172-8/+14
| | | | | | | | |
| * | | | | | | | tor-netdoc: Document new facilitiesIan Jackson2026-06-171-0/+2
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Round trip an md consensusIan Jackson2026-06-171-9/+17
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Make roundtrip test generic (fmt)Ian Jackson2026-06-171-19/+16
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Promote a fudgeIan Jackson2026-06-171-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Microdescriptor consensuses are affected by this same anomaly.
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Make roundtrip test genericIan Jackson2026-06-171-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will let us test microdescriptors and votes with the same code.
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Round trip a plain consensusIan Jackson2026-06-172-2/+43
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: Add regsub utility functionIan Jackson2026-06-172-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to need this for fudges in round trip tests of consensuses etc.
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Mess with authcerts in a block (fmt)Ian Jackson2026-06-171-10/+10
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Mess with authcerts in a blockIan Jackson2026-06-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids rebinding file and text and input to the authcerts. We're going to want to use at least some of those values later.
| * | | | | | | | tor-netdoc: tests: ns parse2 test: enable UnknownIan Jackson2026-06-171-1/+2
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Use real document type (fmt)Ian Jackson2026-06-171-3/+2
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: ns parse2 test: Use real document typeIan Jackson2026-06-171-4/+4
| | | | | | | | |
| * | | | | | | | tor-netdoc: tests: Move ns poc tests to netstatus.rsIan Jackson2026-06-173-70/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to turn these into full-on round-trip tests for both flavours of consensus. We must temporarily bodge the more comprehensive test, for plain con sensuses, to to still use the actual document type from poc. That allows us to avoid changing the arguments to verify() etc. (poc's verify is subtly different to the real NetworkStatus's.) When these tests were in poc, they were gated by the incomplete cfg on the whole of poc. Now they have one each. Almost entirely code motion; review with git show --color-moved --color-moved-ws=allow-indentation-change
| * | | | | | | | tor-netdoc: tests: Move poc authcert test to authcert.rsIan Jackson2026-06-172-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no separate poc authcert type any more. This is a perfectly fine test case. Almost entirely code motion; review with git show --color-moved --color-moved-ws=allow-indentation-change
| * | | | | | | | tor-netdoc: poc tests: drop some unneeded &'sIan Jackson2026-06-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clippy complains (clippy::needless_borrows_for_generic_args). In poc, we have an allow with a TODO asking for this to be done generally in the Arti codebase. Let's postpone shaving that yak.
| * | | | | | | | tor-netdoc: poc tests: use normal names for authcertsIan Jackson2026-06-171-6/+4
| | | | | | | | |
| * | | | | | | | tor-netdoc: poc tests: simulate normal outside-poc variety module namesIan Jackson2026-06-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are going to reuse/move this test code. Ie, it is going to be testing the real network document types. The naming outside poc is different. To make future diffs a bit less noisy, change some type names in the test code and fudge it up with a use.
| * | | | | | | | tor-netdoc: un-cfg-gate some use'sIan Jackson2026-06-171-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have the #1645 allow at the top of lib.rs, so this is unnecessary bureaucracy. Let's simplify this before adding more to it.
| * | | | | | | | tor-netdoc: provide verify methods on new consensus types (fmt)Ian Jackson2026-06-171-3/+2
| | | | | | | | |
| * | | | | | | | tor-netdoc: provide verify methods on new consensus typesIan Jackson2026-06-172-2/+116
| | | | | | | | |
| * | | | | | | | tor-netdoc: Break out consensus_threshold fnIan Jackson2026-06-172-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This calculation appeared 3 times.
| * | | | | | | | tor-netdoc: NetworkStatus: derive EncodeIan Jackson2026-06-171-1/+1
| | | | | | | | |
* | | | | | | | | Merge branch 'sp-fingerprint-encode' into 'main'Clara Engler2026-06-172-5/+32
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Encode for SpFingerprint See merge request tpo/core/arti!4116
| * | | | | | | | | tor-netdoc: Round-trip test SpFingerprint encodingClara Engler2026-06-171-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a round-trip encoding for SpFingerprint to the already existing parsing test.
| * | | | | | | | | tor-netdoc: Small SpFingerprint test refactoringClara Engler2026-06-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not shadow s and provide access to Wrapper instead of just the inner fingerprint. We will make use of this soon.
| * | | | | | | | | tor-netdoc: Encode for SpFingerprintClara Engler2026-06-172-0/+16
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements encode::ItemArgument for SpFignerprint. A test will be added in the next commit.
* | | | | | | | | Merge branch 'ntor-cc-rd' into 'main'Ian Jackson2026-06-173-7/+25
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Add ntor onion key cross certificate to RouterDesc See merge request tpo/core/arti!4109
| * | | | | | | | tor-netdoc: Create NtorOnionKeyCrossCert at better placeClara Engler2026-06-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves the construction place for the NtorOnionKeyCrossCert from the final RouterDesc construction to the crosscert code block, which should be more correct.
| * | | | | | | | tor-netdoc: Add ntor_onion_key_crosscert to RouterDescClara Engler2026-06-152-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds ntor_onion_key_crosscert to RouterDesc as well as integrating it into the legacy parser.
| * | | | | | | | tor-netdoc: Extract ntor bit and cert in legacy parser (fmt)Clara Engler2026-06-151-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional change.