Nick Mathewson
6472d9cfdf
Run "make autostyle"
2020-02-26 16:45:33 -05:00
George Kadianakis
93cb8072be
Final touches to #32709 based on Nick's feedback.
...
- Fix a bug and add unittest.
- Add changes file.
- Add man page entry.
2020-02-24 12:15:35 +02:00
George Kadianakis
975102869a
Fix issues pointed out by Nick.
...
- Loose the asserts on num_pkeys.
- Straighten some dangling &.
- Fix some unpredictable memcpys.
2020-02-18 12:37:34 +02:00
George Kadianakis
635f58bad2
Introduce an hs_ob_free_all() function.
2020-01-28 01:07:51 +02:00
George Kadianakis
0133169481
Allow clients to connect to the instance even with OB enabled.
...
We do this by including the instance's subcredentials to the list of
subcredentials that are used during INTRO2 decryption.
2020-01-28 01:07:51 +02:00
George Kadianakis
da15feb0d3
Refresh OB keys when we build a new descriptor.
...
We now assign OB subcredentials to the service instead of computing them on the
spot. See hs_ob_refresh_keys() for more details.
2020-01-28 01:07:28 +02:00
Nick Mathewson
4532c7ef6a
Turn hs_subcredential_t into a proper struct.
2020-01-21 10:31:29 -05:00
David Goulet
faada6af8d
hs-v3: Implement hs_ob_service_is_instance()
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-21 10:31:29 -05:00
David Goulet
02f1caa583
hs-v3: Validate INTRO2 cells for onion balance
...
Closes #32709
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-21 10:31:29 -05:00
David Goulet
ef28afa255
hs-v3: Add the Onion Balance config file option
...
At this commit, the service reads the config file and parse it to finally set
the service config object with the options.
Part of #32709
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-21 10:31:29 -05:00