aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Expand)AuthorAge
...
* better way: always nul-terminate. then sometimes use it, sometimes not.•••svn:r1408 Roger Dingledine2004-03-31
* let fetch_from_buf_http tolerate nuls in the http body•••teach directory.c about which places it needs to nul-terminate body before it uses it, and which places it must not svn:r1407 Roger Dingledine2004-03-31
* deal with hardware word alignment•••this was causing the seg faults on sparc processors i wonder if i got them all. svn:r1314 Roger Dingledine2004-03-20
* start tracking the 'broken pipe' error•••svn:r1261 Roger Dingledine2004-03-11
* Make OP work on windows! (Also misc logging tweaks)•••svn:r1258 Nick Mathewson2004-03-11
* Make tor build on windows again. More work still needed•••svn:r1247 Nick Mathewson2004-03-09
* re-try streams at most 4 times•••svn:r1242 Roger Dingledine2004-03-07
* Try to find out early if buffers get trashed or double-freed.•••svn:r1225 Nick Mathewson2004-03-03
* Stop trying to flush on broken sockets marked for close.•••svn:r1163 Nick Mathewson2004-02-28
* clean up some log messages and severities•••still plenty more left to clean svn:r1158 Roger Dingledine2004-02-28
* make flush_buf have a sane return convention•••svn:r1157 Roger Dingledine2004-02-28
* Give the nice message about not being an HTTP proxy an <h1> headline•••svn:r1139 Peter Palfrader2004-02-27
* writing html in C strings sucks•••svn:r1127 Roger Dingledine2004-02-26
* when they use tor as an http proxy, give them an http 501 failure•••svn:r1126 Roger Dingledine2004-02-26
* note an assert trigger, if you use an old broken netscape socks4•••svn:r1022 Roger Dingledine2004-01-30
* make a relay_header_t struct and pack/unpack funcs•••split 7-byte stream_id string into 2-byte recognized and 2-byte stream_id fix two seg faults in fetch_from_buf_http fix several lurking seg faults in handling unexpected relay cells still need to * clean up relay_crypt * use relay dummies if there's going to be a conflict with rh.recognized * check for a conflict when generating stream_ids svn:r953 Roger Dingledine2003-12-19
* remove trailing whitespace•••svn:r951 Roger Dingledine2003-12-17
* make fetch_from_buf_http malloc its strings rather•••than use fixed-size strings reorganize directory_handle_command so it'll be easier to do more with our directory servers svn:r950 Roger Dingledine2003-12-17
* Resolve format warnings on MacOS X 10.3•••svn:r938 Nick Mathewson2003-12-16
* oops, i broke buffers. fixed.•••svn:r931 Roger Dingledine2003-12-14
* more friendly warning when a connection buffer overflows•••svn:r918 Roger Dingledine2003-12-14
* initial patches on patches•••svn:r814 Roger Dingledine2003-11-16
* Make AP connections wait for a circuit if none exists.•••Also: - Refactor socks request into a separate struct - Add a separate 'waiting for circuit' state to AP connections between 'waiting for socks' and 'open'. Arma: can you check out the XXX's I've added to connection_edge? I may be mishandling some async and close logic. svn:r783 Nick Mathewson2003-11-11
* put small buffers back in place•••svn:r629 Roger Dingledine2003-10-19
* try to make cvs more stable for now. need to test this more in a bit.•••svn:r612 Roger Dingledine2003-10-17
* change buf->buf to buf->mem•••maybe this will mean fewer dumb errors svn:r599 Roger Dingledine2003-10-15
* fix bug with overzealous shrinking; add more comments.•••svn:r597 Nick Mathewson2003-10-15
* make the buffer resize stuff work•••and make listener connections not have bufs svn:r584 Roger Dingledine2003-10-14
* Make buffers grow and shrink as needed.•••svn:r583 Nick Mathewson2003-10-14
* clarify the warning for unrecognized socks version•••(generally happens when people use tor as an httpd proxy) svn:r576 Roger Dingledine2003-10-11
* change WARNING to WARN•••and fix a few typos svn:r571 Roger Dingledine2003-10-10
* Update LICENSE and copyright dates.•••svn:r560 Nick Mathewson2003-10-08
* socks5 now works•••(or at least, we can talk to mozilla.) svn:r536 Roger Dingledine2003-10-04
* clean up connection_assert_ok compiler warnings•••svn:r498 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
* get network/host order working right again for socks4•••svn:r476 Roger Dingledine2003-09-21
* bugfixes and note missing features•••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 Roger Dingledine2003-09-21
* leave the socks handshake on the inbuf until it's complete•••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 Roger Dingledine2003-09-18
* add in directory 'post' support•••svn:r471 Roger Dingledine2003-09-17
* fix confirmed win32 bug•••svn:r435 Roger Dingledine2003-09-08
* more futzing towards tls•••not there yet svn:r429 Roger Dingledine2003-09-07
* clean read_to_buf more•••svn:r428 Roger Dingledine2003-09-05
* Add initial interfaces and code for TLS support. Interfaces are right; code ...•••svn:r424 Nick Mathewson2003-09-04
* Attempt to make sockets code work right on windows.•••svn:r398 Nick Mathewson2003-08-14
* implemented total read rate limiting•••svn:r365 Roger Dingledine2003-07-05
* simplify fetch_from_buf; cull idle dnsworkers.•••svn:r354 Roger Dingledine2003-06-25