- 07 Dec, 2017 1 commit
-
-
Nick Mathewson authored
-
- 06 Dec, 2017 39 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
David Goulet authored
This makes sure that a non opened channel is never put back in the channel pending list and that its state is consistent with what we expect that is IDLE. Test the fixes in #24502. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Alexander Færøy authored
This patch adds a check for the return value of `hs_parse_address()` in `hs_control_hspost_command()`. Since it should not be possible for `hs_parse_address()` to fail in this context we wrap the error check with the `BUG()` macro. See: https://bugs.torproject.org/24543
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Also, explain which files should be put in which.
-
Nick Mathewson authored
-
Nick Mathewson authored
They work the same as DataDirectory, but default slightly different. Tor is not actually updated to use them yet.
-
Nick Mathewson authored
-
Nick Mathewson authored
This patch is a result of auditing all of our uses of get_datadir_fname() and its kin, and dividing them into cache vs keys vs other data. The new get_keydir_fname() and get_cachedir_fname() functions don't actually do anything new yet.
-
Nick Mathewson authored
This had somehow gotten duplicated between router.c and routerkeys.c
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Part of #20699. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Make this a bit more safe with at least type checking of the pointers depending on the version. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
This introduces the test_hs_control.c file which at this commit contains basic unit test for the HS_DESC event. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
This is removed for two reasons. First, HSDir accepts descriptor even though they don't think they are in fact an HSDir. This is to avoid consensus desync between client/service and directories. Second, our malicious HSDir scanner uses the HSPOST command to post on all relays in order to test them before they could become HSDir. We had to remove that check from the tor code that the scanner uses. Thus, this check should not be enforced by the control port for the above use cases. It is also a bit more complex with v3 support for which not all HSDir support it so basically irrelevant check. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
It is not used yet at this commit. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
This is groundwork for the HSPOST control port command that needs a way in the HS subsystem to upload a service descriptor to a specific HSDir. To do so, we add a public function that takes a series of parameters including a fully encoded descriptor and initiate a directory request to a specific routerstatut_t object. It is for now not used but should be, in future commit, by the HSPOST command. This commit has no behavior change, only refactoring. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
"REND_QUERY=" can now output a v3 address. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
When failing to upload a descriptor, signal the control port with a FAILED event. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
This makes the REPLICA= field optional for the control port event. A v2 service will always pass it and v3 is ignored. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Adds a v3 specific function to handle a received event. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
A new v3 specific function has been added named control_event_hsv3_descriptor_failed(). The HS v3 subsystem now uses it. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
This changes the control_event_hs_descriptor_requested() call to add the hsdir index optional value. v2 passes NULL all the time. This commit creates hs_control.{c|h} that contains wrappers for the HS subsystem to interact with the control port subsystem. The descriptor REQUESTED event is implemented following proposal 284 extension for v3. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Make control_event_hs_descriptor_received() and control_event_hs_descriptor_failed() v2 specific because they take a rend_data_t object and v3 will need to pass a different object. No behavior change. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-