| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Give a tx to the descriptor task so it can request the keys when
building a new descriptor.
Implement the crypto task handling of that command channel.
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The crypto task can now signal the descriptor task that the keys have
changed related to the relay descriptor (signing key and ntor keys) so
a new descriptor can be built and uploaded.
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: David Goulet <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Config reload is not fully supported just yet but when that comes, we'll
need to make a task command for new targets.
Signed-off-by: David Goulet <[email protected]>
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is the basics, with many TODO(relay), for a relay descriptor upload
task which uses tor-dirpublish::Publisher.
Future commits will implement the several todo!().
Signed-off-by: David Goulet <[email protected]>
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
align DestroyReason with torspec!490
Part of #2578
See merge request tpo/core/arti!4202
|
| | |/ / / |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`HopSettings::from_handshake_params()` checks that the parameters are
correct, so if there are invalid parameters we should fail early before
we initialize the `CryptStatePair`.
|
| | | | |
| | | |
| | | |
| | | | |
This is just to make ntor and CREATE_FAST handshakes consistent.
|
| |/ / / |
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
Fix some recently-appearing clippy lints
See merge request tpo/core/arti!4240
|
| | | |
| | |
| | |
| | | |
Found by rustdoc.
|
| | | |
| | |
| | |
| | | |
Placates clippy.
|
| | | |
| | |
| | |
| | | |
Placates recent clippy.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Placates recent clippy. I find the API of both of these functions
unsatisfactory and would prefer a chunks_exact that promises to panic,
but I didn't find one in std or Itertools.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Tidy some uses of Intern
See merge request tpo/core/arti!4233
|
| | | | |
| | | |
| | | |
| | | | |
We intern these in Microdesc, and should be consistent.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Rather than converting it to an Arc. This is the new idiom for Intern.
|
| | | | |
| | | |
| | | |
| | | | |
We don't need to open-code this any more.
|
| | | | |
| | | |
| | | |
| | | | |
This makes the interning more natural.
|
| | |/ /
| | |
| | |
| | | |
Use educe so that we don't derive T: Clone bound.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
tor-proto: Add `HopSettings::from_handshake_params()` for incoming circuit requests
See merge request tpo/core/arti!4171
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The advantage of this over using a `SubprotocolRequest` is that we can
use the type system to ensure it only has subprotocols that are allowed
during a handshake.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
We never used this, it was just needed because we used to convert to a
`CircParameters` which required this.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... and also remove `CircNetParameters::as_circ_parameters()`.
We used to call `HopSettings::from_params_and_caps()` when handling
incoming circuit requests, but this didn't really make sense because we
already know exactly what settings we want.
The new `HopSettings::from_handshake_params()` takes the exact settings
we want, which means we can also skip constructing a `CircParameters`
and use the raw consensus `CircNetParameters`.
Most of the code in `CircNetParameters::as_circ_parameters()` has been
migrated in some form to `HopSettings::from_handshake_params()`.
|
| | |/ / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
tor-netdoc testdata-live: More shell script, less macrology
See merge request tpo/core/arti!4238
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is no longer used. Get rid of the code which generates it, and
the generated file.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This gits rid of the macrology, apart from the generated macro module
file.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is the code for the new approach. It's kind of ad-hoc but also
much less deep than the previous macrology.
And, run the script to see the output. Currently that file isn't used.
For now we leave the shell script code for generating
selected_relays.rs in testdata-live-download. The new code for
generated_consts.rs is very different, so it's clearer to split the
changes up this way.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I'm going to change the generation, and that means I need input files,
so I need to run a download (as per the comment in
testdata-live-download).
I'm doing this first, so the rest of the MR can see individual
changes.
|
| |\| | |
| |/ /
|/| |
| | |
| | | |
tor-netdoc testdata-live: Two nits
See merge request tpo/core/arti!4237
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
arti-relay: Remove unused_async clippy escape hatch
See merge request tpo/core/arti!4239
|