aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-12-04conn: Add an helper to mark a connection as waiting for an HS descriptorDavid Goulet
The transition for a connection to either become or go back in AP_CONN_STATE_RENDDESC_WAIT state must make sure that the entry connection is _not_ in the waiting for circuit list. This commit implements the helper function connection_ap_mark_as_waiting_for_renddesc() that removes the entry connection from the pending list and then change its state. This code pattern is used in many places in the code where next commit will remove this code duplication to use this new helper function. Part of #28669 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-12-01Merge remote-tracking branch 'tor-github/pr/554' into maint-0.3.5Nick Mathewson
2018-12-01Also log a Tor log entry when it has a substring we are waiting forrl1987
2018-12-011 ms. resolution for Tor logsrl1987
2018-12-01Log everything from tor down to debug loglevelrl1987
2018-12-01In test_rebind.py, log stuff with timestampsrl1987
2018-12-01Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2018-12-01Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-30sr: Switch from tor_assert() to BUG()Neel Chauhan
Closes #19566 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-11-26Merge remote-tracking branch 'teor/bug28096-035-squashed' into maint-0.3.5Nick Mathewson
2018-11-22Test: Fix memory leaks and missing unmocks in entry guard teststeor
test_entry_guard_outdated_dirserver_exclusion leaks memory, and is missing some unmocks. Fixes 28554; bugfix on 0.3.0.1-alpha.
2018-11-19Update control_free_all() for #27169Taylor Yu
Reset the added bootstrap tracking state introduced by ticket 27169. Fixes bug 28524; bugfix on 0.3.5.1-alpha.
2018-11-19Add missing library to build tor-print-ed-signing-cert.Alexander Færøy
To succesful compile tor-print-ed-signing-cert.exe on Windows we sometimes need to include the @TOR_LIB_GDI@ library. See: https://bugs.torproject.org/28485
2018-11-16Bump to 0.3.5.5-alpha-devNick Mathewson
2018-11-16Merge remote-tracking branch 'dgoulet/ticket27471_035_02' into maint-0.3.5Nick Mathewson
2018-11-16Bump to 0.3.5.5-alphaNick Mathewson
2018-11-15Merge remote-tracking branch 'public/ticket27686_034' into maint-0.3.4Nick Mathewson
2018-11-15Merge branch 'bug25573-034-typefix' into maint-0.3.4Nick Mathewson
2018-11-15Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-15Merge branch 'maint-0.2.9' into maint-0.3.3Nick Mathewson
2018-11-15Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-15Merge branch 'bug26913_033' into maint-0.3.3Nick Mathewson
2018-11-15Merge remote-tracking branch 'public/bug24104_029_squashed' into maint-0.2.9Nick Mathewson
Resolved conflicts with the 26269 fix in 015fcd0e1191aa6f.
2018-11-15Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-15Merge remote-tracking branch 'dgoulet/bug27550_033_01' into maint-0.3.3Nick Mathewson
2018-11-15Merge branch 'bug27740_035_fix' into maint-0.3.5Nick Mathewson
2018-11-15Merge branch 'bug28096-029-squashed' into bug28096-035-squashedteor
Move the get_uname() changes from src/common/compat.c to src/lib/osinfo/uname.c
2018-11-15Windows: fix uname on recent Windows versionsteor
Correctly identify Windows 8.1, Windows 10, and Windows Server 2008 and later from their NT versions. On recent Windows versions, the GetVersionEx() function may report an earlier Windows version than the running OS. To avoid user confusion, add "[or later]" to Tor's version string on affected versions of Windows. Remove Windows versions that were never supported by the GetVersionEx() function. Stop duplicating the latest Windows version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34; reported by Keifer Bly.
2018-11-14Merge branch 'ticket27750_034_01_squashed' into maint-0.3.5Nick Mathewson
2018-11-14conn: Close the read side of a closing connection when write limit is reachedDavid Goulet
In conn_close_if_marked(), we can decide to keep a connection open that still has data to flush on the wire if it is being rate limited on the write side. However, in this process, we were also looking at the read() side which can still have token in its bucket and thus not stop the reading. This lead to a BUG() introduced in 0.3.4.1-alpha that was expecting the read side to be closed due to the rate limit but which only applies on the write side. This commit removes any bandwidth check on the read side and simply stop the read side on the connection regardless of the bucket state. If we keep the connection open to flush it out before close, we should not read anything. Fixes #27750 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-11-14Merge remote-tracking branch 'teor/bug28441-035' into maint-0.3.5Nick Mathewson
2018-11-14Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-14Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2018-11-14Work around check-spaces.Nick Mathewson
2018-11-14libtorrunner: fix memory leak in child() error pathMartin Kepplinger
This avoids leaking memory in case libtorrunner's child() function fails.
2018-11-14log: stop talking about the Named flag in log messagesteor
Clients have ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix on 0.3.2.1-alpha.
2018-11-14comment: circuit_list_path_impl() does not check Named any moreteor
2018-11-14comment: Fix a typo in nodes_in_same_family()teor
2018-11-13Merge branch 'bug28183_029' into maint-0.3.5Nick Mathewson
2018-11-13Merge branch 'tor-github/pr/487' into maint-0.3.5David Goulet
2018-11-13Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-13Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2018-11-13Merge branch 'maint-0.2.9' into maint-0.3.3Nick Mathewson
2018-11-12Fix a compiler warning in aes.c.Nick Mathewson
Apparently some freebsd compilers can't tell that 'c' will never be used uninitialized. Fixes bug 28413; bugfix on 0.2.9.3-alpha when we added support for longer AES keys to this function.
2018-11-12seccomp2: Add "shutdown" to the list of permitted system calls.Nick Mathewson
We don't use this syscall, but openssl apparently does. (This syscall puts a socket into a half-closed state. Don't worry: It doesn't shut down the system or anything.) Fixes bug 28183; bugfix on 0.2.5.1-alpha where the sandbox was introduced.
2018-11-11Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-11-11Merge branch 'maint-0.3.4' into maint-0.3.5Nick Mathewson
2018-11-11Merge branch 'maint-0.2.9' into maint-0.3.3Nick Mathewson
2018-11-11Fix a bug in usage of SSL_set1_groups_list()Nick Mathewson
Apparently, even though the manpage says it returns an int, it can return a long instead and cause a warning. Bug not in any released Tor. Part of #28399
2018-11-11Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson