summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-12-16Merge remote-tracking branch 'tor-github/pr/1505'teor
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-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
2019-12-03hs-v3: Fix NULL deref. in hs_circ_service_get_established_intro_circ()David Goulet
Found by Stem regression tests. Reported by atagar. Fixes #32664 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-12-03Merge branch 'tor-github/pr/1563'David Goulet
2019-12-03hsv3: ONION_CLIENT_AUTH_REMOVE now also removes the credential file.George Kadianakis
2019-12-03hsv3: Abstract parts of hs_config_client_authorization() into func.George Kadianakis
Now we have a function that reads a file and returns a credential. We need that for the REMOVE control port command.
2019-12-03hsv3: Start refactoring hs_config_client_authorization().George Kadianakis
- Remove key_dir which is useless. - Kill an indentation layer. We want to make it cleaner and slimmer so that we can reuse parts of it in the REMOVE command for removing the right client auth file.
2019-12-03hsv3: Remove support for client auth nicknames.George Kadianakis
Because the function that parses client auth credentials saved on disk (parse_auth_file_content()) is not future compatible, there is no way to add support for storing the nickname on the disk. Hence, nicknames cannot persist after Tor restart making them pretty much useless. In the future we can introduce nicknames by adding a new file format for client auth credentials, but this was not deemed worth doing at this stage.
2019-12-03hsv3: Add tests for permanently storing auth credentials.George Kadianakis
Remove Permanent flag from old tests, and make a new test that does all the permanent things.
2019-12-03hsv3: Implement permanent storage of auth credentials.George Kadianakis
- See hs_client_register_auth_credentials() for the entry point. - Also set the permanent flag for credentials we read from the filesystem. - Also add some missing documentation.
2019-12-03Merge branch 'pr-1569-squashed'teor
2019-12-03Distribute checkSpaceTest.sh and run it when we have perl.Nick Mathewson
2019-12-02Merge branch 'ticket32207'Nick Mathewson
2019-12-02Link to mainloop_pubsub.[ch] when describing delivery policiesNick Mathewson
2019-12-02Merge branch 'tor-github/pr/1559'George Kadianakis
2019-12-01Merge remote-tracking branch 'tor-github/pr/1574'teor
2019-11-29control: Update an outdated function commentteor
Cleanup after 31531.
2019-11-29control: Remove an unused function return valueteor
Cleanup after 31531.
2019-11-29control: Rename a function variableteor
Cleanup after 31531.
2019-11-29control: Remove an unnecessary header in control_events.hteor
And replace it with a struct forward declaration. Also, move all the headers in the file before the forward declaration. Cleanup after 31531.