aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
Commit message (Expand)AuthorAge
* move the tls handshake stuff to connection_or•••svn:r510 Roger Dingledine2003-09-30
* Write necessary backends for online directory generation. I think.•••svn:r503 Nick Mathewson2003-09-27
* clean up receiver buckets; prepare for payloads in relay_end; note a few bugs•••svn:r502 Roger Dingledine2003-09-27
* connection_new() can't ever fail•••svn:r497 Roger Dingledine2003-09-27
* first pass: obey log convention•••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 Roger Dingledine2003-09-26
* various bugfixes and updates•••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 Roger Dingledine2003-09-25
* Refactor buffers; implement descriptors.•••'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 Nick Mathewson2003-09-25
* cleanups, bugfixes, more verbose logs•••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 Roger Dingledine2003-09-24
* phase out non-tls handshake, now that tls is stable.•••svn:r470 Roger Dingledine2003-09-16
* clean up exported api's•••svn:r461 Roger Dingledine2003-09-16
* refactor connects into connection_connect()•••svn:r460 Roger Dingledine2003-09-16
* reshuffle functions for cleaner organization•••svn:r451 Roger Dingledine2003-09-12
* tls works between routers now too•••things are still a bit shaky svn:r450 Roger Dingledine2003-09-12
* tls works with onion proxies now.•••svn:r449 Roger Dingledine2003-09-12
* collect info from peer we just handshaked with•••svn:r439 Roger Dingledine2003-09-11
* Make crypto structures private to crypto.c•••svn:r437 Nick Mathewson2003-09-10
* tls infrastructure now in place, give or take•••svn:r434 Roger Dingledine2003-09-08
* more futzing towards tls•••not there yet svn:r429 Roger Dingledine2003-09-07
* general cleanup and reabstraction, to prepare for tls•••svn:r426 Roger Dingledine2003-09-05
* remove bandwidth negotation from the code•••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 Roger Dingledine2003-08-25
* fix a mild memory leak (10 bytes each time an OR connected to an OR)•••svn:r410 Roger Dingledine2003-08-25
* Attempt to make sockets code work right on windows.•••svn:r398 Nick Mathewson2003-08-14
* Start of port to win32. Missing are:••• - 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 Nick Mathewson2003-08-12
* src/or•••svn:r371 Nick Mathewson2003-07-30
* fix many bugs in package_window handling•••svn:r363 Roger Dingledine2003-07-03
* simplify fetch_from_buf; cull idle dnsworkers.•••svn:r354 Roger Dingledine2003-06-25
* My copy of cpp is not DWIM-compliant; I guess, as a workaround, I should defi...•••svn:r343 Nick Mathewson2003-06-21
* Reorder connection_or and make unexported functions static. Partially conver...•••svn:r342 Nick Mathewson2003-06-21
* Change many files to new log_fn format•••svn:r333 Nick Mathewson2003-06-17
* Do not use pseudorandom nonces•••svn:r321 Nick Mathewson2003-06-14
* fix (harmless) bug•••svn:r299 Roger Dingledine2003-05-28
* OPport is gone. So is conn type OP.•••svn:r298 Roger Dingledine2003-05-28
* sign directories with the signing key•••svn:r274 Roger Dingledine2003-05-07
* divorce circuit building from user connections•••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 Roger Dingledine2003-04-16
* bugfix: make onion proxies actually obey their requested bandwidth•••svn:r229 Roger Dingledine2003-04-08
* Add magic to end of C files to make emacs happy; split test invocation into s...•••svn:r224 Nick Mathewson2003-04-07
* fix rare race condition•••if the directory is remade while an OR is handshaking, the directory needs to become dirty again when the handshake succeeds svn:r215 Roger Dingledine2003-03-24
* cleaner errors•••svn:r205 Roger Dingledine2003-03-19
* Fix bug in client_send_auth•••svn:r203 Nick Mathewson2003-03-19
* Fix client_process_auth•••svn:r202 Nick Mathewson2003-03-19
* Finish zlib and half-open; switch to 3des (ede/ofb)•••svn:r198 Nick Mathewson2003-03-19
* remove the mystery int32 from the or-to-or handshake•••thanks nick :) (note: this change breaks backward compatibility) svn:r169 Roger Dingledine2003-03-07
* cleanup and a variety of bugfixes•••svn:r132 Roger Dingledine2002-10-02
* cleanup•••prkey is only fetched when it's needed tor nodes who aren't dirservers now fetch directories and autoconnect to new nodes listed in the directory default role is a non-dirserver node svn:r120 Roger Dingledine2002-09-28
* directory servers in and functional•••proxies now periodically pull down an hourly-updated directory, and replace their router list with it if it parses correctly. svn:r112 Roger Dingledine2002-09-26
* laying the groundwork for dynamic router lists•••revamped the router reading section reference counting for crypto pk env's (so we can dup them) we now read and write pem pk keys from string rather than from FILE*, in anticipation of fetching directories over a socket (so now on startup we slurp in the whole file, then parse it as a string) fixed a bug in the proxy side, where you could get some circuits wedged if they showed up while the connection was being made svn:r110 Roger Dingledine2002-09-24
* OP was hanging on first try if connect finishes too quickly•••svn:r105 Roger Dingledine2002-09-20
* onion proxies now work (i think)•••svn:r96 Roger Dingledine2002-09-04
* resolve warnings•••svn:r89 Roger Dingledine2002-09-03
* port is now kept in host order except in sin_port•••svn:r82 Roger Dingledine2002-08-24