David Goulet
1810771799
hs-v3: Improve accessor semantic of client cached object
...
Add an inline helper function that indicates if the cached object contains a
decrypted descriptor or not.
The descriptor object is NULL if tor is unable to decrypt it (lacking client
authorization) and some actions need to be done only when we have a decrypted
object.
This improves code semantic.
Fixes #33458
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-05-28 12:25:42 +03:00
George Kadianakis
8d8a9d7f1d
Merge branch 'tor-github/pr/1898'
2020-05-27 15:17:55 +03:00
Neel Chauhan
f6943d702c
Add changes file for ticket #24844
2020-05-27 15:16:39 +03:00
Neel Chauhan
fd5ea48c27
Add HS v3 status to the SIGUSR1 dumpstats()
2020-05-27 15:16:39 +03:00
Roger Dingledine
d6186c7435
Man page: MinUptimeHidServDirectoryV2 defaults to 96 hours
...
Bugfix on 0.2.6.3-alpha; fixes bug 34299.
2020-05-23 04:37:57 -04:00
Nick Mathewson
43f4324e29
Merge remote-tracking branch 'tor-github/pr/1899/head'
2020-05-21 10:08:48 -04:00
George Kadianakis
3121e5c103
Merge branch 'tor-github/pr/1850'
2020-05-21 16:24:32 +03:00
George Kadianakis
fb281daf29
Merge branch 'tor-github/pr/1861'
2020-05-21 16:22:47 +03:00
rl1987
7a004fce8d
Tweak format string
2020-05-21 14:26:08 +03:00
rl1987
a5d28bf88f
Check for NULL from tor_dup_ip()
2020-05-21 14:17:15 +03:00
rl1987
ded99992b8
Bail out of format_networkstatus_vote if fmt_addr32() failed.
...
Something is fishy if we cannot put IP address string into dir-vote line.
2020-05-21 13:43:45 +03:00
rl1987
38cbfda119
Actually, bail out of routerstatus_format_entry() if fmt_addr32() fails
2020-05-21 13:43:41 +03:00
rl1987
17c4e489e9
Add changes file
2020-05-21 13:43:37 +03:00
rl1987
8ab7e30484
Check that fmt_addr32() returned non-empty string before putting it into documents
2020-05-21 13:41:19 +03:00
rl1987
d8e24684b6
Check for possible failures of tor_inet_ntop/tor_inet_ntoa in fmt_addr32 and tor_dup_ip
2020-05-21 13:41:15 +03:00
rl1987
b5bfdbfd41
Check output value of tor_inet_ntop/tor_inet_ntoa in dns.c
2020-05-21 13:41:11 +03:00
George Kadianakis
baee2feddd
Fix an enum comparison that was blowing up jenkins.
...
The warning was:
11:23:10 ../tor/src/feature/hs/hs_service.c: In function 'log_cant_upload_desc':
11:23:10 ../tor/src/feature/hs/hs_service.c:3118:3: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
See #34254 for more info.
I guess this means that gcc assigned an unsigned type to the
`log_desc_upload_reason_t` enum and it warned if we compared it against 0...
For now I think it's simpler to remove that check instead of turning the enum
to a signed type, or trying to hack it some other way.
From what it seems, enum is up to the compiler on whether it's signed/unsigned:
https://stackoverflow.com/questions/159034/are-c-enums-signed-or-unsigned
2020-05-21 13:39:49 +03:00
Damon Harris
c4fb3bfed5
Add support for console control signals in Windows
2020-05-20 23:28:39 +05:30
David Goulet
ca13249dcc
Merge branch 'tor-github/pr/1886'
2020-05-19 15:18:17 -04:00
David Goulet
ee0fb69fee
Merge branch 'tor-github/pr/1897'
2020-05-19 15:17:08 -04:00
David Goulet
5d99985e43
Merge branch 'tor-github/pr/1894'
2020-05-19 15:14:38 -04:00
Nick Mathewson
400bc46d83
doxygen: add a link to src-ref on mainpage.md.
...
Closes 34246.
2020-05-19 09:44:36 -04:00
Nick Mathewson
9b55a62e73
Merge branch 'maint-0.4.3'
2020-05-19 09:39:12 -04:00
Nick Mathewson
bdb3be0119
Merge branch 'ticket34255_043' into maint-0.4.3
2020-05-19 09:39:04 -04:00
Nick Mathewson
68fe8826dd
Doxygen: fix unbalanced groups.
...
Closes ticket 34255.
2020-05-19 09:18:39 -04:00
Neel Chauhan
087b466fcf
Declare variables in for loops in rend_service_dump_stats()
2020-05-17 15:19:39 -07:00
Neel Chauhan
32e791be09
Fix spacing in if statement in tor_version_parse()
2020-05-16 22:26:30 -07:00
Neel Chauhan
2e0d0360cd
Fix spacing in if statement in port_parse_config()
2020-05-16 22:23:59 -07:00
Nick Mathewson
db4815dd8e
Merge branch 'maint-0.4.3'
2020-05-15 10:28:36 -04:00
Nick Mathewson
6f2b6ede1b
Add a changes file for 34233.
...
This bug was merged back to 0.3.5 with our #34078 fix, but only
released in 0.4.3.5, so the changes file goes here.
2020-05-15 10:27:49 -04:00
Nick Mathewson
e75583e71b
Merge branch 'maint-0.4.1' into maint-0.4.2
2020-05-15 10:25:27 -04:00
Nick Mathewson
ec2f6d69d7
Merge branch 'maint-0.4.3'
2020-05-15 10:25:27 -04:00
Nick Mathewson
bcaf480aee
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-05-15 10:25:27 -04:00
Nick Mathewson
768ffb8f43
Merge branch 'maint-0.3.5' into maint-0.4.1
2020-05-15 10:25:27 -04:00
Nick Mathewson
a59d54756f
Fix use of non-portable == in configure.ac.
...
Fixes bug 34233.
(This has bug has been backported to 0.3.5, but only released in
0.4.3, so it only needs a changes file there.)
2020-05-15 09:58:49 -04:00
Nick Mathewson
8d59897e58
Merge branch 'maint-0.4.3'
...
"ours" to avoid version bump
2020-05-15 09:02:30 -04:00
Nick Mathewson
c0dd2a6e39
bump to 0.4.3.5-dev
2020-05-15 09:02:12 -04:00
Nick Mathewson
85cfd04c0c
remove changes files that have already appeared in 0.4.3.
2020-05-14 20:29:00 -04:00
Nick Mathewson
58dbf83054
remove 0.4.3.3-alpha from the release notes: alphas do not go there.
2020-05-14 11:43:38 -04:00
Nick Mathewson
fbd384cf89
Merge branch 'maint-0.4.3'
...
"ours" to avoid 0.4.3.5 version bump.
2020-05-14 10:38:40 -04:00
Nick Mathewson
bbfdee4c4e
Fix a python warning in format_changelog.py.
2020-05-14 10:37:52 -04:00
Nick Mathewson
75fc33f337
bump to 0.4.3.5
2020-05-14 10:37:42 -04:00
Nick Mathewson
b8bff426f3
Merge branch 'maint-0.4.1' into maint-0.4.2
2020-05-14 10:20:08 -04:00
Nick Mathewson
72312cdbb1
Merge branch 'maint-0.3.5' into maint-0.4.1
2020-05-14 10:20:08 -04:00
Nick Mathewson
371d5ece5b
Merge branch 'maint-0.4.3'
2020-05-14 10:20:08 -04:00
Nick Mathewson
ee6409ab63
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-05-14 10:20:08 -04:00
Nick Mathewson
e63bfca5f2
Travis: temporarily fix stem version to d1174a83c2dcb7b8
...
This is a workaround for https://github.com/torproject/stem/issues/63
2020-05-14 08:08:24 -04:00
Nick Mathewson
1557e73c82
Merge branch 'bug34130_035'
2020-05-12 12:58:19 -04:00
Daniel Pinto
2913dbd6d9
Fix crash when tor is compiled with NSS and seccomp sandbox is enabled
...
Adds seccomp rules for socket and getpeername used by NSS
2020-05-12 12:56:06 -04:00
Nick Mathewson
86b5bcd80a
Merge remote-tracking branch 'tor-github/pr/1885/head'
2020-05-12 12:52:41 -04:00