aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
...
* Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson2004-12-08
| | | | | | We learned that, so we casted. But it is also a bad idea to cast a signed char to an int and expect things to work on win32. Now we cast to unsigned char, then to int, then pass to isspace. Ug svn:r3120
* New circuit building strategy: keep a list of ports that we've used in ↵Roger Dingledine2004-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | the past 6 hours, and always try to have 2 circuits open or on the way that will handle each such port. (We can extend this to include addresses if exit policies shift to require that.) Seed us with port 80 so web browsers won't complain that Tor is "slow to start up". This was necessary because our old circuit building strategy just involved counting circuits, and as time went by we would build up a big pile of circuits that had peculiar exit policies (e.g. only exit to 9001-9100) which would take up space in the circuit pile but never get used. Fix router_compare_addr_to_addr_policy: it was not treating a port of * as always matching, so we were picking reject *:* nodes as exit nodes too. If you haven't used a clean circuit in an hour, throw it away, just to be on the safe side. This means after 6 hours a totally unused Tor client will have no circuits open. svn:r3078
* Add function to check that addr_policy_t is okay; change struct ↵Nick Mathewson2004-12-04
| | | | | | addr_policy_t to addr_policy_t. svn:r3070
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* Fetch cached running-routers from servers that serve it (that is, ↵Nick Mathewson2004-11-29
| | | | | | authdirservers, and servers running 0.0.9rc5-cvs or later.) svn:r3018
* After implementing a feature, remember to disable the error message you used ↵Nick Mathewson2004-11-29
| | | | | | to get when requesting it. svn:r3013
* wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine2004-11-28
| | | | | | | totally unacceptable to me. svn:r3005
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Clarify a bunch of log messagesNick Mathewson2004-11-25
| | | | svn:r2983
* Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson2004-11-22
| | | | | | | | | - func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
* break reached_eof() out of process_inbuf()Roger Dingledine2004-11-21
| | | | svn:r2930
* Cache running-routers; compress running-routers; serve compressed ↵Nick Mathewson2004-11-15
| | | | | | running-routers.z svn:r2883
* some fixes so farRoger Dingledine2004-11-15
| | | | svn:r2880
* Make running-routers fetch (apparently) workNick Mathewson2004-11-14
| | | | svn:r2871
* fix a seg fault when fetching rendezvous descsRoger Dingledine2004-11-12
| | | | svn:r2825
* Rename exit_policy to addr_policy, since it gets used for SOCKS and ↵Nick Mathewson2004-11-12
| | | | | | directory connections too. Make all policies get validated in options_validate, and make SOCKS/directory policies get set in options_act. svn:r2819
* Resolve a bunch of FIXME items; mark a lot more for attention; ask for ↵Nick Mathewson2004-11-12
| | | | | | clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs. svn:r2808
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Clean up copyrights.Roger Dingledine2004-11-07
| | | | | | | | Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
* Make options no longer a global variable.Roger Dingledine2004-11-06
| | | | | | | | | Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
* make the default default options.FirewallPorts be the defaultRoger Dingledine2004-11-04
| | | | svn:r2683
* break out validate_optionsRoger Dingledine2004-11-04
| | | | | | | leave options.FirewallPorts NULL if it's NULL svn:r2673
* Tweaks to prevent obsolete restarting tors from hammering the dirservers. ↵Nick Mathewson2004-10-28
| | | | | | (1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod. This needs review! svn:r2618
* Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson2004-10-27
| | | | svn:r2615
* Use strlcpy, not strcpy.Nick Mathewson2004-10-27
| | | | svn:r2610
* Use tor_snprintf, not snprintfNick Mathewson2004-10-27
| | | | svn:r2609
* Replace sprintf with snprintfNick Mathewson2004-10-27
| | | | svn:r2602
* quick-and-dirty dir policy since the dirservers are getting hammeredRoger Dingledine2004-10-25
| | | | | | | | nick, could you abstract this sometime so we don't repeat the sockspolicy code twice? svn:r2589
* switch conn->addr and conn->dir_port to reflect the final destination,Roger Dingledine2004-10-17
| | | | | | | not the http proxy svn:r2553
* don't assert multiple things in the same tor_assert()Roger Dingledine2004-10-16
| | | | svn:r2544
* Remove unused localsNick Mathewson2004-10-15
| | | | svn:r2533
* Add a commentNick Mathewson2004-10-15
| | | | svn:r2530
* Upload to trusted dir servers based on DirServer config options, not on ↵Nick Mathewson2004-10-15
| | | | | | routerinfos. svn:r2529
* Ignore fascistfirewall when dealing with service descriptors; obey ↵Nick Mathewson2004-10-15
| | | | | | fascistfirewall when posting server descriptors; ignore fascistfirewall on directory connections when httpproxy is set. svn:r2527
* better warn message for the Content-Length attackRoger Dingledine2004-10-14
| | | | svn:r2495
* Try to always dtrt if routerlist==NULLNick Mathewson2004-10-14
| | | | svn:r2489
* Build without warnings on mac gcc 3.3Nick Mathewson2004-10-14
| | | | svn:r2487
* more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine2004-10-14
| | | | | | | plus a whitespace patch on config.c from vicman svn:r2482
* Remove need for dirservers file: now, we note trusted dirservers in ↵Nick Mathewson2004-10-14
| | | | | | configuration options, and only need to remember addr:port and key digest for each one. svn:r2479
* Add an implementation of trusted_dir_server logic to switch towards simply ↵Nick Mathewson2004-10-12
| | | | | | remembering an addr/port/keyid for each trusted dir server svn:r2443
* bugfix on my friday commit: make hidden services work again in cvsRoger Dingledine2004-10-12
| | | | svn:r2439
* interim commit for http proxy supportRoger Dingledine2004-10-08
| | | | svn:r2431
* Only check versions against downloaded directories, not cached directories.Nick Mathewson2004-10-03
| | | | svn:r2413
* Decode Content-Encoding header correctly.Nick Mathewson2004-10-01
| | | | svn:r2403
* prefer tor_free to freeRoger Dingledine2004-09-29
| | | | | | | plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
* ha ha, thought the bugs were doneRoger Dingledine2004-09-29
| | | | | | | don't stop writing the compressed directory just because you found a nul svn:r2399
* the tor clients in cvs can't speak to the current tor authdirservers forRoger Dingledine2004-09-28
| | | | | | | | rendezvous publishes and fetches, since they're still running 0.0.8. so make them speak the old way until we've upgraded the authdirservers. svn:r2384
* put my fenceposts back in valid memory spaceRoger Dingledine2004-09-27
| | | | svn:r2381
* checking only 0.0.7 and 0.0.8 didn't work, because some dirserversRoger Dingledine2004-09-27
| | | | | | | | | | | | | | | files have really old descriptors for the authdirservers, so we're asking them in the new format because they're too old. now we actually compare the version to a cutoff version, and act appropriately. also take this chance to use only >=0.0.8 servers for dns resolves, because of the recent bugs. we'll bump to >=0.0.9pre1 once there are some servers running that. svn:r2380