aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* more changes. i'm all caught up now.Roger Dingledine2007-02-06
| | | | svn:r9495
* r11639@catbus: nickm | 2007-02-05 13:33:38 -0500Nick Mathewson2007-02-05
| | | | | | | Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r11624@catbus: nickm | 2007-02-01 13:17:35 -0500Nick Mathewson2007-02-01
| | | | | | | Note a few questionable bits pointed out by RATS. (And no, RATS, I'm not about to stop having fixed-sized local buffers for you. I know how to use them, thankyouverymuch.) svn:r9474
* r11620@catbus: nickm | 2007-02-01 13:06:27 -0500Nick Mathewson2007-02-01
| | | | | | | Call stat() slightly less often; use fstat() when possible. svn:r9472
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* r9689@catbus: nickm | 2007-01-19 22:34:20 -0500Nick Mathewson2007-01-20
| | | | | | | And remove another strcpy. svn:r9375
* r11987@Kushana: nickm | 2007-01-19 14:57:28 -0500Nick Mathewson2007-01-19
| | | | | | | Implement SOCKS_BAD_HOSTNAME status event. Defer remaining status events. Clean up control-spec.txt a little, and fill in recommendations for events. svn:r9374
* r9776@totoro: nickm | 2007-01-18 14:37:01 -0500Nick Mathewson2007-01-18
| | | | | | | Yes, apparently saying strcpy in front of openbsd is like saying "intellectual property" in front of RMS. They both have a point, I guess, even though they extend it to contexts where it is completely irrelevant. svn:r9370
* r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500Nick Mathewson2007-01-15
| | | | | | | Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360
* r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500Nick Mathewson2007-01-15
| | | | | | | Tidy up ORCONN reason patch from Mike Perry. Changes: make some of the handling of TLS error codes less error prone. Enforce house style wrt spaces. Make it compile with --enable-gcc-warnings. Only set or_conn->tls_error in the case of an actual error. Add a changelog entry. svn:r9355
* r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson2007-01-15
| | | | | | | Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
* apparently i think of comments with no whitespace around them asRoger Dingledine2007-01-09
| | | | | | | | | "read this if you don't understand the code and want some help." which is not the same as "hey, you think you understand this code, but you don't." svn:r9307
* Fix an assert error introduced in 0.1.2.5-alpha: if a single TLSRoger Dingledine2007-01-09
| | | | | | | connection handles more than 4 gigs in either direction, we assert. svn:r9306
* more progress and cleanupsRoger Dingledine2007-01-05
| | | | svn:r9269
* r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500Nick Mathewson2006-12-29
| | | | | | | Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames svn:r9211
* r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500Nick Mathewson2006-12-29
| | | | | | | Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me". svn:r9207
* r11722@Kushana: nickm | 2006-12-28 13:51:42 -0500Nick Mathewson2006-12-28
| | | | | | | Add a helper function for case-insensitive search through a smartlist svn:r9198
* r11670@Kushana: nickm | 2006-12-21 12:23:55 -0500Nick Mathewson2006-12-21
| | | | | | | Clean up logic in parse_port_range(); accept 0 on low end and 65536 on high end for people who are bad at math. svn:r9169
* r11668@Kushana: nickm | 2006-12-20 22:22:53 -0500Nick Mathewson2006-12-21
| | | | | | | Fix bug found by Keith Skinner: Treat malformed max-ports in address ranges as an error, and dont ignore errors with min-ports even if a max-port is present. svn:r9168
* r11597@Kushana: nickm | 2006-12-15 15:49:27 -0500Nick Mathewson2006-12-15
| | | | | | | Add a rudimentary line-wrapping function for use in dumping comments in config files. svn:r9132
* r11581@Kushana: nickm | 2006-12-15 00:12:24 -0500Nick Mathewson2006-12-15
| | | | | | | Make PIDFile work on windows. Reported by Arrakis. svn:r9116
* r11566@Kushana: nickm | 2006-12-13 17:46:24 -0500Nick Mathewson2006-12-13
| | | | | | | Try to fix an assert failure in new write limiting code: make buffers.c aware of previous "forced" write sizes from tortls. svn:r9105
* when we decide not to mmap, because the file is empty or isn'tRoger Dingledine2006-12-11
| | | | | | | there at all, don't yell so loud. svn:r9065
* r11444@Kushana: nickm | 2006-12-07 09:38:52 -0500Nick Mathewson2006-12-07
| | | | | | | Fix a couple of obvious bugs in tor_mmap_file on Windows: first, fix a boolean error when checking the return value of CreateFileMapping. Second, CreateFileMapping is documented to return NULL on failure. svn:r9035
* help ftello find its prototypeRoger Dingledine2006-12-02
| | | | svn:r9016
* cleanups, bump to 0.1.2.4-alphaRoger Dingledine2006-12-02
| | | | svn:r9015
* r9371@totoro: nickm | 2006-11-21 10:59:28 -0500Nick Mathewson2006-11-21
| | | | | | | Fix a trivial comment. svn:r8979
* r9315@totoro: nickm | 2006-11-13 22:40:59 -0500Nick Mathewson2006-11-14
| | | | | | | Fix a build warning on angela-sid svn:r8949
* r9313@totoro: nickm | 2006-11-13 20:07:41 -0500Nick Mathewson2006-11-14
| | | | | | | | | | | | | | | | | | | | | | | Try to compile with fewer warnings on irix64's MIPSpro compiler / environment, which apparently believes that: - off_t can be bigger than size_t. - only mean kids assign things they do not subsequently inspect. I don't try to fix the "error" that makes it say: cc-3970 cc: WARNING File = main.c, Line = 1277 conversion from pointer to same-sized integral type (potential portability problem) uintptr_t sig = (uintptr_t)arg; Because really, what can you do about a compiler that claims to be c99 but doesn't understand that void* x = NULL; uintptr_t y = (uintptr_t) x; is safe? svn:r8948
* Avoid assert failure when our cached-routers file is empty on startup.Roger Dingledine2006-11-12
| | | | | | | (reported by revstray) svn:r8928
* r9380@Kushana: nickm | 2006-10-24 21:25:07 -0400Nick Mathewson2006-10-25
| | | | | | | Add string.h include to compat.h so that strlcpy() and strlcat() will always be defined after including compat.h. This should resolve warnings on centos. svn:r8824
* checkpoint some changes as i read diffsRoger Dingledine2006-10-20
| | | | svn:r8780
* r9304@dhcp-18-188-67-85: nickm | 2006-10-20 12:22:46 -0400Nick Mathewson2006-10-20
| | | | | | | Change HT_INIT from a special-case to a macro-calling-a-function like the rest of ht.h. This might prevent errors if somebody did, I dunno, "HT_INIT(tp, hashtable++)". Based on a patch from Watson Ladd. svn:r8776
* i saw somebody on #tor paste a string where these wereRoger Dingledine2006-10-20
| | | | | | | null. better safe than sorry. svn:r8767
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* r8971@totoro: nickm | 2006-10-09 10:16:23 -0400Nick Mathewson2006-10-09
| | | | | | | Move definition of ssize_t to torint.h svn:r8670
* r8967@totoro: nickm | 2006-10-08 23:38:50 -0400Nick Mathewson2006-10-09
| | | | | | | Fix some test and warn failures in last commit svn:r8665
* r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson2006-10-09
| | | | | | | The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
* Add missing return so this builds on mingw.Andrew Lewman2006-10-08
| | | | svn:r8649
* r8923@totoro: nickm | 2006-10-07 11:44:33 -0400Nick Mathewson2006-10-07
| | | | | | | More doxygen comments svn:r8637
* more minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8630
* fix something that looked scary to me. i believe this won'tRoger Dingledine2006-10-07
| | | | | | | | | | change any behavior currently, but it will avoiding calling noop code that might change for the worse some time. nick, please confirm. svn:r8623
* minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8622
* r8860@totoro: nickm | 2006-10-03 14:48:33 -0400Nick Mathewson2006-10-03
| | | | | | | Use ANSI-style definition syntax in strlcat.c and strlcpy.c so that gcc stops barfing with -Wold-style-definition svn:r8591
* r8851@totoro: nickm | 2006-10-02 18:13:27 -0400Nick Mathewson2006-10-02
| | | | | | | Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces. svn:r8580
* r8846@totoro: nickm | 2006-10-02 16:59:57 -0400Nick Mathewson2006-10-02
| | | | | | | Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX. svn:r8578
* r8845@totoro: nickm | 2006-10-02 16:34:58 -0400Nick Mathewson2006-10-02
| | | | | | | Fix an XXXX: make path_is_relative work on windows even though we never use it there. svn:r8577
* r8844@totoro: nickm | 2006-10-02 16:32:44 -0400Nick Mathewson2006-10-02
| | | | | | | Resolve an XXXX: make sure that we are actually on 2s-complement hardware. svn:r8576
* r8825@totoro: nickm | 2006-10-01 17:41:27 -0400Nick Mathewson2006-10-01
| | | | | | | Add function to return a random uint64_t. svn:r8570