Nick Mathewson
ffa7b15950
Deliberately close OR connections if proxies leave extra data
...
We already did this, but we did it by accident, which is pretty
risky: if we hadn't, then our code would have treated extra data in
the inbuf as having been transmitted as TLS-authenticated data.
Closes ticket 40017; Found by opara.
2020-11-12 11:07:33 -05:00
Nick Mathewson
e2d3c9c5f8
Merge branch 'ticket40187' into master
2020-11-12 09:43:09 -05:00
Nick Mathewson
b79694ca18
Correct EOL date for 0.4.3.x
2020-11-12 09:42:54 -05:00
Nick Mathewson
f2168d28f7
Fake the current time when we're loading TEST_DESCRIPTORS.
...
Fixes bug 40187; bugfix on 0.4.5.1-alpha.
2020-11-12 09:28:27 -05:00
Nick Mathewson
7d8290f0ac
Merge remote-tracking branch 'tor-gitlab/mr/183' into master
2020-11-12 08:47:05 -05:00
Nick Mathewson
dde6b8906f
Merge branch 'maint-0.4.4' into master
...
"ours" to avoid version bump.
2020-11-12 08:13:26 -05:00
Nick Mathewson
3f1544bbd9
Bump to 0.4.4.6-dev
2020-11-12 08:13:07 -05:00
Nick Mathewson
09b4c73fe4
Merge branch 'maint-0.4.3' into maint-0.4.4
...
"ours" to avoid version bump.
2020-11-12 08:12:20 -05:00
Nick Mathewson
fd22fa183b
Bump to 0.4.3.7-dev
2020-11-12 08:12:11 -05:00
Nick Mathewson
1fa90a2077
Merge branch 'maint-0.3.5' into maint-0.4.3
...
"ours" to avoid version bump.
2020-11-12 08:11:20 -05:00
Nick Mathewson
862c44e4ec
Bump to 0.3.5.12-dev
2020-11-12 08:11:01 -05:00
Nick Mathewson
4806aa5da8
Copy ChangeLog and ReleaseNotes from today's releases to master branch
2020-11-12 07:37:25 -05:00
Nick Mathewson
9306ac5aa8
changes file for bug 40172.
2020-11-10 17:29:37 -05:00
Matthew Finkel
d8f9a5da5d
Export RANLIB so it's available in combine_libs script
...
Fixes 40172; bugfix on 0.4.5.1-alpha
2020-11-10 22:07:34 +00:00
Nick Mathewson
bc6c37b202
Merge branch 'maint-0.4.4' into master
...
"-s ours" to avoid version bump.
2020-11-09 17:14:01 -05:00
Nick Mathewson
494ced690d
Merge branch 'maint-0.4.3' into maint-0.4.4
...
"-s ours" to avoid version bump.
2020-11-09 17:13:41 -05:00
Nick Mathewson
3d3dc08ed8
Merge branch 'maint-0.3.5' into maint-0.4.3
...
"-s ours" to avoid version bump.
2020-11-09 17:13:25 -05:00
Nick Mathewson
210a94b231
Bump to 0.4.4.6
2020-11-09 17:13:02 -05:00
Nick Mathewson
6338c35e9d
Bump to 0.4.3.7
2020-11-09 17:12:41 -05:00
Nick Mathewson
665083be9f
Bump to 0.3.5.12
2020-11-09 17:12:18 -05:00
Nick Mathewson
113d18dc57
Merge branch 'maint-0.4.4' into master
2020-11-09 16:17:50 -05:00
Nick Mathewson
ec0f000445
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-11-09 16:17:42 -05:00
Nick Mathewson
0b2c64effd
Merge branch 'maint-0.3.5' into maint-0.4.3
2020-11-09 16:13:42 -05:00
Nick Mathewson
52e439c13e
Merge remote-tracking branch 'tor-gitlab/mr/189' into maint-0.3.5
2020-11-09 16:13:24 -05:00
Alexander Færøy
faa96f9a8e
Merge remote-tracking branch 'tor-gitlab/mr/193'
2020-11-09 14:15:07 +00:00
Alexander Færøy
0702cf10db
Merge remote-tracking branch 'tor-gitlab/mr/192'
2020-11-09 14:15:03 +00:00
Alexander Færøy
5e65a746aa
Merge remote-tracking branch 'tor-gitlab/mr/190'
2020-11-09 14:12:45 +00:00
Nick Mathewson
b22568a545
Rename OpenSSL_version_num() as defined in Tor
...
This way, if we guess wrong about whether the library has it,
we don't conflict with the library's headers.
Fixes #40181 ; bug not in any released version.
2020-11-06 10:31:32 -05:00
Nick Mathewson
4154158d79
Make config/parse_tcp_proxy_line work in the presence of DNS hijacking
...
We can use our existing mocking functionality to do this: We have
been in this position before.
Fixes part of #40179 ; bugfix on 0.4.3.1-alpha.
2020-11-05 09:47:32 -05:00
Nick Mathewson
31a6a101a0
Handle a change in the implementation of hashlib in Python 3.9
...
Previously, hashlib.shake_256 was a class (if present); now it can
also be a function. This change invalidated our old
compatibility/workaround code, and made one of our tests fail.
Fixes bug 40179; bugfix on 0.3.1.6-rc when the workaround code was
added.
2020-11-05 09:34:36 -05:00
George Kadianakis
0812ecd517
Add more docs about the HSv3 stat collection period.
2020-11-03 19:19:02 +02:00
George Kadianakis
810183aaf1
Improve string formatting in rep_hist_format_hs_stats().
2020-11-03 19:15:01 +02:00
George Kadianakis
7ae576edaf
Use CONST_TO_OR_CIRCUIT() in v2/v3 rend cell detection.
2020-11-03 19:14:57 +02:00
George Kadianakis
9a98d1da30
Switch v3_onions_seen_this_period to digest256map_t.
2020-11-03 19:14:57 +02:00
George Kadianakis
dd119b277b
Merge remote-tracking branch 'tor-gitlab/mr/185' into master
2020-11-03 16:06:12 +02:00
David Goulet
486ddde2c4
configure: Check STAP_PROBEV macro when building with USDT tracing
...
It turns out that STAP_PROBEV() is not available on FreeBSD thus having
sdt/sdt.h is not enough. Look for it now at configure time.
Closes #40174
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-11-03 09:05:53 -05:00
David Goulet
31d542a9c6
ci: Add DISTCHECK to tracing test on Gitlab
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-11-03 08:36:02 -05:00
George Kadianakis
4f5a116618
Merge remote-tracking branch 'tor-gitlab/mr/187' into master
2020-11-03 13:04:09 +02:00
George Kadianakis
f2da7b05b0
Add changes file for v3 metrics.
...
Closes ticket #23126 .
2020-11-03 11:12:17 +02:00
George Kadianakis
a96432ab06
Abstract v2/v3 "format stats to str" logic into a single function.
2020-11-03 11:12:17 +02:00
George Kadianakis
6178a64fcf
Abstract v2/v3 "write stats to file" logic into a single function.
2020-11-03 11:12:17 +02:00
George Kadianakis
131da887d7
Write unittests for v3 metrics.
2020-11-03 11:12:17 +02:00
George Kadianakis
5c00bee1b1
Introduce v3 stat formatting functions.
...
They will be merged with the v2 ones in later commits.
2020-11-03 11:12:17 +02:00
George Kadianakis
d0be2ae7f9
Extend get_voting_interval() so that it's callable by relays.
...
In the past, only authorities and clients had to use that function because of
the SRV subsystem. However, because of its use in rep_hist_hs_stats_init() it
will now also be used by relays when bootstrapping without a consensus. Make it
do something sensible.
Another approach (instead of using magic values) would be to wait
initialization of HSv3 stats until we get a consensus but that seems messy to
schedule.
Another approach would be to make dirauth_sched_get_configured_interval() also
work for relays (particularly when TestingNetwork is enabled), but that also
seems a good amount of work.
2020-11-03 11:12:17 +02:00
George Kadianakis
f2eff17126
Introduce generic HS stats methods that apply to v2 and v3.
2020-11-03 11:12:17 +02:00
George Kadianakis
3cbc513ae7
Implement support for "v3 rend traffic" stat.
2020-11-03 11:09:34 +02:00
George Kadianakis
05880d238a
Implement support for "unique v3 onions" stat.
2020-11-03 11:09:34 +02:00
George Kadianakis
bd28551763
Introduce v3_stats_t structure and some of its methods.
2020-11-03 11:09:24 +02:00
George Kadianakis
5ed7fcec41
Make room for v3: Complete move from hs_stats_t to hs_v2_stats_t.
2020-11-02 21:05:50 +02:00
George Kadianakis
1de7843658
Make room for v3: s/hs_stats/hs_v2_stats/
2020-11-02 21:05:05 +02:00