summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
AgeCommit message (Collapse)Author
2010-07-27Create buffers.hSebastian Hahn
2010-07-09Rename log.h to torlog.hNick Mathewson
This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
2010-06-07Add option to not warn when getting an IP instead of hostnameSebastian Hahn
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2009-12-15Merge branch 'safelogging2'Nick Mathewson
Conflicts: ChangeLog
2009-12-15Refactor the safe_str_*() API to make more sense.Nick Mathewson
The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log".
2009-12-12*_free functions now accept NULLSebastian Hahn
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
2009-12-12Allow SafeLogging to exclude client related informationSebastian Hahn
2009-09-29Include util.h and log.h as relative paths.Nathan Freitas
This shouldn't be necessary, but apparently the Android cross-compiler doesn't respect -I as well as it should. (-I is supposed to add to the *front* of the search path. Android's gcc wrapper apparently likes to add to the end. This is broken, but we need to work around it.)
2009-08-26Merge commit 'public/socks-client'Nick Mathewson
Resolved conflict in: src/or/or.h
2009-07-13fix comments and other typosRoger Dingledine
2009-06-19Move SOCKS reason-decoding switches into reasons.cNick Mathewson
2009-06-19Enable Tor to connect through SOCKS 4/5 proxiesChristopher Davis
Added a sanity check in config.c and a check in directory.c directory_initiate_command_rend() to catch any direct connection attempts when a socks proxy is configured.
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-12Better debugging output for bug 977 case.Nick Mathewson
(Don't crash immediately if we have leftover chunks to free after freeing chunks in a buffer freelist; instead log a debugging message that might help.)
2009-05-04Update copyright to 2009.Karsten Loesing
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-30Remove some code that is #ifdefed out, and that we no longer seem to use, if ↵Nick Mathewson
we ever did. svn:r17827
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
2008-12-17Use ctags and a python script to find identifiers that are never used ↵Nick Mathewson
anywhere, and remove the ones that we really want gone. svn:r17651
2008-11-12Apparently sparc64 is way more strict about uint16_t access alignment than I ↵Nick Mathewson
had thought: it gave bus errors when messing with var-cell headers. Maybe this patch will fix bug 862. svn:r17262
2008-09-29Patch from mwenge: update TrackHostExits mapping expiry times when the ↵Nick Mathewson
mappings are used, so that they expire a while after their last use, not a while after their creation. svn:r17004
2008-09-14read_to_buf should take an int *error_socket and return it.Roger Dingledine
svn:r16909
2008-09-09Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson
easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
2008-08-08handle ipv6 in socks5 requests.Nick Mathewson
svn:r16476
2008-07-31When a struct ends with char a[1], the size of all earlier members of the ↵Nick Mathewson
struct is _not_ sizeof(st)-1; compilers add alignment. Problem spotted by rovv. Backport candidate. svn:r16302
2008-06-13Explain how my emacs setup works in the HACKING file. Someone else may care too.Nick Mathewson
svn:r15228
2008-06-11 r16171@tombo: nickm | 2008-06-11 13:47:41 -0400Nick Mathewson
Lower number of syscalls used to write data to ordinary sockets through use of writev. Disabled till I have time to test it. svn:r15133
2008-05-04cosmetic patch by Bernhard M. Wiedemann, so our comments followRoger Dingledine
the socks5 protocol better svn:r14552
2008-03-02forward-port r13799 and the 0.2.0.21-rc changelogRoger Dingledine
svn:r13808
2008-02-22 r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson
More 64-to-32 fixes. svn:r13672
2008-02-21 r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson
Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
2008-02-21 r18286@catbus: nickm | 2008-02-20 21:10:33 -0500Nick Mathewson
Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635
2008-02-20 r18283@catbus: nickm | 2008-02-20 18:58:31 -0500Nick Mathewson
Fix assertion when searching for a string in an empty chunk. svn:r13634
2008-02-20 r18279@catbus: nickm | 2008-02-20 18:38:48 -0500Nick Mathewson
Log message to try to detect error in buffers.c svn:r13633
2008-02-20 r18272@catbus: nickm | 2008-02-20 18:20:33 -0500Nick Mathewson
add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
2008-02-20 r18267@catbus: nickm | 2008-02-20 16:57:45 -0500Nick Mathewson
Suppress signed/unsigned comparison warnings in buffers.c svn:r13624
2008-02-20 r18264@catbus: nickm | 2008-02-20 12:48:21 -0500Nick Mathewson
fix bufs in buf_pos_t implementation. svn:r13623
2008-02-20 r18255@catbus: nickm | 2008-02-20 11:44:55 -0500Nick Mathewson
Add asserts and refactor some comparisons in order to fix some veracode-identified issues. Note a bug in buffers.c svn:r13618
2008-02-19call a "number of characters" a size_t, not an intRoger Dingledine
svn:r13594
2008-02-15 r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson
Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs). svn:r13529
2008-02-12 r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson
Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
2008-02-08 r14063@tombo: nickm | 2008-02-08 15:48:32 -0500Nick Mathewson
Add a bunch more code documentation; change the interface of fetch_var_cell_from_buf() so it takes the current link protocol into account and can't get confused by weird command bytes on v1 connections. svn:r13430
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06 r17951@catbus: nickm | 2008-02-06 14:34:13 -0500Nick Mathewson
Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces. svn:r13407
2008-02-06 r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson
Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
2008-02-06 r17936@catbus: nickm | 2008-02-06 00:31:11 -0500Nick Mathewson
Fix/downgrade some more XXX020s. svn:r13397