summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-07Merge remote-tracking branch 'tor-github/pr/1974/head'Nick Mathewson
2020-07-07Merge branch 'ticket33236_045_01'David Goulet
2020-07-07addr: Attempt to learn our address with ORPortDavid Goulet
If no Address statement are found in the configuration file, attempt to learn our address by looking at the ORPort address if any. Specifying an address is optional so if we can't find one, it is fine, we move on to the next discovery mechanism. Note that specifying a hostname on the ORPort is not yet supported at this commit. Closes #33236 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-07Merge branch 'maint-0.4.4'Alexander Færøy
2020-07-07Merge branch 'maint-0.4.3' into maint-0.4.4Alexander Færøy
2020-07-07Merge branch 'maint-0.4.2' into maint-0.4.3Alexander Færøy
2020-07-07Merge branch 'maint-0.3.5' into maint-0.4.2Alexander Færøy
2020-07-07Add correct exclusions to Doxyfile.in.Nick Mathewson
Now that we have src/ext/ext.md (since b0a716dfb0a73920ac4f), we don't want to have src/ext excluded in its entirety. Like a smart person, when I added src/ext/ext.md, I edited Doxyfile, forgetting that it is generated from Doxyfile.in. :/ This should fix travis builds.
2020-07-07CI: Fix Appveyor printf format errorDavid Goulet
For some reasons, Appveyor started to use the stdio printf format for 64 bit values (PRIu64, ...). Mingw doesn't like that so force it to use the Windows specific macros by setting D__USE_MINGW_ANSI_STDIO=0. Fixes #40026
2020-07-07Merge branch 'tor-github/pr/1973'George Kadianakis
2020-07-07Fix coccinelle complaint in test-memwipe.cNick Mathewson
2020-07-07add changes file for ticket31699Bartosz Duszel
2020-07-07remove autoconf check for mallocBartosz Duszel
2020-07-07remove autoconf check for EVP_sha3_256Bartosz Duszel
2020-07-07remove autoconf check for htonllBartosz Duszel
2020-07-07remove autoconf check for syslimitsBartosz Duszel
2020-07-07remove autoconf check for getpassBartosz Duszel
2020-07-07Mark some log messages as used by Chutney.George Kadianakis
2020-07-06Fix coccinelle complaint in test_config.cNick Mathewson
2020-07-06addr: Fix possible memleak in find_my_address()David Goulet
Unit tests also suffered from a memleak. Closes #40024 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-06Merge remote-tracking branch 'tor-github/pr/1938/head'Nick Mathewson
2020-07-03Merge branch 'maint-0.4.4'George Kadianakis
2020-07-03Merge branch 'tor-github/pr/1962' into maint-0.4.4George Kadianakis
2020-07-03hs-v2: Add deprecation warning for serviceDavid Goulet
If at least one service is configured as a version 2, a log warning is emitted once and only once. Closes #40003 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-03Merge branch 'tor-github/pr/1934'George Kadianakis
2020-07-02changes: Add changes file for ticket #40019David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02make: Don't run check-best-practices in check-localDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02scripts: Don't run practracker in git hooksDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02scripts: Add env variable to disable pre-commit hookDavid Goulet
We introduce TOR_EXTRA_PRE_COMMIT_CHECKS environment variable to run the pre-commit hook. The pre-push git hook will set it in order to run all pre-commit checks. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02Merge branch 'tor-github/pr/1968'David Goulet
2020-07-02Add braces to IF_BUG_ONCE()s introduced in ticket34069.Nick Mathewson
2020-07-02Clean up a redundant debug log in circuit_handle_first_hop().Nick Mathewson
We don't need to log that we're about to look for a channel for a given extend_info_t, since we're either going to log that we're launching one (at info), or that we're using an existing one (at debug).
2020-07-02Allow multiple addresses in extend_info_t.Nick Mathewson
In practice, there will be at most one ipv4 address and ipv6 address for now, but this code is designed to not care which address is which until forced to do so. This patch does not yet actually create extend_info_t objects with multiple addresses. Closes #34069.
2020-07-02Move description of ext contents into an md file.Nick Mathewson
This way, doxygen can include it.
2020-07-02Mention that src/ext should not be edited lightly.Nick Mathewson
Closes #32661
2020-07-02Merge branch 'ticket33238_045_01_squashed'Nick Mathewson
2020-07-02addr: Prioritize interface lookup over local hostnameDavid Goulet
The find_my_address() function now prioritize the local interface over the local hostname when guessing the IP address. See proposal 312, section 3.2.1, general case: https://gitweb.torproject.org/torspec.git/tree/proposals/312-relay-auto-ipv6-addr.txt#n359 The entire unit tests had to be refactored to make this possible. Instead of hot patching it, it has been rewritten to cover all possible cases and the test interface has been changed to accomodate both IPv4 and IPv6 in order for them to be tested identically. Closes #33238 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02Merge branch 'maint-0.4.4'Nick Mathewson
2020-07-02Merge branch 'ticket32622_044_squashed' into maint-0.4.4Nick Mathewson
2020-07-02Changes file for #32622.Nick Mathewson
2020-07-02Carry TLS error strings forward to controller when reporting them.Nick Mathewson
Now instead of saying "DONE, DONE" or "MISC, MISC" or "TLS_ERROR, TLS_ERROR", we can finally give a nice sensible "TLS_ERROR, wrong version number" which should help debug a great deal. Closes ticket 32622.
2020-07-02Add a convenience function to check for unspec address.Nick Mathewson
2020-07-02Refactor channel_connect_for_circuit() to take an extend_info_t.Nick Mathewson
2020-07-02Allow null ID argument to extend_info_new.Nick Mathewson
2020-07-02Remove an untrue comment in extend_cell_tNick Mathewson
2020-07-02Add a function for comparing the orport on an extendinfo.Nick Mathewson
2020-07-02Extract extend_info manipulation functions into a new file.Nick Mathewson
2020-07-02Light edits to extend_info_t docsNick Mathewson
2020-07-02Merge remote-tracking branch 'dgoulet/ticket32822_045_01'Nick Mathewson
2020-07-02Merge branch 'maint-0.4.4'David Goulet