summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-12-20Run "make autostyle"teor
2019-12-19Merge branch 'dirauth_config_squashed'Nick Mathewson
2019-12-19Declare relay/dirauth subsystem levels in a header.Nick Mathewson
This way, we can't get out of sync between the two declarations.
2019-12-19Add an integration test for options disabled by dirauth subsystem.Nick Mathewson
2019-12-19Add config object for dirauth; move one option there.Nick Mathewson
I've chosen the "AuthDirMaxServersPerAddr" option here for simplicity, since it is used literally nowhere else besides the dirauth module. Once we have all the infrastructure in place for this, we can move more options into this structure.
2019-12-19Allow struct_magic to be disabled.Nick Mathewson
When a subsystem is disabled, there will be no corresponding object allocated, and no magic numbers on it.
2019-12-19Support a flag to indicate that a config var is disabledNick Mathewson
Like "obsolete" variables, these variables produce a warning when you try to set them, but the warning says that the relevant module doesn't have support. The confdecl macros now have a CONF_CONTEXT that you can define to make all the modules in a given table disabled.
2019-12-19Add "stub" files for disabled modules.Nick Mathewson
These modules are only built when the selected modules are disabled. The provide stub implementations of the subsystem blocks. Later, other stub implementations could move here. Having real subsystem blocks here will let us handle disabled configuration options better.
2019-12-18Merge branch 'tor-github/pr/1587'George Kadianakis
2019-12-17Merge branch 'ticket32172_once_again'Nick Mathewson
2019-12-17Merge remote-tracking branch 'tor-github/pr/1596'Nick Mathewson
2019-12-17Merge branch 'tor-github/pr/1608'David Goulet
2019-12-16Compact lines in test_e2e_rend_circuit_setup()Neel Chauhan
2019-12-16Remove extra space from helper_get_circ_and_stream_for_test() call in ↵Neel Chauhan
test_e2e_rend_circuit_setup()
2019-12-16Merge remote-tracking branch 'tor-github/pr/1505'teor
2019-12-15Add torint.h include to confdecl.h.Nick Mathewson
This change allows other modules to include confdecl.h without having first to include integer types they might not even use.
2019-12-12src/ext: Add __future__ imports for python 3 compatibilityteor
Closes ticket 32732.
2019-12-12python: Add __future__ imports for python 3 compatibilityteor
Except for src/ext, which we may not want to modify. Closes ticket 32732.
2019-12-10Document high-level architecture goalsTaylor Yu
Create a high-level description of the long-term software architecture goals. Closes ticket 32206.
2019-12-10set up tmp dir for test suite to run on AndroidHans-Christoph Steiner
There is no /tmp or mkdtemp on Android, there is /data/local/tmp for root and the shell user. So this fakes mkdtemp. Also, FYI, tor might not like the default perms of /data/local/tmp, e.g. 0770. https://trac.torproject.org/projects/tor/ticket/32172
2019-12-10In cancel_descriptor_fetches(), use connection_list_by_type_purpose() ↵Neel Chauhan
instead of connection_list_by_type_state()
2019-12-10Merge branch 'tor-github/pr/1581'George Kadianakis
2019-12-10hs-v3: Handle client rendezvous circuit timeoutDavid Goulet
With v3, the "pending_final_cpath" of a circuit is always NULL which means that for v3, established client rendezvous circuit waiting for the intro point to ACK, will always end up timing out quickly. This can increase the delays to which you connect to a service since in order to succeed, the rendezvous circuit needs to fully established (CIRCUIT_PURPOSE_C_REND_JOINED) within the cutoff of the introduction circuit as well which is these days around 2-3 seconds. Fixes #32021 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-12-10Merge branch 'tor-github/pr/1583'David Goulet
2019-12-10hs-v3: Fix memory leak in test_hs_control_store_permanent_creds()George Kadianakis
2019-12-09Rename control_reply_add_1kvTaylor Yu
Part of ticket 30984.
2019-12-08simplify getinfo using reply linesTaylor Yu
Simplify handle_control_getinfo() by using the new reply lines abstraction. Previously, this function explicitly checked for whether it should generate a MidReplyLine, a DataReplyLine, or an EndReplyLine. control_write_reply_lines() now abstracts this check. Part of #30984.
2019-12-08use control reply lines for protocolinfoTaylor Yu
Simplify handle_control_protocolinfo() by using the new reply line abstraction. Part of #30984.
2019-12-08refactor handle_control_protocolinfoTaylor Yu
Factor out the parts of handle_control_protocolinfo() that assemble the AUTHMETHODS and COOKIEFILE strings. Part of #30984.
2019-12-08simplify getconf by using reply linesTaylor Yu
In handle_control_getconf(), use the new control reply line abstraction to simplify output generation. Previously, this function explicitly checked for whether it should generate a MidReplyLine or an EndReplyLine. control_write_reply_lines() now abstracts this check. Part of #30984.
2019-12-08reply lines structuresTaylor Yu
Part of #30984.
2019-12-08add KV_RAW to kvline.cTaylor Yu
Add the KV_RAW flag to kvline_encode(). This allows generation of output that is compatible with some quirks of the control protocol. Part of #30984.
2019-12-08clean up kvline_can_encode_lines()Taylor Yu
Add a check for '=' characters in needs_escape(). This simplifies the logic in kvline_can_encode_lines(). Part of #30984.
2019-12-06Merge branch 'maint-0.4.2'Nick Mathewson
2019-12-06Merge branch 'maint-0.4.1' into maint-0.4.2Nick Mathewson
2019-12-06Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-12-06Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-12-06Merge branch 'maint-0.2.9' into maint-0.3.5Nick Mathewson
2019-12-06Update geoip and geoip6 to the December 3 2019 database.Karsten Loesing
2019-12-05Bump to 0.4.2.5Nick Mathewson
2019-12-05bump version to 0.4.1.7Nick Mathewson
2019-12-05Bump to 0.4.0.6Nick Mathewson
2019-12-05Bump version to 0.3.5.9Nick Mathewson
2019-12-05Merge branch 'maint-0.4.0' into maint-0.4.1teor
2019-12-05Merge branch 'maint-0.3.5' into maint-0.4.0teor
2019-12-05Merge remote-tracking branch 'tor-github/pr/1424' into maint-0.4.0teor
2019-12-05Merge remote-tracking branch 'tor-github/pr/1277' into maint-0.3.5teor
2019-12-04Merge branch 'ticket32609_squashed'Nick Mathewson
2019-12-04practracker: Add missing .may_include filesteor
All of these files contain "*.h", except for: * src/app/config/.may_include * src/test/.may_include which also contain "*.inc". This change prevents includes of "*.c" files, and other unusually named files. Part of 32609.
2019-12-04control-port: Include HS address in ONION_CLIENT_AUTH_VIEW reply.George Kadianakis