aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
Commit message (Collapse)AuthorAge
* move closer to being able to reload config on HUPRoger Dingledine2003-10-21
| | | | | | | | rename APPort to SocksPort introduce new tor_free() macro svn:r642
* Example code to get nickname from certNick Mathewson2003-10-19
| | | | svn:r628
* Build without warnings on OS X.Nick Mathewson2003-10-15
| | | | svn:r595
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* Refactor, rename, and clarifyNick Mathewson2003-10-09
| | | | svn:r569
* 0.0.2pre11, new licenseRoger Dingledine2003-10-08
| | | | svn:r564
* Update LICENSE and copyright dates.Nick Mathewson2003-10-08
| | | | svn:r560
* more details to track a warning in tls handshakesRoger Dingledine2003-10-07
| | | | | | | plus make exit policy comparisons not always reject svn:r559
* 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
* 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
* fix the SSL_read() bug again. this time for sure!Roger Dingledine2003-09-30
| | | | svn:r518
* move the tls handshake stuff to connection_orRoger Dingledine2003-09-30
| | | | svn:r510
* 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
* 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
* phase out non-tls handshake, now that tls is stable.Roger Dingledine2003-09-16
| | | | svn:r470
* clean up exported api'sRoger Dingledine2003-09-16
| | | | svn:r461
* refactor connects into connection_connect()Roger Dingledine2003-09-16
| | | | svn:r460
* reshuffle functions for cleaner organizationRoger Dingledine2003-09-12
| | | | svn:r451
* tls works between routers now tooRoger Dingledine2003-09-12
| | | | | | | things are still a bit shaky svn:r450
* tls works with onion proxies now.Roger Dingledine2003-09-12
| | | | svn:r449
* collect info from peer we just handshaked withRoger Dingledine2003-09-11
| | | | svn:r439
* Make crypto structures private to crypto.cNick Mathewson2003-09-10
| | | | svn:r437
* tls infrastructure now in place, give or takeRoger Dingledine2003-09-08
| | | | svn:r434
* more futzing towards tlsRoger Dingledine2003-09-07
| | | | | | | not there yet svn:r429
* general cleanup and reabstraction, to prepare for tlsRoger Dingledine2003-09-05
| | | | svn:r426
* remove bandwidth negotation from the codeRoger Dingledine2003-08-25
| | | | | | | | | | | | we still use bandwidth on a per-connection basis for rate limiting. but it's unclear if we need this infrastructure in addition to the total-bandwidth rate limiting that we also do. i'll leave both infrastructures in, and we'll remove the per-connection one if it starts rotting too much. svn:r413
* fix a mild memory leak (10 bytes each time an OR connected to an OR)Roger Dingledine2003-08-25
| | | | svn:r410
* Attempt to make sockets code work right on windows.Nick Mathewson2003-08-14
| | | | svn:r398
* 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
* src/orNick Mathewson2003-07-30
| | | | svn:r371
* fix many bugs in package_window handlingRoger Dingledine2003-07-03
| | | | svn:r363
* simplify fetch_from_buf; cull idle dnsworkers.Roger Dingledine2003-06-25
| | | | svn:r354
* My copy of cpp is not DWIM-compliant; I guess, as a workaround, I should ↵Nick Mathewson2003-06-21
| | | | | | define constants before using them. svn:r343
* Reorder connection_or and make unexported functions static. Partially ↵Nick Mathewson2003-06-21
| | | | | | convert to symbolic constants -- Roger, was this what you had in mind? svn:r342
* Change many files to new log_fn formatNick Mathewson2003-06-17
| | | | svn:r333
* Do not use pseudorandom noncesNick Mathewson2003-06-14
| | | | svn:r321
* fix (harmless) bugRoger Dingledine2003-05-28
| | | | svn:r299
* OPport is gone. So is conn type OP.Roger Dingledine2003-05-28
| | | | svn:r298
* sign directories with the signing keyRoger Dingledine2003-05-07
| | | | svn:r274
* divorce circuit building from user connectionsRoger Dingledine2003-04-16
| | | | | | | | now we rebuild the circuit periodically (but only if it's been used), and we can further abstract it to do incremental circuit building, etc. svn:r233
* bugfix: make onion proxies actually obey their requested bandwidthRoger Dingledine2003-04-08
| | | | svn:r229
* Add magic to end of C files to make emacs happy; split test invocation into ↵Nick Mathewson2003-04-07
| | | | | | separate file. svn:r224
* fix rare race conditionRoger Dingledine2003-03-24
| | | | | | | | if the directory is remade while an OR is handshaking, the directory needs to become dirty again when the handshake succeeds svn:r215
* cleaner errorsRoger Dingledine2003-03-19
| | | | svn:r205