aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* now circuit_get_newest returns an appropriate circ for your purposeRoger Dingledine2004-04-02
| | | | | | | | | | connection_ap_handshake_attach_circuit attaches to a circ of the right purpose add a skeletal rendclient.c svn:r1441
* teach directory servers to handle renddesc responsesRoger Dingledine2004-04-01
| | | | svn:r1434
* Add an ap_bridge function to do a socketpair and skip socks.Roger Dingledine2004-03-31
| | | | | | | | | | | | | | | | | This allows us to do a directory connection *through* tor just as if we're doing it as an application. Make ap_conns tolerate it when the application sends stuff before The socks handshake is done (it just buffers it). Tell directory_initiate_command the length of the payload (because it might include nuls). Add a directory_has_arrived function to, for example, start building the rendezvous service descriptor. svn:r1412
* Fix warningNick Mathewson2004-03-31
| | | | svn:r1409
* better way: always nul-terminate. then sometimes use it, sometimes not.Roger Dingledine2004-03-31
| | | | svn:r1408
* let fetch_from_buf_http tolerate nuls in the http bodyRoger Dingledine2004-03-31
| | | | | | | | teach directory.c about which places it needs to nul-terminate body before it uses it, and which places it must not svn:r1407
* rename hidserv_xxNick Mathewson2004-03-31
| | | | svn:r1406
* Implement hidserv_XX functions; there is still an XXX in ↵Nick Mathewson2004-03-31
| | | | | | directory_handle_command svn:r1404
* add and use stubs for hidserv lookup and storeRoger Dingledine2004-03-30
| | | | svn:r1402
* Refactor directory serversRoger Dingledine2004-03-30
| | | | | | | | | | | * read all the time (before we would ignore eof sometimes, oops) * we can handle different urls now * send back 404 for an un-handled url * commands initiated by the client can handle payloads now * introduce conn->purpose to avoid exponential state-space explosion svn:r1400
* old or skewed descriptor doesn't mean we failed to parse itRoger Dingledine2004-03-29
| | | | svn:r1373
* refactor directories a smidgenRoger Dingledine2004-03-29
| | | | svn:r1371
* 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