aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* oops, 0.0.4 is more broken than 0.0.3Roger Dingledine2004-03-26
| | | | | | | maybe this will fix it svn:r1347
* fix two assert triggers (darn it, I hate releasing software)Roger Dingledine2004-03-26
| | | | | | | | when connecting to a dirserver or OR and the network is down, we would crash. svn:r1340
* Replace all connection_removes outsice of main.c with connection_mark_for_closeNick Mathewson2004-03-21
| | | | svn:r1328
* isspace and friends take an int. solaris cares.Roger Dingledine2004-03-19
| | | | svn:r1303
* inform unapproved servers when we reject their descriptorsRoger Dingledine2004-03-12
| | | | svn:r1263
* if the directory client hangs up before getting the directory,Roger Dingledine2004-03-06
| | | | | | | then give up on him svn:r1238
* bugfix: only warn about an unrouter router after we've fetched a directoryRoger Dingledine2004-02-29
| | | | svn:r1178
* make code more readable; arrbitrarily change a -1 to a 0.Nick Mathewson2004-02-28
| | | | svn:r1151
* Push responsibility for connection marking down as far as possible; have ↵Nick Mathewson2004-02-28
| | | | | | only a close path; add some missing end cells; change return conventions a little. svn:r1149
* last minute fix: don't early-flush non-tls streamsRoger Dingledine2004-01-31
| | | | | | | e.g., this breaks directory service svn:r1033
* remove trailing whitespaceRoger Dingledine2003-12-17
| | | | svn:r951
* make fetch_from_buf_http malloc its strings ratherRoger Dingledine2003-12-17
| | | | | | | | | | than use fixed-size strings reorganize directory_handle_command so it'll be easier to do more with our directory servers svn:r950
* Resolve format warnings on MacOS X 10.3Nick Mathewson2003-12-16
| | | | svn:r938
* clean up some file-scope-global directory variablesRoger Dingledine2003-12-14
| | | | svn:r925
* clean up some copyrightsRoger Dingledine2003-12-13
| | | | svn:r907
* terminology shift:Roger Dingledine2003-12-05
| | | | | | | | | | | | | directory is the string that dirserv.c and directory.c deal with routerlist is routerinfo's that are bundled together in routers.c rename some of the get_routerlist functions to set_routerlist preparing to break into router.c for stuff the router does, and routerlist.c for handling routerlist. svn:r886
* bump up header length when the dirserv reads http commandsRoger Dingledine2003-11-30
| | | | | | | | Nov 23 12:10:26.556 [warn] fetch_from_buf_http(): headerlen 1487 larger than 1023. Failing. Nov 23 12:10:26.556 [warn] directory_handle_command(): input too large. Failing. svn:r867
* simplify: options.OnionRouter==1 iff options.ORPort>0Roger Dingledine2003-11-20
| | | | svn:r857
* more cleanups and bugfixRoger Dingledine2003-11-11
| | | | svn:r790
* client now survives going offline betterRoger Dingledine2003-11-10
| | | | | | | | | fix badness in usage() if neither socksport nor orrport is defined, quit obsolete connection_flush_buf() svn:r780
* fix segfault (connecting to dirserver when network is down)Roger Dingledine2003-10-13
| | | | svn:r580
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* Update LICENSE and copyright dates.Nick Mathewson2003-10-08
| | | | svn:r560
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* refactor so connection_write_to_buf() never failsRoger Dingledine2003-10-04
| | | | svn:r537
* mark all dirservers up at boot; mark a dirserver down if dir fetch failsRoger Dingledine2003-09-30
| | | | svn:r519
* getting closer to having dirserv workingRoger Dingledine2003-09-30
| | | | | | | | we now add our own descriptor to the descriptor list and we rebuild the directory (and dump to disk) after receiving a POST svn:r509
* bugfixes and features: closer to making dirserv workRoger Dingledine2003-09-29
| | | | | | | | | | | fix a variety of seg faults don't try to list OPs in running-routers write cached-directory to disk when rebuilding the dir on boot, dirservers load approved-routers file on boot, dirservers load cached directory file svn:r508
* more cleanup and rearrangingRoger Dingledine2003-09-29
| | | | | | | still not finished integrating new dirserv stuff svn:r507
* fix two new segfaultsRoger Dingledine2003-09-28
| | | | svn:r506
* Write necessary backends for online directory generation. I think.Nick Mathewson2003-09-27
| | | | svn:r503
* clean up receiver buckets; prepare for payloads in relay_end; note a few bugsRoger Dingledine2003-09-27
| | | | svn:r502
* connection_new() can't ever failRoger Dingledine2003-09-27
| | | | svn:r497
* first pass: obey log conventionRoger Dingledine2003-09-26
| | | | | | | | | | | | | | | | | | | | | ERR is if something fatal just happened WARNING is something bad happened, but we're still running. The bad thing is either a bug in the code, an attack or buggy protocol/implementation of the remote peer, etc. The operator should examine the bad thing and try to correct it. (No error or warning messages should be expected. I expect most people to run on -l warning eventually.) NOTICE is never ever used. INFO means something happened (maybe bad, maybe ok), but there's nothing you need to (or can) do about it. DEBUG is for everything louder than INFO. svn:r486
* various bugfixes and updatesRoger Dingledine2003-09-25
| | | | | | | | | | | | | | | | | | | | redo all the config files for the new format (we'll redo them again soon) fix (another! yuck) segfault in log_fn when input is too large tor_tls_context_new() returns -1 for error, not NULL fix segfault in check_conn_marked() on conn's that die during tls handshake make ORs also initialize conn from router when we're the receiving node make non-dirserver ORs upload descriptor to every dirserver on startup add our local address to the descriptor add Content-Length field to POST command revert the Content-Length search in fetch_from_buf_http() to previous code fix segfault in memmove in fetch_from_buf_http() raise maximum allowed headers/body size in directory.c svn:r484
* Refactor buffers; implement descriptors.Nick Mathewson2003-09-25
| | | | | | | | | | | | | | | | | 'buf_t' is now an opaque type defined in buffers.c . Router descriptors now include all keys; routers generate keys as needed on startup (in a newly defined "data directory"), and generate their own descriptors. Descriptors are now self-signed. Implementation is not complete: descriptors are never published; and upon receiving a descriptor, the directory doesn't do anything with it. At least "routers.or" and orkeygen are now obsolete, BTW. svn:r483
* it's safe to do parallel directory fetches/uploadsRoger Dingledine2003-09-22
| | | | svn:r477
* bugfixes and note missing featuresRoger Dingledine2003-09-21
| | | | | | | | | | | | | deal with content-length headers better when reading http don't assume struct socks4_info is a packed struct fail the socks handshake if destip is zero flesh out conn_state_to_string() for dir conn fix typo (bug) in connection_handle_read() directory get is now called fetch, post is now upload reopen logs on sighup svn:r475
* leave the socks handshake on the inbuf until it's completeRoger Dingledine2003-09-18
| | | | | | | | | | | this paves the way for supporting socks5 and other handshakes it also removes those pesky AP-only variables from connection_t also hacked a fix for a bug where some streams weren't ending properly -- maybe because marked connections weren't flushing properly? svn:r472
* add in directory 'post' supportRoger Dingledine2003-09-17
| | | | svn:r471
* bugfixes and refactoringsRoger Dingledine2003-09-16
| | | | svn:r468
* clean up exported api'sRoger Dingledine2003-09-16
| | | | svn:r461
* refactor connects into connection_connect()Roger Dingledine2003-09-16
| | | | svn:r460
* tls infrastructure now in place, give or takeRoger Dingledine2003-09-08
| | | | svn:r434
* Attempt to make sockets code work right on windows.Nick Mathewson2003-08-14
| | | | svn:r398
* Misc patches to make windows build work. Now everything is done except the ↵Nick Mathewson2003-08-12
| | | | | | sockets stuff svn:r393
* Start of port to win32. Missing are:Nick Mathewson2003-08-12
| | | | | | | | | | | | | | | | - signal support - forking for DNS farm - changes for async IO - daemonizing In other words, some files still don't build, and the ones that do build, do nonblocking IO incorrectly. I'm also not checking in the project files till I have a good place for them. svn:r380
* simplify fetch_from_buf; cull idle dnsworkers.Roger Dingledine2003-06-25
| | | | svn:r354
* Change many files to new log_fn formatNick Mathewson2003-06-17
| | | | svn:r333
* OPport is gone. So is conn type OP.Roger Dingledine2003-05-28
| | | | svn:r298