| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |/
|/|
| |
| |
| |
| | |
Additionally, fix itertools usage in maybenot_padding.rs
The definition of `Position` changed in 0.15.0.
|
| |/ |
|
| | |
|
| |
|
|
|
| |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4141#note_3430551
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
"Pattern" is wrong. Everything here is a pattern. This field is
the *address* pattern as opposed to the *ports* pattern.
|
| | |
|
| | |
|
| |
|
|
| |
impl From<IpNet>, Copy, Hash
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
No longer required because it implements Copy.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
tor-netdoc: ExpandedKeypair for Ed25519NtorCrossCert::new_signed()
See merge request tpo/core/arti!4155
|
| | |
| |
| |
| |
| |
| |
| | |
This commit changes Ed25519NtorCrossCert::new_signed() to accept an
ExpandedKeypair instead of a Keypair, because when converting the ntor
key using convert_curve25519_to_ed25519_public(), only the
ExpandedKeypair is returned, which is a one-way conversion from Keypair.
|
| |\ \
| |/
|/|
| |
| | |
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.
|
| |\ \
| | |
| | |
| | |
| | | |
tor-netdoc: Replace trivial string slice
See merge request tpo/core/arti!4143
|
| | | | |
|
| | | |
| | |
| | |
| | | |
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.
|
| | |
| |
| |
| | |
As a shorthand for T::intern_cache().intern(value).
|
| | | |
|
| | |
| |
| |
| | |
This commit wraps the port policies in an Intern.
|
| | |
| |
| |
| | |
This commit wraps the relay family in an Intern instead of an Arc.
|
| | |
| |
| |
| | |
Just a boilerplate implementation.
|
| | |
| |
| |
| |
| | |
This commit implements ItemValueParseable and ItemArgumentParseable for
Intern<T> types. This should be sufficient for the time being.
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
No functional change.
|
| | |
| |
| |
| |
| | |
This commit modifies the codebase to actually return Intern<T> in
InternCache<T> and adds calls to .into() accordingly.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|