aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
* Use (set|get)_uint(16|32) in lieu of memcpy where reasonable.Nick Mathewson2004-04-03
| | | | svn:r1462
* better way: always nul-terminate. then sometimes use it, sometimes not.Roger Dingledine2004-03-31
| | | | svn:r1408
* let fetch_from_buf_http tolerate nuls in the http bodyRoger Dingledine2004-03-31
| | | | | | | | teach directory.c about which places it needs to nul-terminate body before it uses it, and which places it must not svn:r1407
* deal with hardware word alignmentRoger Dingledine2004-03-20
| | | | | | | | | this was causing the seg faults on sparc processors i wonder if i got them all. svn:r1314
* start tracking the 'broken pipe' errorRoger Dingledine2004-03-11
| | | | svn:r1261
* Make OP work on windows! (Also misc logging tweaks)Nick Mathewson2004-03-11
| | | | svn:r1258
* Make tor build on windows again. More work still neededNick Mathewson2004-03-09
| | | | svn:r1247
* re-try streams at most 4 timesRoger Dingledine2004-03-07
| | | | svn:r1242
* Try to find out early if buffers get trashed or double-freed.Nick Mathewson2004-03-03
| | | | svn:r1225
* Stop trying to flush on broken sockets marked for close.Nick Mathewson2004-02-28
| | | | svn:r1163
* clean up some log messages and severitiesRoger Dingledine2004-02-28
| | | | | | | still plenty more left to clean svn:r1158
* make flush_buf have a sane return conventionRoger Dingledine2004-02-28
| | | | svn:r1157
* Give the nice message about not being an HTTP proxy an <h1> headlinePeter Palfrader2004-02-27
| | | | svn:r1139
* writing html in C strings sucksRoger Dingledine2004-02-26
| | | | svn:r1127
* when they use tor as an http proxy, give them an http 501 failureRoger Dingledine2004-02-26
| | | | svn:r1126
* note an assert trigger, if you use an old broken netscape socks4Roger Dingledine2004-01-30
| | | | svn:r1022
* make a relay_header_t struct and pack/unpack funcsRoger Dingledine2003-12-19
| | | | | | | | | | | | | | 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
* remove trailing whitespaceRoger Dingledine2003-12-17
| | | | svn:r951
* make fetch_from_buf_http malloc its strings ratherRoger Dingledine2003-12-17
| | | | | | | | | | than use fixed-size strings reorganize directory_handle_command so it'll be easier to do more with our directory servers svn:r950
* Resolve format warnings on MacOS X 10.3Nick Mathewson2003-12-16
| | | | svn:r938
* oops, i broke buffers. fixed.Roger Dingledine2003-12-14
| | | | svn:r931
* more friendly warning when a connection buffer overflowsRoger Dingledine2003-12-14
| | | | svn:r918
* initial patches on patchesRoger Dingledine2003-11-16
| | | | svn:r814
* Make AP connections wait for a circuit if none exists.Nick Mathewson2003-11-11
| | | | | | | | | | | | | 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
* put small buffers back in placeRoger Dingledine2003-10-19
| | | | svn:r629
* try to make cvs more stable for now. need to test this more in a bit.Roger Dingledine2003-10-17
| | | | svn:r612
* change buf->buf to buf->memRoger Dingledine2003-10-15
| | | | | | | maybe this will mean fewer dumb errors svn:r599
* fix bug with overzealous shrinking; add more comments.Nick Mathewson2003-10-15
| | | | svn:r597
* make the buffer resize stuff workRoger Dingledine2003-10-14
| | | | | | | and make listener connections not have bufs svn:r584
* Make buffers grow and shrink as needed.Nick Mathewson2003-10-14
| | | | svn:r583
* clarify the warning for unrecognized socks versionRoger Dingledine2003-10-11
| | | | | | | (generally happens when people use tor as an httpd proxy) svn:r576
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* Update LICENSE and copyright dates.Nick Mathewson2003-10-08
| | | | svn:r560
* socks5 now worksRoger Dingledine2003-10-04
| | | | | | | (or at least, we can talk to mozilla.) svn:r536
* clean up connection_assert_ok compiler warningsRoger Dingledine2003-09-27
| | | | svn:r498
* 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
* get network/host order working right again for socks4Roger Dingledine2003-09-21
| | | | svn:r476
* bugfixes and note missing featuresRoger Dingledine2003-09-21
| | | | | | | | | | | | | 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
* 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
* fix confirmed win32 bugRoger Dingledine2003-09-08
| | | | svn:r435
* more futzing towards tlsRoger Dingledine2003-09-07
| | | | | | | not there yet svn:r429
* clean read_to_buf moreRoger Dingledine2003-09-05
| | | | svn:r428
* Add initial interfaces and code for TLS support. Interfaces are right; code ↵Nick Mathewson2003-09-04
| | | | | | needs work and testing. svn:r424
* Attempt to make sockets code work right on windows.Nick Mathewson2003-08-14
| | | | svn:r398
* implemented total read rate limitingRoger Dingledine2003-07-05
| | | | svn:r365