Nick Mathewson
7505f452c8
Run the copyright update script.
2017-03-15 16:13:17 -04:00
Nick Mathewson
85a17ee2e7
whitespace fixes
2017-01-18 17:14:42 -05:00
Nick Mathewson
88e4ffab9e
Merge remote-tracking branch 'dgoulet/ticket20029_030_06-resquash'
2017-01-18 17:13:36 -05:00
George Kadianakis
d6c14915cd
Improve a few comments.
...
- Also remove LCOV marks from blocks of code that can be reachable by tests
if we mock relay_send_command_from_edge().
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-18 16:59:16 -05:00
David Goulet
50cfc98340
prop224: Add unit tests for INTRODUCE1 support
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-18 16:58:54 -05:00
David Goulet
5208085be1
hs: Rename rend_mid_introduce() with legacy semantic
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-18 16:58:34 -05:00
David Goulet
9d7505a62a
prop224: Rename hs_intro_circuit_is_suitable()
...
Adds a better semantic and it also follows the same interface for the
INTRODUCE1 API which is circuit_is_suitable_for_introduce1().
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-18 16:58:34 -05:00
David Goulet
e1497744c8
prop224: Add INTRODUCE1 cell relay support
...
Closes #20029
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-18 16:58:33 -05:00
David Goulet
db0e926849
hs: Remove a useless cast in verify_establish_intro_cell()
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-12-16 12:21:07 -05:00
David Goulet
b0ccb6bfa5
hs: Add an extra safety check on ESTABLISH_INTRO sig len
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-12-16 12:21:07 -05:00
Nick Mathewson
81360c4a5f
whitespace fixes
2016-12-14 15:41:08 -05:00
David Goulet
a4eb17ed89
prop224: Use LOG_PROTOCOL_WARN instead of log_warn(LD_PROTOCOL, ...) in hs_intropoint.c
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-12-14 15:19:10 -05:00
David Goulet
118691cd47
crypto: Change crypto_mac_sha3_256 to use the key length in the construction
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-12-14 15:18:40 -05:00
George Kadianakis
d7be1fd519
prop224: Introduce the new introduction point code.
...
(pun not intended)
Now our code supports both legacy and prop224 ESTABLISH_INTRO cells :)
hs_intro_received_establish_intro() is the new entry point.
2016-12-14 15:18:36 -05:00