summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-07Merge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9Nick Mathewson
2018-09-07Merge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9Nick Mathewson
2018-09-07Windows: Stop calling SetProcessDEPPolicy() on 64-bit Windowsteor
It is not supported, and always fails. Some compilers warn about the function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix on 0.2.2.23-alpha.
2018-09-07hs: Silence a spurious warning in rend_client_send_introduction()teor
gcc 8 warns that extend_info_t.nickname might be truncated by strncpy(). But it doesn't know that nickname can either contain a hex id, or a nicknames. hex ids are only used for general and HSDir circuits. Fixes bug 27463; bugfix on 0.1.1.2-alpha.
2018-09-07Windows: Silence a spurious warning in the GetAdaptersAddresses castteor
GetProcAddress() returns FARPROC, which is (long long int(*)()) on 64-bit Windows: https://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx But GetAdaptersAddresses() is (long unsigned int(*)()), on both 32-bit and 64-bit Windows: https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-getadaptersaddresses So gcc 8 issues a spurious "incompatible function pointer" warning about the cast to GetAdaptersAddresses_fn_t. Silence this warning by casting to a void function pointer, before the cast to GetAdaptersAddresses_fn_t. This issue is already fixed by 26481 in 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; bugfix on 0.2.3.11-alpha.
2018-09-05Merge remote-tracking branch 'teor/bug27418-029' into maint-0.2.9Nick Mathewson
2018-09-05Travis: don't call echo with a --flag as the first argumentteor
When we use echo in Travis, don't pass a --flag as the first argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
2018-09-05Travis: when showing a log fails, keep trying to show other logsteor
When a Travis build fails, and showing a log fails, keep trying to show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
2018-08-29Test: avoid spurious failures in make test-network-allteor
Before running make test-network-all, delete old logs and test result files, to avoid spurious failures. Fixes bug 27295; bugfix on 0.2.7.3-rc.
2018-08-29Test: consistently use $(TEST_NETWORK_ALL_LOG_DIR) in Makefile.amteor
Part of 27295.
2018-08-24Silence a compilation warning on MSVC 2017 and clang-clteor
test.c no longer uses lround(), so we don't need to declare it, and we can use math.h for fabs(). Fixes bug 27185; bugfix on 0.2.2.2-alpha.
2018-08-22Mark cert_matches_key as not-intrusive; fix stretch compilation.Nick Mathewson
2018-08-21Merge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9Nick Mathewson
2018-08-20Rewrite test_tortls_cert_matches_key()Nick Mathewson
Unlike the old test, this test no will no longer mess around with the forbidden internals of any openssl data structures. Additionally, it verifies several other behaviors of tor_tls_cert_matches_key() that we had wanted to verify, such as the possibility of the certificate's key not matching. Fixes bug 27226; bugfix on 0.2.5.1-alpha.
2018-08-20Use our x509 wrapper code in tor_tls_cert_matches_key()Nick Mathewson
This allows us to mock our own tor_tls_get_peer_certificate() function in order to test ..cert_matches_key(), which will in turn allow us to simplify test_tortls_cert_matches_key() considerably. Prep work for the fix for 27226.
2018-08-15Merge remote-tracking branch 'github/bug27081_029' into maint-0.2.9Nick Mathewson
2018-08-10Travis: add a missing macOS asciidoc env varteor
2018-08-10Travis: add a missing macOS asciidoc dependencyteor
2018-08-10Travis: put distcheck first for readabilityteor
2018-08-10Changes file for Travis: enable macOS buildsteor
2018-08-10Travis: fix a typoteor
2018-08-09Travis: list installed package versions before buildingteor
Part of 24629.
2018-08-09Travis: run an asciidoc buildteor
Implements 27087.
2018-08-09Travis: Use ccacheteor
Part of ticket 26952.
2018-08-09Travis: make macOS builds work for Tor 0.2.9teor
Tor 0.2.9 needs extra help to find OpenSSL on macOS. Part of 24629.
2018-08-09Travis: create configure flags once, then echo the flagsteor
Creating the configure flags once avoids inconsistent flags between configure and distcheck configure. Echoing the flags helps developers work out what configure is doing. (Backported to 0.2.9 and later as a precaution.) Fixes 27088 on 0.3.4.1-alpha, adds logging in previous releases.
2018-08-09Travis: enable macOS buildsteor
Also: * explain why we don't install zlib Part of 24629.
2018-08-09Travis: Rewrite .travis.ymlteor
Build on all compilers: * default options + hardening Build on gcc: * coverage (+ no hardening) * distcheck * no hardening Add some extra logging: * tail config.log on failure (config.log is too long for travis to render) Put the config in a more logical order * Sort config items in chronological order * Put related items together Part of 24629.
2018-08-09Update geoip and geoip6 to the August 7 2018 database.Karsten Loesing
2018-08-09Add more optional packages to TravisTaylor Yu
Apparently we weren't building with either libcap or libseccomp on Travis. Install libcap-dev and libseccomp-dev in .travis.yml. Closes ticket 26560.
2018-08-08Don't search for -lpthread on WindowsNick Mathewson
If we're building for Windows, we want to use windows threads no matter what, and we don't want to link a pthread library even if it is present. Fixes bug 27081; bugfix on 1790dc67607799a in 0.1.0.1-rc.
2018-08-08Changes file for 25440Nick Mathewson
2018-08-08Fix crash when calling openat with sandbox enabled #25440Daniel Pinto
The seccomp rule for the openat syscall checks for the AT_FDCWD constant. Because this constant is usually a negative value, a cast to unsigned int is necessary to make sure it does not get converted to uint64_t used by seccomp. More info on: https://github.com/seccomp/libseccomp/issues/69#issuecomment-273805980
2018-08-03Merge branch 'fix_nonstandard_malloc_029' into maint-0.2.9Nick Mathewson
2018-07-25Stop logging link auth warnings on Single Onion Services and Tor2webteor
Instead, log a protocol warning when single onion services or Tor2web clients fail to authenticate direct connections to relays. Fixes bug 26924; bugfix on 0.2.9.1-alpha.
2018-07-18Changes file for bug 26787Nick Mathewson
2018-07-18Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787Nick Mathewson
2018-07-18Merge branch 'bug26485_029_squashed' into maint-0.2.9Nick Mathewson
2018-07-18Add a test for format_recommended_version_list.Nick Mathewson
2018-07-18Warn when an authority has voted for a version with a space in it.Nick Mathewson
Another way to try to prevent a recurrence of 26485.
2018-07-18Warn the directory authority operator if their versions list is bogusNick Mathewson
Prevents bug 26485; bugfix on 0.1.1.6-alpha.
2018-07-17SKIP test_keygen.sh on Windows until the underlying issue is resolvedteor
Skip an unreliable key generation test on Windows, until the underlying issue in bug 26076 is resolved. Fixes bug 26830; bugfix on 0.2.7.3-rc.
2018-07-12put new bridge auth Serge into placeRoger Dingledine
The "Bifroest" bridge authority has been retired; the new bridge authority is "Serge", and it is operated by George from the TorBSD project. Closes ticket 26771.
2018-07-11When setting a nonstandard malloc, disable the system malloc.Nick Mathewson
Closes ticket 20424.
2018-07-09Merge branch 'bug26269_029' into maint-0.2.9Nick Mathewson
2018-07-06Update geoip and geoip6 to the July 3 2018 database.Karsten Loesing
2018-07-03Merge branch 'bug26535_029' into maint-0.2.9Nick Mathewson
2018-07-02ntor_ref.py: pass only strings to subprocess.PopenNick Mathewson
Recent Python3 versions seem to require this on Windows. Fixes bug 26535; bug introduced in f4be34f70d6f277a0f3f73e, which was apparently intended itself as a Python3 workaround.
2018-06-29Finally remove our EOL@EOF check.Nick Mathewson
This check was added by mistake long ago. It will be nice to see these EOLs disappear from our code over time. (backport from master)
2018-06-29Fix a memory error in test_shared_randomNick Mathewson
Bug not in any released Tor.