summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2009-05-02Update copyright to 2009.Karsten Loesing
2009-05-02Documentation fix.Karsten Loesing
2009-05-01Remove the long-deprecated GETINFO addr-mappings/Nick Mathewson
2009-04-29Command-line option to dump SHA1 digests of all source files.Nick Mathewson
Now, when you call tor --digests, it dumps the SHA1 digest of each source file that Tor was built with. We support both 'sha1sum' and 'openssl sha1'. If the user is building from a tarball and they haven't edited anything, they don't need any program that calculates SHA1. If they _have_ modified a file but they don't have a program to calculate SHA1, we try to build so we do not output digests.
2009-04-23Return -1 in the error case from read_bandwidth_usage.Sebastian Hahn
svn:r19367
2009-04-16Documentation fix.Karsten Loesing
svn:r19337
2009-04-12Raise the minimum bandwidth to be a relay from 20000 bytes to 20480Roger Dingledine
bytes (aka 20KB/s), to match our documentation. Also update directory authorities so they always assign the Fast flag to relays with 20KB/s of capacity. Now people running relays won't suddenly find themselves not seeing any use, if the network gets faster on average. svn:r19305
2009-04-11For belt-and-suspenders, relays that don't set Address in their configRoger Dingledine
now avoid using begin_dir for all direct connections. svn:r19296
2009-04-11make it compile tooRoger Dingledine
svn:r19295
2009-04-11play make-believe that addr isn't a uint32_tRoger Dingledine
svn:r19293
2009-04-11fix the same bug in two more locations (thanks to lark for proddingRoger Dingledine
me further) svn:r19292
2009-04-11Finally fix the bug where dynamic-IP relays disappear when theirRoger Dingledine
IP address changes: directory mirrors were mistakenly telling them their old address if they asked via begin_dir, so they never got an accurate answer about their new address, so they just vanished after a day. Should fix bugs 827, 883, and 900 -- but alas, only after every directory mirror has upgraded. svn:r19291
2009-04-11only log that at loglevel notice if there's a problem with theRoger Dingledine
version. otherwise there's no reason to tell the user we're doing behind-the-scenes cleaning. svn:r19288
2009-04-11Clients replace entry guards that were chosen more than a few monthsRoger Dingledine
ago. This change should significantly improve client performance, especially once more people upgrade, since relays that have been a guard for a long time are currently overloaded. svn:r19287
2009-04-11fix a commentRoger Dingledine
svn:r19262
2009-04-11If the bridge config line doesn't specify a port, assume 443.Roger Dingledine
This makes bridge lines a bit smaller and easier for users to understand. Also, remove a duplicate changelog entry from the past. svn:r19260
2009-04-11Directory authorities should accept a descriptor as changed when the relay ↵Sebastian Hahn
operator changed the bandwithrate or bandwithburst settings. svn:r19259
2009-04-10commit sebastian's patch to not require contactinfo when testingtornetworkRoger Dingledine
is set svn:r19257
2009-04-09Fix a few crash bugs related to malormed descriptors. Lark found one; ↵Nick Mathewson
fuzzing found the rest. svn:r19250
2009-04-01log more verbosely when we accept or decline a router descriptor,Roger Dingledine
to help track whether we received them when a relay operator claims they got sent. svn:r19213
2009-03-31if a directory authority declines our server descriptors because it'sRoger Dingledine
not new enough, write that in the logs. might be helpful one day. svn:r19195
2009-03-31Limit uploaded directory documents to be 16M rather than 500K.Roger Dingledine
The directory authorities were refusing v3 consensus votes from other authorities, since the votes are now 504K. Fixes bug 959; bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;). svn:r19194
2009-03-31Directory authorities should never send a 503 "busy" response toRoger Dingledine
requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by bug 959. svn:r19189
2009-03-18Whitespace cleanup.Nick Mathewson
svn:r19080
2009-03-18Do not generate the non-verbose circuit path when generating a circuit event ↵Nick Mathewson
unless we will use it. svn:r19079
2009-03-18If we have a routerstatus but no routerinfo to name a router, use the ↵Nick Mathewson
routerstatus instead when generating circuit events. Also refactor a little. svn:r19078
2009-03-18Add a function to get a LongName from a routerstatus. Needed for partial ↵Nick Mathewson
bug 941 fix. svn:r19077
2009-03-18Don't double-free successful_uploads.Nick Mathewson
When we used smartlist_free to free the list of succesful uploads because we had succeeded in uploading everywhere, we did not actually set the successful_uploads field to NULL, so later it would get freed again in rend_service_descriptor_free. Fix for bug 948; bug introduced in 0.2.1.6-alpha. svn:r19073
2009-03-16Free very-old descriptors that we do not want to add. Fix for bug 672. ↵Nick Mathewson
Backport candidate svn:r19057
2009-03-11Make directory usage recording work again. Fixing bug introduced in r17009.Karsten Loesing
svn:r18924
2009-03-11when we get an unrecognized relay streamid, log itRoger Dingledine
svn:r18919
2009-03-09Bugfix on r17756:Roger Dingledine
Avoid trying to print raw memory to the logs when we decide to give up on downloading a given relay descriptor. Bugfix on 0.2.1.9-alpha. svn:r18831
2009-03-09Log cached-at-exit exit policies to try to fix bug 672.tor-0.2.1.13-alphaNick Mathewson
svn:r18827
2009-03-09We were already rejecting relay begin cells with destination portRoger Dingledine
of 0. Now also reject extend cells with destination port or address of 0. Suggested by lark. svn:r18812
2009-03-03Actually use tor_sscanf() to parse untrusted input.Nick Mathewson
svn:r18761
2009-03-03Add a simple locale-independent no-surprises sscanf replacement.Nick Mathewson
tor_sscanf() only handles %u and %s for now, which will make it adequate to replace sscanf() for date/time/IP parsing. We want this to prevent attackers from constructing weirdly formed descriptors, cells, addresses, HTTP responses, etc, that validate under some locales but not others. svn:r18760
2009-03-02Add and use set/get_uint64 on onion tags. [bug 604; backportable]Nick Mathewson
It seems that 64-bit Sparc Solaris demands 64-bit-aligned access to uint64_t, but does not 64-bit-align the stack-allocated char array we use for cpuworker tags. So this patch adds a set/get_uint64 pair, and uses them to access the conn_id field in the tag. svn:r18743
2009-02-23Fix one case of bug 929.Nick Mathewson
svn:r18683
2009-02-23Add some debugging code to try to catch the likely cause of bug 929Nick Mathewson
svn:r18682
2009-02-21Patch from lark: if we get two extend cells for the same circuit id, drop ↵Nick Mathewson
the second. Previously, we had leaked an extend_info if the target connection was not open when the second arrived. svn:r18668
2009-02-21Patch from lark: drop BEGIN cells from a rendevous circuit if they do not ↵Nick Mathewson
originate from the end of the circuit. svn:r18667
2009-02-20send the newconsensus event if the controller has asked for newconsensusRoger Dingledine
events, not if he's asked for ns events svn:r18656
2009-02-16Possible fix for broken country settings in ExcludeExitNodes.Nick Mathewson
It turns out that we weren't updating the _ExcludeExitNodesUnion set's country numbers when we reloaded (or first loaded!) the IP-to-country file. Spotted by Lark. Bugfix on 0.2.1.6-alpha. svn:r18575
2009-02-16docdoc and changelog for r18556Roger Dingledine
svn:r18566
2009-02-16and list the new event here tooRoger Dingledine
svn:r18557
2009-02-16new controller event NEWCONSENSUS that lists the networkstatusRoger Dingledine
lines for every recommended relay. still needs docdoc and changelog entry. svn:r18556
2009-02-13If the controller claimed responsibility for a stream, but thatRoger Dingledine
stream never finished making its connection, it would live forever in circuit_wait state. Now we close it after SocksTimeout seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry. svn:r18516
2009-02-11Revert an erroneous part of the non-fix to bug 326, and add comments to ↵Nick Mathewson
explain why it was erroneous. svn:r18494
2009-02-11I worry that the CLEAR() macro in eventdns.c is hiding bugs. That is sad, ↵Nick Mathewson
because it was meant to make them more detectable. Change it to change stuff to garbage rather than to 0. If no bugs turn up, we can remove it in 0.2.2.x svn:r18493
2009-02-11Port some mostly cosmetic eventdns changes from libeventNick Mathewson
svn:r18492