aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
AgeCommit message (Collapse)Author
2010-07-27Create config.hSebastian Hahn
2010-07-27Create circuitbuild.hSebastian Hahn
2010-07-27Create rendservice.hSebastian Hahn
2010-07-27Create rendclient.hSebastian Hahn
2010-07-27Create rendcommon.hSebastian Hahn
2010-07-27Create routerlist.hSebastian Hahn
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2010-02-26Proper NULL checking for hsdesc publicationSebastian Hahn
Fix a dereference-then-NULL-check sequence. This bug wasn't triggered in the wild, but we should fix it anyways in case it ever happens. Also make sure users get a note about this being a bug when they see it in their log. Thanks to ekir for discovering and reporting this bug.
2010-02-23Proper NULL checking for hsdesc publicationSebastian Hahn
Fix a dereference-then-NULL-check sequence. This bug wasn't triggered in the wild, but we should fix it anyways in case it ever happens. Also make sure users get a note about this being a bug when they see it in their log. Thanks to ekir for discovering and reporting this bug.
2009-12-17Remove v0 hidden service statistics code.Karsten Loesing
The HSAuthorityRecordStats option was used to track statistics of overall hidden service usage on the version 0 hidden service authorities. With the version 2 hidden service directories being deployed and version 0 descriptors being phased out, these statistics are not as useful anymore. Goodbye, you fine piece of software; my first major code contribution to Tor.
2009-12-15Merge branch 'safelogging2'Nick Mathewson
Conflicts: ChangeLog
2009-12-15Refactor the safe_str_*() API to make more sense.Nick Mathewson
The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log".
2009-12-12Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson
2009-12-12Make rend_cache_entry_free() typecheck when possible.Nick Mathewson
2009-12-12*_free functions now accept NULLSebastian Hahn
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
2009-12-12Allow SafeLogging to exclude client related informationSebastian Hahn
2009-10-26Remove checks for array existence. (CID 410..415)Nick Mathewson
In C, the code "char x[10]; if (x) {...}" always takes the true branch of the if statement. Coverity notices this now. In some cases, we were testing arrays to make sure that an operation we wanted to do would suceed. Those cases are now always-true. In some cases, we were testing arrays to see if something was _set_. Those caes are now tests for strlen(s), or tests for !tor_mem_is_zero(d,len).
2009-10-15Make signature-generation code handle different key and digest lengths.Nick Mathewson
2009-06-13Fix more of bug 997.Karsten Loesing
Fix refetching of hidden service descriptors when all introduction points have turned out to not work.
2009-05-04Drop version 0 hidserv support on service side.Karsten Loesing
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-31switch over the bridge descriptor download mechanism toRoger Dingledine
use the same download mechanism as other places. i had to make an ugly hack around "IMPOSSIBLE_TO_DOWNLOAD+1". we should unhack that sometime. svn:r17834
2008-12-29Replace kludgy assert with something a little less awful, and avoid needless ↵Nick Mathewson
strlcpy in rend descriptor encoding. svn:r17818
2008-12-18Fix memory leak in rend_cache_store_v2_desc_as_client(), and refactor the ↵Nick Mathewson
function to use the "goto err" idiom. svn:r17665
2008-10-27make layer_hint check a little stricter.Nick Mathewson
svn:r17164
2008-10-27Verify cpath_layer match on rendezvous cells too. Fixes another case of bug ↵Nick Mathewson
446. Based on patch from rovv. svn:r17162
2008-10-02Make rend_cache_store() use the same return error codes as its v2Roger Dingledine
equivalent: I got a lonely "Failed to fetch rendezvous descriptor." in my log file, even when the connection worked. svn:r17028
2008-09-24Add patch 4 from Karsten for proposal 121, slightly modified. Karsten ↵Nick Mathewson
should definitely re-review the bits I changed. svn:r16955
2008-09-09Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson
easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
2008-09-09karsten's patch for bug 767.Roger Dingledine
svn:r16808
2008-09-05Fix numerous memory leaks: some were almost impossible to trigger, and some ↵Nick Mathewson
almost inevitable. svn:r16779
2008-08-20make r16598 compile on 64-bit tooRoger Dingledine
svn:r16604
2008-08-19Update doxygen documentation.Karsten Loesing
svn:r16599
2008-08-19Apply proposal 121 patch 3, with minor tweaks and a few comments.Nick Mathewson
svn:r16598
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
2008-07-24 r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
2008-02-20if you thought r13604 was a kludge, how about this.Roger Dingledine
svn:r13605
2008-02-20be more clear about a possible integer underflow problem. thisRoger Dingledine
should probably be fixed better somehow. svn:r13604
2008-02-19check return value for crypto_pk_asn1_encode here too. thanks veracode.Roger Dingledine
svn:r13603
2008-02-13 r18068@catbus: nickm | 2008-02-13 11:33:19 -0500Nick Mathewson
Patch from karsten: make hidden service code respect SafeLogging. svn:r13493
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-01-24patch "15" from karsten: don't retry a v2 renddesc fetchRoger Dingledine
if we have a perfectly good v0 renddesc. svn:r13265
2008-01-06patch from karsten to complain less when a node losesRoger Dingledine
its hsdir status svn:r13037
2007-12-21revert r12841 and r12842, and commit karsten's "patch 13"Roger Dingledine
svn:r12900
2007-12-15cleanups on r12825Roger Dingledine
svn:r12826
2007-12-15apply karsten's "patch 12"Roger Dingledine
svn:r12825
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786