| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
|
| | | |
| | |
| | |
| | | |
This is just code motion
|
| | | |
| | |
| | |
| | |
| | |
| | | |
I am about to move this out of the `extend_and_forward()` test, because
I want to reuse it in the new `reject_stream()` test for checking that
the relay wrote an END cell to the stream.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This test currently fails, because `IncomingStream::reject()` calls
`RelayCirc::close_pending()` under the hood, which isn't implemented
yet.
Part of #2590
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
proto: log hop settings at trace upon client circuit opening.
See merge request tpo/core/arti!4076
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
This updates semver.md with the breaking changes done to the Ed25519
certificate verification methods.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
No functional change.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit modifies the .verify() method for the Ed25519 embedded
certificates to wrap the result in a TimerangeBound, which inevitably
also changes the function signature in terms of arguments to no longer
accept SystemTime/Duration arguments.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Try out deftly $impl feature, mostly in tor-config
See merge request tpo/core/arti!4095
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
tor-netdoc: addr policy: Overhaul and fix /0 bug
Closes #2589
See merge request tpo/core/arti!4128
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
IMO it makes more sense to describe the semantics, than the syntax.
(This is a private type at the moment.)
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
These are currently accepted. I'm not sure if we want to change that.
For now, add a test case.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
ipnet is a very widely used crate which is already in our dependency
stack.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ADDR/0 is not the same as *, because it specifies the IP version.
Turning 0.0.0.0/0 into * is wrong, because * accepts IPv6 too.
Do this by abolishing the V4Star and V6Star variants. Sadly Rust
thinks that u32 << 32 is an overflow, not zero, so we do still need a
special case for a zero prefix length. (But we're about to delete
this code.)
Fixes #2589.
|
| | | | |
| | | |
| | | |
| | | | |
This is, also, wrong.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
We should privilege the "is the same" case. Rename check to check2
and check1 to check.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This allows us to easily distinguish by eye, the cases where things
changed (ie, where the input string was canonical), from the ones
where they didn't.
One of these cases is a bug.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A "mask" is a bitmask, eg 255.255.0.0 in 192.168.0.0/255.255.0.0.
These are all prefix lengths.
Using the word "mask" to refer to a prefix length is quite bad,
because prefix lengths are numbers and sometimes masks are too.
Using one as the other would be a bug.
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | | |
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.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This lets us skip fields which have the default values.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
All these types already have parsing derives.
The encoding isn't quite right yet. It's legal, but doesn't match C
Tor as well as we'd like.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Create dirauth crates (empty)
See merge request tpo/core/arti!4122
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|