Commit Graph

39081 Commits

Author SHA1 Message Date
Nick Mathewson 07f0a2b964 Make onion-key body optional in microdescs
Also, stop storing onion keys in microdesc_t.

(In prop350, for microdescs, we are making the body optional; the "onion-key"
entry is still mandatory, so that we can tell where microdescs begin.)
2024-06-24 17:48:55 -04:00
Nick Mathewson f631145cbf Remove support for deciding to use CREATE/EXTEND/TAP. 2024-06-24 13:54:26 -04:00
Nick Mathewson f6f2d5c4a0 prop350: Remove all support for TAP, CREATE, and EXTEND. 2024-06-24 13:51:54 -04:00
Nick Mathewson a696559d78 prop350: Stop accepting CREATE and EXTEND. 2024-06-24 13:29:04 -04:00
David Goulet ef05979587 Merge branch 'maint-0.4.8' 2024-06-18 15:19:12 -04:00
David Goulet d587ba01a7 bridge: Always put transport-info line
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-06-18 15:15:32 -04:00
Alexander Færøy 1941f25f4c Clean-up Managed Proxy state in PT tests.
This patch makes sure we clean up our version and implementation fields
in our Managed Proxy struct after each test run.

This was detected by LeakSanitizer.

See: tpo/core/tor#11101.
2024-06-18 15:15:32 -04:00
Alexander Færøy 3c8035b452 Add changes file for tpo/core/tor#11101. 2024-06-18 15:15:32 -04:00
Alexander Færøy b4f8518f8f Add implementation and version metadata to bridge extra-info.
This patch adds two new keys to bridges' extra-info document:
"transport-version" and "transport-implementation".

These two new values always appear together (if one is missing, the
other one will be missing too) and is parsed from PT's STATUS
TYPE=version messages.

See: tpo/core/tor#11101.
2024-06-18 15:15:20 -04:00
Alexander Færøy f459344488 Include "IMPLEMENTATION" parameter to STATUS TYPE=version PT messages. 2024-06-18 15:15:20 -04:00
Alexander Færøy d27ce6b8f0 Drop requirement for TRANSPORT being present in STATUS messages. 2024-06-18 15:15:20 -04:00
Alexander Færøy b6e260e699 Add support for PT STATUS TYPE=version messages.
This patch adds support for handling the version status message. Once we
receive such message, we add the given version string to the
managed_proxy_t instance. Note this value can be NULL and the value can
change throughout the lifetime of the PT as multiple status version
messages are handled.

See: tpo/core/tor#11101
2024-06-18 15:15:20 -04:00
David Goulet 7ce17c6c40 Merge branch 'sandbox-bwauth' into 'main'
fix sandbox for bandwidth authority

Closes #40933

See merge request tpo/core/tor!821
2024-06-18 13:10:19 +00:00
Peter Palfrader 48b354e038 fix sandbox for bandwidth authority 2024-06-07 19:38:10 +02:00
David Goulet c7514b9664 Merge branch 'maint-0.4.8' 2024-06-06 10:32:07 -04:00
Tor CI Release 0c1a39a955 version: Bump version to 0.4.8.12-dev 2024-06-06 10:31:51 -04:00
David Goulet 72a6b771dd Merge branch 'maint-0.4.8' 2024-06-06 09:22:20 -04:00
Tor CI Release dd30232582 version: Bump version to 0.4.8.12 2024-06-06 09:20:41 -04:00
David Goulet bf9d2d3b89 Merge branch 'maint-0.4.8' 2024-06-06 08:56:54 -04:00
Tor CI Release 31f8b43e2d fallbackdir: Update list generated on June 06, 2024 2024-06-06 08:45:09 -04:00
Tor CI Release 9b69c25d3a Update geoip files to match ipfire location db, 2024/06/06. 2024-06-06 08:44:54 -04:00
David Goulet 4942358446 Merge branch 'maint-0.4.8' 2024-05-30 12:31:51 -04:00
Georg Koppen 928ba47ddf Update OverloadStatistics to match prop 328
Closes: #40940.
2024-05-30 12:31:45 -04:00
David Goulet 77f8bbcbbb Merge branch 'maint-0.4.8' 2024-05-30 12:30:44 -04:00
David Goulet 1b924c0d6c Merge branch 'ticket40689_048_01' into maint-0.4.8 2024-05-30 12:30:40 -04:00
David Goulet 5c0a0f7da0 Merge branch 'ticket40689_048_01' into 'main'
dirauth: Add new faravahar

Closes #40689

See merge request tpo/core/tor!819
2024-05-30 16:29:56 +00:00
David Goulet 475778bb2b Merge branch 'maint-0.4.8' 2024-05-30 09:51:52 -04:00
David Goulet 50800fa240 scripts: Fix Python3 warnings
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-05-30 09:51:48 -04:00
David Goulet 39ba9ce0d7 dirauth: Add new faravahar
Brand new address, brand new keys, brand new day.

Closes #40689

Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-05-30 09:49:27 -04:00
David Goulet 93bb7fae42 Merge branch 'typos' into 'main'
fix a few comment typos

See merge request tpo/core/tor!818
2024-05-29 16:58:01 +00:00
Roger Dingledine d990aba613 fix a few comment typos 2024-05-29 12:45:51 -04:00
David Goulet 7a5d94bcf8 Merge branch 'maint-0.4.8' 2024-04-30 15:34:11 -04:00
hiro 7708f9a4ea Fix typo in tor-relays list address 2024-04-30 15:34:07 -04:00
David Goulet 36cd4a50fc Merge branch 'maint-0.4.8' 2024-04-29 16:02:12 -04:00
David Goulet e12a26e4d0 Merge branch 'm4-serial-fix' into 'main'
m4: update ax_check_compile_flag.m4 from autoconf-archive

See merge request tpo/core/tor!813
2024-04-29 20:00:44 +00:00
Alexander Færøy 815da5644a Merge branch 'changelogs' into 'main'
forward-port the 0.4.8.10 and .11 changelogs

See merge request tpo/core/tor!814
2024-04-23 17:51:16 +00:00
Roger Dingledine 9124e99dc5 fix changelog typos and clean up a bit 2024-04-19 08:18:48 -04:00
Sam James 8888e4ca6b m4: update ax_check_compile_flag.m4 from autoconf-archive
I noticed this when doing some M4 macro analysis work, and saw
that the version of `ax_check_compile_flag.m4` in Tor has two serial
lines ('serial 5' and 'serial 6') which is invalid.

We could just fix one of the lines, but it makes more sense to just
sync with upstream, I think.

Import ax_check_compile_flag.m4 from autoconf-archive at latest
commit at time of writing (4e8aab846b0872fba99f1fe02ebcdff178a34c87).

Signed-off-by: Sam James <sam@gentoo.org>
2024-04-19 10:01:32 +01:00
David Goulet a9d2977c1b Merge branch 'typos' into 'main'
Typos

See merge request tpo/core/tor!812
2024-04-18 13:27:15 +00:00
Roger Dingledine a62438f746 forward-port the 0.4.8.10 and .11 changelogs 2024-04-18 09:10:03 -04:00
Roger Dingledine f9624935bd typos in comments 2024-04-18 09:04:12 -04:00
Roger Dingledine 7b05befbcc fix syntax formatting in man page 2024-04-18 09:03:51 -04:00
David Goulet a31c8c5818 Merge branch 'typo' into 'main'
typo

See merge request tpo/core/tor!811
2024-04-18 12:35:09 +00:00
trinity-1686a 881e0234e3 typo 2024-04-18 00:17:45 +02:00
David Goulet bedc6a90d2 circuit: Remove log_warn triggered by a proto violation
Fixes #40932

Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-04-16 13:49:42 -04:00
David Goulet 7ba70eeeea Merge branch 'count-log-bug' into 'main'
also consider LD_BUG logs when counting bug reached

Closes #40924

See merge request tpo/core/tor!805
2024-04-16 15:20:18 +00:00
David Goulet a93759b46e Merge branch 'maint-0.4.8' 2024-04-15 15:11:30 -04:00
David Goulet 29e3601c42 Merge branch 'tor-gitlab/mr/808' into maint-0.4.8 2024-04-15 15:11:16 -04:00
David Goulet 612b801ea5 conflux: Don't process a closed circuit on get packaged window
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-04-15 14:45:29 -04:00
David Goulet 269b4561a1 conflux: Avoid noting a cell was sent on a closed circuit
It turns out that circuit_package_relay_cell() returns 0 in order to drop a
cell but there is a code path, if the circuit queue is full, that also silently
closes the circuit and returns 0.

This lead to Conflux thinking a cell was sent but actually the cell was not and
the circuit was closed leading to the hard assert.

And so this function makes sure that circuit_package_relay_cell() and
append_cell_to_circuit_queue() returns a value that indicate what happened with
the cell and circuit so the caller can make an informed decision with it.

This change makes it that we do NOT enter the Conflux subsystem if the cell is
not queued on the circuit.

Fixes #40921

Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-04-15 14:24:45 -04:00