aboutsummaryrefslogtreecommitdiff
path: root/src/or/routers.c
Commit message (Collapse)AuthorAge
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* Make testcases run again; more sanity checking to descriptor generation.Nick Mathewson2003-10-01
| | | | svn:r532
* my_routerinfo, router_is_me, and learn_my_address are obsoleteRoger Dingledine2003-10-01
| | | | | | | ACIs are decided now by strcmp'ing nicknames, rather than comparing addr:port svn:r529
* rebuild directory before uploadingNick Mathewson2003-10-01
| | | | svn:r528
* Move dirserv/routers code out of main.cNick Mathewson2003-10-01
| | | | svn:r527
* Add "platform" to router descriptors.Nick Mathewson2003-09-30
| | | | svn:r522
* mark all dirservers up at boot; mark a dirserver down if dir fetch failsRoger Dingledine2003-09-30
| | | | svn:r519
* fix the SSL_read() bug again. this time for sure!Roger Dingledine2003-09-30
| | | | svn:r518
* Check router signatures again; debug signature checkingNick Mathewson2003-09-30
| | | | svn:r517
* Bugfixes in directory code:Nick Mathewson2003-09-30
| | | | | | | | | | | | | | | | | | | Improve debugging output on fingerprint checking. Make sure to add our own fingerprint to the fingerprint list _before_ adding our own descriptor, or else we'll reject ourself. Don't call a directory invalid just because we have a newer descriptor for some router. Use router_get_dir_hash to generate hashes for signed directories. Make sure we add our own descriptor successfully. Don't fall-through on failed base64-endode. svn:r514
* patch strptime warning -- reduce portability!Roger Dingledine2003-09-30
| | | | svn:r511
* 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
* expand the scheduler to address SSL_read()'s pending bytesRoger Dingledine2003-09-28
| | | | svn:r505
* Write necessary backends for online directory generation. I think.Nick Mathewson2003-09-27
| | | | svn:r503
* Add code to parse fingerprint files and compare routers against fingerprint ↵Nick Mathewson2003-09-26
| | | | | | files. svn:r490
* Refactor common file code into util.c; add published to descriptorsNick Mathewson2003-09-26
| | | | svn:r487
* 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
* 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
* clean up exported api'sRoger Dingledine2003-09-16
| | | | svn:r461
* fix two more bugsRoger Dingledine2003-09-13
| | | | svn:r452
* Add router_get_by_pk function; use in connection_tls_finish_handshake.Nick Mathewson2003-09-11
| | | | svn:r441
* point out why router_forget_router probably doesn't workRoger Dingledine2003-08-29
| | | | svn:r422
* Fix memory leaks in directory parsingNick Mathewson2003-08-28
| | | | svn:r421
* remove last vestiges of op_portRoger Dingledine2003-08-27
| | | | svn:r418
* start honoring the recommended_versions stringRoger Dingledine2003-08-23
| | | | | | | | | your client exits if you're running a version not in the directory's list of acceptable versions (unless you have a config variable set to override). svn:r408
* start refactoring dnsworker so testing won't be so darn hardRoger Dingledine2003-08-14
| | | | | | | | | add NumCpus config variable in preparation for cpuworkers hardcode /etc/torrc path for config (simplifies win32 port) improve exit policy debugging during router entry parsing svn:r397
* Make windows happier stillNick Mathewson2003-08-12
| | | | svn:r392
* src/orNick Mathewson2003-07-30
| | | | svn:r371
* Change many files to new log_fn formatNick Mathewson2003-06-17
| | | | svn:r333
* Make log_fn work on apples with no workarounds needed in main codeNick Mathewson2003-06-17
| | | | svn:r330
* Fix MacOS buildNick Mathewson2003-06-14
| | | | svn:r320
* OPport is gone. So is conn type OP.Roger Dingledine2003-05-28
| | | | svn:r298
* add circuit-level sendme relay cellsRoger Dingledine2003-05-20
| | | | | | | | | | remove sendme cells replace malloc with tor_malloc patch (but not track down) bug in onion pending list streamline connection_ap handshake svn:r293
* work on versioning; new log_fn functionNick Mathewson2003-05-09
| | | | svn:r288
* make router_dump_token only for debugging; clean backslashesRoger Dingledine2003-05-09
| | | | svn:r287
* Routerinfos are no longer linkedNick Mathewson2003-05-09
| | | | svn:r283
* We cant recognize ourself until we resolve all the routers.Nick Mathewson2003-05-09
| | | | svn:r282
* Get directories working.Nick Mathewson2003-05-08
| | | | | | | | | | | | | | | | | | | | Or at least, directories get generated, signed, download, and checked, with nobody seeming to crash. In config/*, added 'signing-key' blocks to dirservers and routers.or, so that everyone will know about the directories' signing keys. In or/directory.c, refrained from using a dirserver's signing key when no such key is known; added more debugging output. In or/main.c, added debugging output and fixed a few logic errors. In or/routers.c, added debugging output and prevented a segfault on routers_resolve_directory. The interleaving of arrays and lists on routerinfo_t is still messy, but at least it seems to work again. svn:r278
* (possibly incorrect) code to make routers get resolved when they'reNick Mathewson2003-05-08
| | | | | | | | | | inserted into the directory. Roger: If you can answer the question with your name on it, you may prevent a segfault before it happens. :) svn:r277
* Do not replace old directory if new one is invalidNick Mathewson2003-05-07
| | | | svn:r272
* Tested backends for directory signing and checking. Directory parser ↵Nick Mathewson2003-05-07
| | | | | | completely refactored. Need documentation and integration. Explanitory mail forthcoming. svn:r271
* More work on directories. Signed directories not yet tested. No support for ↵Nick Mathewson2003-05-07
| | | | | | checking sigs yet svn:r268
* Refactor directories; add unit tests; add router keywordNick Mathewson2003-05-06
| | | | svn:r266
* incremental path building in; uses ephemeral DH; onions are goneRoger Dingledine2003-05-05
| | | | | | | still need to change circuit-level sendmes svn:r264
* put most of the remaining exit policy stuff inRoger Dingledine2003-04-08
| | | | | | | route selection still doesn't pay attention to exit policies though svn:r227
* parse exit policy linesRoger Dingledine2003-04-07
| | | | svn:r225