summaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
AgeCommit message (Collapse)Author
2016-03-11simplify rend_cache_store_status_t back to a booleanRoger Dingledine
it used to be a tri-state, but now it's just a bi-state, so we can take out all the machinery like the enum.
2016-03-11rip out hid_serv_acting_as_directory()Roger Dingledine
When we made HidServDirectoryV2 always 1, we removed the situation where a relay could choose not to be an HSDir. Now simplify the rest of the code to reflect this decision. (We have to remove two apparently unrelated free() calls in the unit tests, since they used to free stuff that we created as a side effect of calling router_get_my_routerinfo(), and now we no longer call that.)
2016-03-11rip out hid_serv_responsible_for_desc_id()Roger Dingledine
This simplifies relay behavior, because the relay offers the hsdir functionality independent of whether the directory authorities have decided this relay is suitable for clients to use yet. Implements ticket 18332.
2016-02-27Update the copyright year.Nick Mathewson
2016-02-05Fix the --disable-asserts-in-tests configure optionSebastian Hahn
2015-12-09Remove unnecessary castingcypherpunks
2015-12-09Fix buffer over-reads in the rendcache testscypherpunks
The hidden service descriptor cache (rendcache) tests use digest maps which expect keys to have a length of DIGEST_LEN. Because the tests use key strings with a length lower than DIGEST_LEN, the internal copy operation reads outside the key strings which leads to buffer over-reads. The issue is resolved by using character arrays with a size of DIGEST_LEN. Patch on ade5005853c17b3ae5923c194680442e0f86db4d.
2015-12-01Avoid relying on malloc internals in test_rend_cache_purge.teor (Tim Wilson-Brown)
Closes ticket 17724. Bug fix on ade5005853c1 and 5e9f2384cf0f, not in any released version of Tor. Patch by "teor".
2015-10-21Fix various coverity-found issuesNick Mathewson
2015-10-21Fix all leaks (and an introduced failure) in the rendcache testsNick Mathewson
2015-10-21Yet more memory leaks in the rendcache testsNick Mathewson
2015-10-21More leaks hereNick Mathewson
2015-10-21Fix a bunch more memory leaks in the tests.Nick Mathewson
2015-10-21Fix a number of unit-test memory leaks, found by valgrind.Nick Mathewson
2015-10-07Fix some 64bit issuesNick Mathewson
2015-10-07Fix 32-bit case of rend_cache/entry_allocationNick Mathewson
2015-10-07Fix implicit overflow in rendcache testsNick Mathewson
2015-10-06Merge remote-tracking branch 'twstrike/rendcache_tests'Nick Mathewson
Conflicts: src/test/include.am src/test/rend_test_helpers.c src/test/rend_test_helpers.h
2015-10-05Fix spaces and other smaller issuesOla Bini
2015-09-15Add tests for the rend cacheOla Bini