summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-01-31Use thread-safe types to store the LOG_PROTOCOL_WARN severityNick Mathewson
Fixes a race condition; resolves 23954.
2018-01-23Add missing static keywordsTaylor Yu
crypto_openssl_header_version_str and crypto_openssl_version_str in crypto_openssl_mgt.c should be static.
2018-01-23openssl_mutexes code belongs in openssl_mgt.cNick Mathewson
2018-01-23add a missing "compat_openssl.h"Nick Mathewson
2018-01-23perhaps this was the missing include?Nick Mathewson
2018-01-23Add a missing include for openssl 1.0.2Nick Mathewson
2018-01-23Merge remote-tracking branch 'mikeperry/bug24946'Nick Mathewson
2018-01-23Merge remote-tracking branch 'asn/bug24896'Nick Mathewson
2018-01-23Merge remote-tracking branch 'ffmancera/bug24658-openssl'Nick Mathewson
2018-01-23Add onion service activity information to our heartbeat logs.George Kadianakis
2018-01-22Move the openssl namespace back into .c files.Fernando Fernandez Mancera
As we're trying not to have all the other modules in Tor, we moved the openssl namespace includes back into crypto.c and crypto_openssl_mgt.c files. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
2018-01-20Bug 24946: Fix a warning message caused by a missed purpose check.Mike Perry
Also fix three other checks (found by inspection of all CIRCUIT_PURPOSE_C_GENERAL occurrences).
2018-01-19oxford comma for-the-winRoger Dingledine
2018-01-19Add a "falls through" comment to make gcc happy.Nick Mathewson
2018-01-19Merge remote-tracking branch 'mikeperry/bug23101-mergeready-squashed'Nick Mathewson
2018-01-19Bug 23101: Pre-build HS-specific circuits (instead of general).Mike Perry
Prebuilt circs are 4 hops, since only server side HSDIR and intro circs are 3 hops, and it is OK if those sometimes take longer to build.
2018-01-19Add new circuit purposes for hsdir activity.Mike Perry
This lets us control their path len and usage.
2018-01-19Implement layer 2 and layer 3 guard pinning via torrc.Mike Perry
Block circuit canibalization when HSRendezvousMiddleNodes is active. Also make it apply to all HS circuits, not just rends.
2018-01-19Merge branch 'disable_signal_handlers'Nick Mathewson
2018-01-19Merge branch 'maint-0.3.2'Nick Mathewson
2018-01-19Merge branch 'bug24895_031_02' into bug24895_032_02David Goulet
2018-01-19Merge branch 'bug24895_029_02' into bug24895_031_02David Goulet
2018-01-19hs: Use hs_service_max_rdv_failures consensus param, defaulting to 2Roger Dingledine
2018-01-19Add crypto_openssl_mgt.[ch] for compiling dependencies.Fernando Fernandez Mancera
Included crypto_openssl_mgt.[ch] into the appropiate files in order to resolve compiling and dependencies issues. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
2018-01-19Tweaks into functions and variables in crypto_openssl_mgt.[ch]Fernando Fernandez Mancera
Renamed free_openssl() to crypto_openssl_free_all(). Also we made variables and functions static again. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
2018-01-19Improve documentation for signal codeNick Mathewson
2018-01-19Merge branch 'restart_debug_squashed'Nick Mathewson
2018-01-19Add a mostly disabled feature to debug restarting in-processNick Mathewson
For 23847, we want Tor to be able to shut down and then restart in the same process. Here's a patch to make the Tor binary do that. To test it, you need to build with --enable-restart-debugging, and then you need to set the environment variable TOR_DEBUG_RESTART. With this option, Tor will then run for 5 seconds, then restart itself in-process without exiting. This only happens once. You can change the 5-second interval using TOR_DEBUG_RESTART_AFTER_SECONDS. Implements ticket 24583.
2018-01-19Don't call Libevent's event_base_free() on NULL.Nick Mathewson
It doesn't crash, but it produces a warning. Fixes bug 24933; bugfix on 322abc030e53c7e84ca9f22a47b2965f2. Bug not in any released Tor.
2018-01-19turn MAX_REND_FAILURES into a functionRoger Dingledine
no actual changes in behavior
2018-01-19MAX_REND_FAILURES is 1, but we would try three timesRoger Dingledine
Fix an "off by 2" error in counting rendezvous failures on the onion service side. While we thought we would stop the rendezvous attempt after one failed circuit, we were actually making three circuit attempts before giving up. Fixes bug 24895; bugfix on 0.0.6.
2018-01-18Rename crypto_openssl.[ch] to crypto_openssl_mgt.[ch]Fernando Fernandez Mancera
Rename crypto_openssl.[ch] to crypto_openssl_mgt.[ch] because it is possible we need crypto_openssl.[ch] in the future. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
2018-01-18Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-01-18Merge branch 'maint-0.3.2'Nick Mathewson
2018-01-18Merge branch 'bug24826_031' into maint-0.3.1Nick Mathewson
2018-01-17Merge branch 'bug22798_029_squashed'Nick Mathewson
2018-01-17Merge branch 'maint-0.3.2'Nick Mathewson
2018-01-17Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-01-17Merge branch 'maint-0.3.2'Nick Mathewson
2018-01-17update comment; ignore argument on non-winNick Mathewson
2018-01-17Improve Windows performance with SIO_IDEAL_SEND_BACKLOG_QUERY.Nick Mathewson
Patch written by "Vort" on trac. Addresses ticket 22798.
2018-01-17Merge branch 'bug21074_029'Nick Mathewson
2018-01-17Add a cast to avoid a signed/unsigned comparisonNick Mathewson
2018-01-16Merge branch 'bug21074_029'Nick Mathewson
2018-01-16Merge branch 'stack_em_up'Nick Mathewson
2018-01-16Repair a crash bug in src/test/benchNick Mathewson
This was caused because of the new KeyDirectory and CacheDirectory options not being set. Bugfix on 0.3.3.0-alpha; not in any released Tor.
2018-01-16Improve fragile-hardening performance of consensus_split_lines.Nick Mathewson
For whatever reason, in my testing, using memchr() here improves performance over strchr() by a great deal. Fixes bug 24826; bugfix on 0.3.1.1-alpha.
2018-01-16Fix a (spurious) scan-build warning in test_introduce1_validation()Nick Mathewson
Since helper_create_introduce1_cell() checks "cell" for nullness, scan-build is concerned that test_introduce1_validation() dereferences it without checking it. So, add a check. Not backporting, since this is spurious, _and_ tests-only.
2018-01-15Remove false positives from channel_is_client()Roger Dingledine
Fix a set of false positives where relays would consider connections to other relays as being client-only connections (and thus e.g. deserving different link padding schemes) if those relays fell out of the consensus briefly. Now we look only at the initial handshake and whether the connection authenticated as a relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
2018-01-15v3 onion services now obey MAX_REND_FAILURESRoger Dingledine
New-style (v3) onion services now obey the "max rendezvous circuit attempts" logic. Previously they would make as many rendezvous circuit attempts as they could fit in the MAX_REND_TIMEOUT second window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.