Nick Mathewson
3c2648bbda
Move "relay" and "router" periodic callbacks out of mainloop.c
...
(Some of these callbacks are specific to the OR module, so now it's
time to have an or_sys and or_periodic.)
2019-05-06 16:35:39 -04:00
Nick Mathewson
b394b5b2af
Create a relay subsystem and move the shutdown functions there
2019-05-06 16:25:09 -04:00
George Kadianakis
e9769d6217
Hiding crypt_path_t: Add changes file.
2019-05-06 17:54:51 +03:00
David Goulet
07e4b09b5f
sendme: Add FlowCtrl protover value
...
See proposal 289 section 4.3 for more details.
It describes the flow control protocol at the circuit and stream level. If
there is no FlowCtrl protocol version, tor supports the unauthenticated flow
control features from its supported Relay protocols.
At this commit, relay will start advertising FlowCtrl=1 meaning they support
authenticated SENDMEs v1.
Closes #30363
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-03 13:56:36 -04:00
David Goulet
2aa441b88e
Merge branch 'tor-github/pr/954'
2019-05-03 13:11:03 -04:00
George Kadianakis
7f2cd6545c
Hiding crypt_path_t: Hide 'crypto' usage in sendme.c
2019-05-03 18:29:51 +03:00
George Kadianakis
ea5f355fc9
Hiding crypt_path_t: Change code to use the privatization macro.
2019-05-03 18:15:26 +03:00
George Kadianakis
55d35c0caa
Hiding crypt_path_t: Hiding 'crypto' using a macro.
2019-05-03 18:15:26 +03:00
George Kadianakis
2ef0324639
Revert "Hiding crypt_path_t: Ensure that ->private is initialized."
...
This reverts commit 7497c9193a0f2c891a0802bf5fbe73cf7ec1ca99.
2019-05-03 18:15:26 +03:00
George Kadianakis
4060b7623d
Revert "Hiding crypt_path_t: Create a constructor for crypt_path_t."
...
This reverts commit ab8b80944967ee5a6a0c45dbf61839cf257bfe44.
2019-05-03 18:15:26 +03:00
George Kadianakis
2e9e3e7d41
Hiding crypt_path_t: Some TODO notes for future directions.
2019-05-03 18:15:26 +03:00
George Kadianakis
0ed5c6edf9
Hiding crypt_path_t: Move some more crypt_path-specific functions.
...
- Move test-only cpath_get_n_hops() to crypt_path.c.
- Move onion_next_hop_in_cpath() and rename to cpath_get_next_non_open_hop().
The latter function was directly accessing cpath->state, and it's a first step
at hiding ->state.
2019-05-03 18:15:26 +03:00
George Kadianakis
58fbbc1409
Hiding crypt_path_t: Rename some functions to fit the crypt_path API.
...
Some of these functions are now public and cpath-specific so their name should
signify the fact they are part of the cpath module:
assert_cpath_layer_ok -> cpath_assert_layer_ok
assert_cpath_ok -> cpath_assert_ok
onion_append_hop -> cpath_append_hop
circuit_init_cpath_crypto -> cpath_init_circuit_crypto
circuit_free_cpath_node -> cpath_free
onion_append_to_cpath -> cpath_extend_linked_list
2019-05-03 18:15:26 +03:00
George Kadianakis
593b7726e9
Hiding crypt_path_t: Trivial changes to satisfy check-local.
2019-05-03 18:15:26 +03:00
George Kadianakis
cd38e41620
Hiding crypt_path_t: Ensure that ->private is initialized.
...
Now that we are using a constructor we should be more careful that we are
always using the constructor to initialize crypt_path_t, so make sure that
->private is initialized.
2019-05-03 18:15:11 +03:00
George Kadianakis
f5635989b0
Hiding crypt_path_t: Create a constructor for crypt_path_t.
...
We are using an opaque pointer so the structure needs to be allocated on the
heap. This means we now need a constructor for crypt_path_t.
Also modify all places initializing a crypt_path_t to use the constructor.
2019-05-03 18:15:11 +03:00
George Kadianakis
18d61c0e6e
Hiding crypt_path_t: Fixup broken unittests.
2019-05-03 18:15:11 +03:00
George Kadianakis
4bd0c4852a
Hiding crypt_path_t: Move the free func in crypt_path.c.
...
Again everything is moved, apart from a free line using ->private.
2019-05-03 18:15:11 +03:00
George Kadianakis
5f96b7abcc
Hiding crypt_path_t: Move some more init funcs in crypt_path.c.
...
Everything is moved, but the argument of the function is edited to access
->private->crypto.
2019-05-03 18:15:11 +03:00
George Kadianakis
0c5176d00c
Hiding crypt_path_t: Start with crypt_path.crypto .
...
Create some functions to eventually be able to hide crypt_path_t.crypto.
2019-05-03 18:15:11 +03:00
George Kadianakis
f74a80dc3b
Hiding crypt_path_t: Move init functions to crypt_path.c.
...
This commit only moves code.
2019-05-03 18:15:00 +03:00
George Kadianakis
9584798e57
Hiding crypt_path_t: Move assert functions in crypt_path.c.
...
This commit only moves code, and makes one function public.
2019-05-03 18:15:00 +03:00
George Kadianakis
c3a5e6b436
Hiding crypt_path_t: Introduce opaque crypt_path_private_t .
...
This will be our base for incrementally hiding crypt_path_t.
2019-05-03 18:15:00 +03:00
David Goulet
b3492d53c3
Merge branch 'tor-github/pr/984'
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-03 10:56:12 -04:00
Nick Mathewson
d20cfc00ce
Note how to update the new website in the ReleasingTor.md instructions
2019-05-03 08:51:28 -04:00
Nick Mathewson
1f13c2bd23
Merge branch 'maint-0.4.0'
...
"ours" to avoid version bump.
2019-05-02 14:33:09 -04:00
Nick Mathewson
2b54733dc0
Bump to 0.4.0.5-dev
2019-05-02 14:32:55 -04:00
Nick Mathewson
2fca2ed499
forward-port changelog and releasenotes from 0.4.0.5
2019-05-02 14:32:24 -04:00
George Kadianakis
b2c2cb9287
Merge branch 'tor-github/pr/986'
2019-05-02 18:12:52 +03:00
David Goulet
562bcbcfc2
sendme: Add changes file for prop289
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-02 11:10:41 -04:00
George Kadianakis
4d461e20f7
Merge branch 'tor-github/pr/999'
2019-05-02 17:48:09 +03:00
Nick Mathewson
721e65a1d5
Add comments to include.am files to note where new sources go
...
This mechanism isn't perfect, and sometimes it will guess wrong,
but it will help our automation.
2019-05-02 09:37:18 -04:00
Nick Mathewson
ee36bfa6de
Changes file for improved dirauth modularity (ticket 30345)
2019-05-02 09:22:13 -04:00
Nick Mathewson
0f365e2f46
practracker updates.
2019-05-02 09:22:13 -04:00
Nick Mathewson
9c3aa22740
Remove some now-needless dirauth includes
2019-05-02 09:22:13 -04:00
Nick Mathewson
a45413e7d5
Make keypin.c dirauth-only
2019-05-02 09:22:13 -04:00
Nick Mathewson
31fb4a7845
Make the bwauth.c module dirauth-only.
2019-05-02 09:22:13 -04:00
Nick Mathewson
6f42efaa59
Move voteflags.[ch] to become dirauth only.
...
For various reasons, this was a nontrivial movement. There are
several places in the code where we do something like "update the
flags on this routerstatus or node if we're an authority", and at
least one where we pretended to be an authority when we weren't.
2019-05-02 09:22:13 -04:00
David Goulet
77bd219808
sendme: Improve logging messages
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-02 08:58:58 -04:00
Nick Mathewson
3d13841fa5
Remove changes files that are already in 0.4.0.5 or earlier
2019-05-02 08:42:01 -04:00
Nick Mathewson
0a2b96cae6
Merge remote-tracking branch 'tor-github/pr/989'
2019-05-02 08:36:09 -04:00
Mike Perry
e1771aeb51
The practracker beatings will continue until our files get smaller.
2019-05-01 21:04:40 +00:00
Mike Perry
332617a81a
Changes file for bug29231.
2019-05-01 21:03:23 +00:00
Mike Perry
d0fb74c902
Bug 29231: Report correct padding write totals and enabled totals.
2019-05-01 21:00:26 +00:00
Nick Mathewson
4973ceb46b
Merge remote-tracking branch 'tor-github/pr/950'
2019-05-01 09:11:20 -04:00
Nick Mathewson
39bd10dca6
Merge branch 'maint-0.4.0'
...
"ours" to avoid version bump
2019-04-30 15:54:03 -04:00
Nick Mathewson
cafb999810
bump to 0.4.0.5
2019-04-30 15:53:53 -04:00
Nick Mathewson
996f7c75ba
Make the reachability.c module dirauth-only.
2019-04-30 15:00:08 -04:00
Nick Mathewson
339ac4dc67
Make the guardfraction.c module dirauth-only.
2019-04-30 15:00:08 -04:00
Nick Mathewson
857bfc7033
Make the process_descs.c module dirauth-only.
2019-04-30 15:00:07 -04:00