aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* refactor around connection_edge_send_command()Roger Dingledine2003-10-04
| | | | svn:r539
* 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
* socks5 now worksRoger Dingledine2003-10-04
| | | | | | | (or at least, we can talk to mozilla.) svn:r536
* clean some includesRoger Dingledine2003-10-04
| | | | svn:r535
* Add new cell fullness and bandwidth stats.Nick Mathewson2003-10-02
| | | | svn:r533
* 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
* Flush after fputsNick Mathewson2003-10-01
| | | | svn:r526
* updated dirservers file, new config files.Roger Dingledine2003-09-30
| | | | svn:r524
* ORs post descriptors periodically tooRoger Dingledine2003-09-30
| | | | svn:r523
* 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
* make sure router descriptor doesnt eat the directory-signatureNick Mathewson2003-09-30
| | | | svn:r516
* make log use a larger buffer, for easier debuggingRoger Dingledine2003-09-30
| | | | svn:r515
* 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
* We need to call get_connection_array before using its outputsNick Mathewson2003-09-30
| | | | svn:r513
* move connection_array accessors from main.c to connection.cRoger Dingledine2003-09-30
| | | | | | | (leave poll_array accessors in main.c) svn:r512
* patch strptime warning -- reduce portability!Roger Dingledine2003-09-30
| | | | svn:r511
* move the tls handshake stuff to connection_orRoger Dingledine2003-09-30
| | | | svn:r510
* 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
* expand the scheduler to address SSL_read()'s pending bytesRoger Dingledine2003-09-28
| | | | svn:r505
* shift read_file_to_str() into util.cRoger Dingledine2003-09-28
| | | | svn:r504
* 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
* Add function to wrap SSL_pendingNick Mathewson2003-09-27
| | | | svn:r501
* remove more pieces of orkeygenRoger Dingledine2003-09-27
| | | | svn:r499
* clean up connection_assert_ok compiler warningsRoger Dingledine2003-09-27
| | | | svn:r498
* connection_new() can't ever failRoger Dingledine2003-09-27
| | | | svn:r497
* add Address config element, use it in descriptorRoger Dingledine2003-09-27
| | | | svn:r496
* orkeygen is obsoleteRoger Dingledine2003-09-27
| | | | svn:r495
* finish enforcing the log conventionRoger Dingledine2003-09-26
| | | | svn:r494
* dirservers upload their descs now tooRoger Dingledine2003-09-26
| | | | svn:r493
* make writing descs workRoger Dingledine2003-09-26
| | | | svn:r492
* update the cvsignoreRoger Dingledine2003-09-26
| | | | svn:r491
* Add code to parse fingerprint files and compare routers against fingerprint ↵Nick Mathewson2003-09-26
| | | | | | files. svn:r490
* Bugfixes in crypto_pk_write_private_key_to_filenameNick Mathewson2003-09-26
| | | | svn:r489
* 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
* cleanups, bugfixes, more verbose logsRoger Dingledine2003-09-24
| | | | | | | | | | | | | | | | | | | Fixed up the assert_*_ok funcs some (more work remains) Changed config so it reads either /etc/torrc or the -f arg, never both Finally tracked down a nasty bug with our use of tls: It turns out that if you ask SSL_read() for no more than n bytes, it will read the entire record from the network (and maybe part of the next record, I'm not sure), give you n bytes of it, and keep the remaining bytes internally. This is fine, except our poll-for-read looks at the network, and there are no bytes pending on the network, so we never know to ask SSL_read() for more bytes. Currently I've hacked it so if we ask for n bytes and it returns n bytes, then it reads again right then. This will interact poorly with our rate limiting; we need a cleaner solution. svn:r481
* integrate assert_connection_ok() checksRoger Dingledine2003-09-23
| | | | svn:r479