| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| |
|
|
|
|
|
|
|
| |
Ideally we would have Arti sort things sensibly but currently we have
no types in Arti that are (1) faithful (2) sort correctly.
Most of the existing types eventually have a `TorVersion` inside,
which is lossy, so we can't use them for (eg) dirauth network status
processing.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
torspec!499 is merged.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
With facility to test roundtrip of whole consensus.
|
| |
|
|
| |
Nothing in CI tests incomplete without retain-unknown, apparently.
|
| | |
|
| |\
| |
| |
| |
| | |
multiple crates: Fix clippy warnings
See merge request tpo/core/arti!4203
|
| | | |
|
| |\ \
| |/
|/|
| |
| | |
Upgrade cipher, aes, and ctr.
See merge request tpo/core/arti!4195
|
| | | |
|
| | |
| |
| |
| |
| | |
This saves us from having to check whether it is 0, and better
represents what the type is allowed to be.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| | |
This reverts the Eq derives added in !4150 while keeping the PartialEq,
in order to support including this in Unknown.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| | |
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: Remove document hash from Microdesc struct (and add MicrodescAndHash for that)
See merge request tpo/core/arti!4138
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The Microdesc type having a copy of the document hash was always
weird, and it's weirder now that there's all these parse2 types that
don't have it and parse2 derives on Microdesc that don't touch it.
Make a new type for the descriptor and its hash.
Use deref to arrange that the new type works almost like the old one.
Adjust the use lines in the dependencies to temporarily import
MicrodescAndHash as Microdesc.
|
| | |
| |
| |
| |
| | |
Code motion, plus adding a new impl block, to make the next commit
clearer.
|
| | |
| |
| |
| | |
No functional change, just reformatting.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
Removes a blocking comment and replaces it with a TODO DIRAUTH.
|
| | |
| |
| |
| | |
This commit wraps the port policies in an Intern.
|
| | |
| |
| |
| | |
This commit wraps the relay family in an Intern instead of an Arc.
|
| | |
| |
| |
| | |
No functional change.
|
| | |
| |
| |
| |
| | |
This commit modifies the codebase to actually return Intern<T> in
InternCache<T> and adds calls to .into() accordingly.
|
| |\ \
| |/
|/|
| |
| | |
Derive NetdocParseableUnverified for RouterDesc
See merge request tpo/core/arti!4134
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
Only for testing, just returns the inner body. Will be removed once we
have a proper verify method.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| |
| | |
We don't need the type to be private. Indeed, we'd like it not to be
to make Microdesc construction with Constructor regular
|
| | |
| |
| |
| |
| | |
"OnionKeyIntro" is particularly odd. Mostly people won't need to
refer to this, anyway.
|