Commit Graph

38708 Commits

Author SHA1 Message Date
Micah Elizabeth Scott 95bcd17705 Include a basic Rust wrapper for Equi-X and HashX
The idea behind this is that we may want to start exporting more pieces
of c-tor as Rust crates so that Arti can perform cross compatibility and
comparison testing using Rust tooling.

This turns the 'tor' repo into a Cargo workspace, and adds one crate to
start with: "tor-c-equix", rooted in src/ext/equix. This actually
includes both Equi-X itself and HashX, since there's less overall
duplication if we package these together instead of packaging HashX
separately.

This patch adds a basic safe Rust interface, but doesn't expose any
additional internals for testing purposes.

No changes to the C code here or the normal Tor build system.

Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
2023-07-26 12:27:15 -07:00
David Goulet 1e3b5c94ab Merge branch 'maint-0.4.7' 2023-07-26 12:02:47 -04:00
Tor CI Release 78cb761612 version: Bump version to 0.4.7.14-dev 2023-07-26 12:02:42 -04:00
David Goulet 652147413c Merge branch 'maint-0.4.7' 2023-07-26 10:23:27 -04:00
Tor CI Release 4333762b21 version: Bump version to 0.4.7.14 2023-07-26 10:22:32 -04:00
David Goulet 89b1e6568e Merge branch 'maint-0.4.7' 2023-07-26 10:13:21 -04:00
Tor CI Release fa40b0a122 fallbackdir: Update list generated on July 26, 2023 2023-07-26 10:12:30 -04:00
Tor CI Release e4308eb159 Update geoip files to match ipfire location db, 2023/07/26. 2023-07-26 10:12:24 -04:00
David Goulet 5e4cac26bb Merge branch 'maint-0.4.7' 2023-07-26 10:07:33 -04:00
David Goulet 2234ecd491 fallback: Take file from main for our release CI
Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-07-26 10:07:27 -04:00
David Goulet 061343e8c2 Merge branch 'maint-0.4.7' 2023-07-26 09:59:36 -04:00
David Goulet 47434fc81a geoip: Take the database from main
Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-07-26 09:59:26 -04:00
David Goulet 28dfa07069 Merge branch 'maint-0.4.7' 2023-07-24 10:18:53 -04:00
David Goulet d6fd7d1035 Fix all -Werror=enum-int-mismatch warnings
Close #40824

Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-07-24 09:44:42 -04:00
David Goulet e6a9e00690 Merge branch 'warn-bridge-exit' into 'main'
Warn when operating as bridge and exit

Closes #40819

See merge request tpo/core/tor!730
2023-07-20 14:40:13 +00:00
David Goulet 6e43a27eb6 Merge branch 'no-assert-rotate-onion-key-fails' into 'main'
fix non-fatal assertion when rotate_onion_key fails

Closes #40554

See merge request tpo/core/tor!729
2023-07-20 14:38:36 +00:00
trinity-1686a 1901720fb9 Warn when operating as bridge and exit 2023-07-17 19:40:26 +02:00
David Goulet 1b4b354f4d Merge branch 'fix-apt-syntax' into 'main'
gitlab-ci: fix apt conf syntax for Acquire::Retries

See merge request tpo/core/tor!705
2023-07-17 16:08:17 +00:00
David Goulet 18534f9ef2 Merge branch 'geoip-db-prefix-more' into 'main'
Clarify where geoip-db-tool is.

See merge request tpo/core/tor!728
2023-07-17 16:05:02 +00:00
trinity-1686a 9ea80b465f fix non-fatal assertion when rotate_onion_key fails 2023-07-16 22:29:23 +02:00
Nick Mathewson f1fced828b Clarify where geoip-db-tool is.
Somebody emailed me to ask where to find the tool that generated our
geoip file. I was about to suggest that they search for "geoip-db-tool",
when I found that you can't actually search for that and find our code.

Therefore, I'm adding a link.
2023-07-13 16:04:35 -04:00
Tor CI Release 22757dbb53 version: Bump version to 0.4.8.2-alpha-dev 2023-07-12 10:15:10 -04:00
Tor CI Release 328f976245 version: Bump version to 0.4.8.2-alpha tor-0.4.8.2-alpha 2023-07-12 09:51:11 -04:00
Tor CI Release fb210dd875 release: ChangeLog and ReleaseNotes for 0.4.8.2-alpha 2023-07-12 09:42:20 -04:00
Tor CI Release 4b626a9c57 fallbackdir: Update list generated on July 12, 2023 2023-07-12 09:38:16 -04:00
Tor CI Release a7a3fbffe5 Update geoip files to match ipfire location db, 2023/07/12. 2023-07-12 09:38:10 -04:00
David Goulet e4a8a128b1 Merge branch 'maint-0.4.7' 2023-07-12 08:17:23 -04:00
David Goulet 57976e9186 Merge branch 'trivial-typo-fix' into 'main'
trivial typo fix in comment

See merge request tpo/core/tor!726
2023-07-06 13:29:31 +00:00
Roger Dingledine 3335829347 replace L2 vanguards that aren't Fast or Stable
Rotate to a new L2 vanguard whenever an existing one loses the
Stable or Fast flag. Previously, we would leave these relays in the
L2 vanguard list but never use them, and if all of our vanguards
end up like this we wouldn't have any middle nodes left to choose
from so we would fail to make onion-related circuits.

Fixes bug 40805; bugfix on 0.4.7.1-alpha.
2023-07-05 23:00:38 -04:00
Roger Dingledine 294872a407 trivial typo fix in comment 2023-07-05 16:38:32 -04:00
David Goulet 05624b5781 Merge branch 'bug40566' into 'main'
Remove unused congestion control and BDP algs

See merge request tpo/core/tor!725
2023-06-28 17:05:47 +00:00
Mike Perry 5867ddefae Changes file for bug 40566 2023-06-27 19:27:18 +00:00
Mike Perry 04d7f11086 Bug 40566: Remove unused BDP estimators 2023-06-27 19:27:10 +00:00
Mike Perry 7d85298b63 Bug 40566: Remove unused congestion control alg structs. 2023-06-27 16:44:07 +00:00
Mike Perry 641ed48e6d Bug 40566: Unhook unused congestion control algs 2023-06-27 16:44:07 +00:00
Mike Perry 99ad0de9f5 Bug 40566: Remove unused cc alg files 2023-06-27 14:52:56 +00:00
David Goulet bcbc5b5ba0 Merge branch 'bug40569+40709+40443' into 'main'
Update congestion control params and add test vectors

See merge request tpo/core/tor!724
2023-06-27 13:40:15 +00:00
Mike Perry a945f3c506 Add congestion control tests to build. 2023-06-23 15:08:57 +00:00
Mike Perry 331b874e69 Add CWND test vectors 2023-06-23 15:08:57 +00:00
Mike Perry 06aa454c08 Add RTT Test Vectors 2023-06-23 15:08:57 +00:00
Mike Perry 3647b2f95a Add clock heuristic test vector for congestion control. 2023-06-23 15:08:57 +00:00
Mike Perry 53748705f7 Export variables and functions for CC unit tests. 2023-06-23 15:08:57 +00:00
Mike Perry 155343708d Changes file for bug 40709 2023-06-23 15:08:57 +00:00
Mike Perry 646212ce58 Bug 40709: Update and clean up tests for consensus params 2023-06-23 15:08:54 +00:00
Mike Perry 9d022be9fc Bug 40709: Update congestion control parameters
This brings us into sync with the consensus, and will be useful for test
vectors, to ensure behavior consistent with the consensus params.
2023-06-23 15:08:49 +00:00
Mike Perry 31a3efa60b Changes file for 40569 2023-06-22 23:12:34 +00:00
Mike Perry 796e65e487 Bug 40569: Reduce accepted range for negotiated cc_sendme_inc 2023-06-22 23:12:34 +00:00
David Goulet 633355a88e Merge branch 'maint-0.4.7' 2023-06-21 10:21:42 -04:00
David Goulet d60fab8c9e gitignore: Add .cache used by clangd LSP
Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-06-21 10:21:28 -04:00
David Goulet 3f7923538b Merge branch 'bug40808' into 'main'
Bug40808

See merge request tpo/core/tor!723
2023-06-20 16:51:36 +00:00