summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-05-11comment patch from dgoulet that was in my inbox too longNick Mathewson
2015-05-11Bump version to 0.2.7.1-alpha. (This is not the release yet.)Nick Mathewson
2015-05-08Fix segfault in HSPOST command introduce with feature #3523Donncha O'Cearbhaill
Checking if node->rs->is_hs_dir when the router_status for the node does not exist results in a segfault. This bug is not in any released Tor.
2015-05-07Merge branch 'writing_tests'Nick Mathewson
2015-05-07Write the outlines of a WritingTests.txt documentNick Mathewson
Also, add some sample tests to be examples.
2015-05-05Merge remote-tracking branch 'public/bug15821_025'Nick Mathewson
2015-05-05Fix out-of-bounds read in INTRODUCE2 client authJohn Brooks
The length of auth_data from an INTRODUCE2 cell is checked when the auth_type is recognized (1 or 2), but not for any other non-zero auth_type. Later, auth_data is assumed to have at least REND_DESC_COOKIE_LEN bytes, leading to a client-triggered out of bounds read. Fixed by checking auth_len before comparing the descriptor cookie against known clients. Fixes #15823; bugfix on 0.2.1.6-alpha.
2015-05-05Fix a few more memory leaks; not in any released TorNick Mathewson
2015-05-05Fix a harmless memory leak in tor-gencertNick Mathewson
2015-05-04Merge branch 'feature3523_027'Nick Mathewson
2015-05-04Add "+HSPOST" and related "HS_DESC" event flags to the controller.Donncha O'Cearbhaill
"+HSPOST" and the related event changes allow the uploading of HS descriptors via the control port, and more comprehensive event monitoring of HS descriptor upload status.
2015-05-02Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).Yawning Angel
Not in any released version of tor.
2015-04-30whitespace fixesNick Mathewson
2015-04-30compilation fix: signed/unsigned comparisonNick Mathewson
2015-04-30Merge branch 'bug15814_027_04'Nick Mathewson
2015-04-30Update descriptor ID when it changes in rend_dataDavid Goulet
When we have a new descriptor ID for an onion address request, change it in the rend_data_t object and purge the old one from the last hid serv request cache. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Use descriptor ID when purging last hid fetch cacheDavid Goulet
Stop using an onion address since it's not indexed with that anymore in the last hid serv request cache. Instead use a base32 encoded descriptor ID contained in the rend_data_t object. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Use rend_data_client/service_create() in codeDavid Goulet
Every callsite that use to allocate a rend_data_t object now use the rend_data_client/service_create() function. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Add a create function for rend_data_t objectDavid Goulet
Ground works for fixing #15816. This adds the rend_data_create() function in order to have a single place where we initialize that data structure. Furthermore, an array of descriptor IDs is added (one per replica) so we can keep a copy of the current id in the object. It will be used to purge the last hid serv request cache using those descriptor IDs. When they change, they will be replaced and the old ones will be purged from the cache. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Add missing newline in memwipe test.cypherpunks
2015-04-28Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-28Revert "Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()"David Goulet
Fixes #15850, part of #15801. Change file is added by this commit. The original comment in the reverted commit is removed because right now we *need* a DirPort until #15849 is implemented so no doubt nor confusion there anymore. This reverts commit 80bed1ac96a3035f8c55ddced5528f0d7d16d386. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-28Fix another test failureNick Mathewson
We need the test scripts to become +x *after* they are created.
2015-04-28Merge branch 'feature6411_v4'Nick Mathewson
2015-04-28Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.Yawning Angel
These commands allow for the creation and management of ephemeral Onion ("Hidden") services that are either bound to the lifetime of the originating control connection, or optionally the lifetime of the tor instance. Implements #6411.
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-04-27Merge remote-tracking branch 'karsten/geoip6-apr2015' into maint-0.2.4Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson
2015-04-24Mark set-test-permissions as .PHONY; use u+x onlyNick Mathewson
2015-04-24Revert "Add +x to these .in files; see if it helps"Nick Mathewson
This reverts commit ecf98313d673f010b52f8d29c352cd9b8f145734. It didn't help.
2015-04-24Update geoip6 to the April 8 2015 database.Karsten Loesing
2015-04-24Update geoip to the April 8 2015 database.Karsten Loesing
2015-04-24Kludge include.am to work with automake <1.12Nick Mathewson
The SH_LOG_COMPILER feature doesn't work with older automakes, and those are still in use in many environments we want to support development on, like Debian Stable. Instead, use autoconf substitution to fill out the shebang lines on the shell scripts, and an intermediate make target to make them executable. This is a bugfix on the patches for #15344. Bug not in any released tor.
2015-04-23Add +x to these .in files; see if it helpsNick Mathewson
2015-04-23Make a return value explicitly ignored.Nick Mathewson
This might make coverity happy
2015-04-23Merge remote-tracking branch 'dgoulet/bug14847_027_06'Nick Mathewson
2015-04-23Fix some RNG function issuesNick Mathewson
2015-04-23Merge remote-tracking branch 'teor/longest-policy-comment'Nick Mathewson
2015-04-23Merge remote-tracking branch 'public/remove_old_libevent_autoconf_stuff'Nick Mathewson
2015-04-23Fix crash-test for assertion failureNick Mathewson
When we made assertions not get compiled in for the coverage case, we missed one case where, for our tests, we really DO want to have an assertion fail: the backtrace test. Bugfix on 1228dd293b60a8eaab03472fa29428c5e2752c44; bug not in any released tor
2015-04-23Correct "longest possible policy" comment in router policyteor
The "longest possible policy" comment in router_parse_addr_policy_item_from_string() used an example policy that was actually shorter than the maximum length. This comment was amended, and expanded to count the maximum number of characters. Comment change only.
2015-04-23Integrate backtrace test into the automake test suite.cypherpunks
For this to work bt_test.py now returns an exit code indicating success or failure. Additionally, check-local and its specific dependencies are now obsolete so they are removed.
2015-04-23Integrate ntor test into the automake test suite.cypherpunks
2015-04-23Integrate zero_length_keys test into the automake test suite.cypherpunks
The zero length keys test now requires the path to the Tor binary as the first parameter to ensure the correct Tor binary is used without hard coding a path. The wrapper script calls the zero length keys test for each test separately to ensure the correct shell is used (as configured by autoconf). Another solution would have been to place the tests into separate functions so multiple tests could be run internally. This would have made a diff of considerable size and frankly it is outside the scope of this fix.
2015-04-23Merge remote-tracking branch 'public/bug15546'Nick Mathewson
2015-04-23whitespace fixesNick Mathewson
2015-04-23Merge remote-tracking branch 'andrea/ticket14840'Nick Mathewson
2015-04-23Avoid memory leak in error messages in control.c (not in any tor)Nick Mathewson