summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2007-03-01 r12011@catbus: nickm | 2007-02-28 18:13:32 -0500Nick Mathewson
Back out insufficiently evidenced FULL_UNROLL in aes.c svn:r9693
2007-02-28 r12006@catbus: nickm | 2007-02-28 16:06:24 -0500Nick Mathewson
On mingw, use "%I64u" to printf/scanf 64-bit integers, instead of the usual GCC "%llu". This prevents a bug when saving 64-bit int configuration values on mingw; the high-order 32 bits would get truncated. If the value was then reloaded, disaster would occur. (Fixes bug 400 and maybe also bug 397.) Backport candidate. svn:r9691
2007-02-28 r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson
Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
2007-02-28 r11998@catbus: nickm | 2007-02-28 13:56:55 -0500Nick Mathewson
Correct an MSC_VER check. svn:r9685
2007-02-28 r11992@catbus: nickm | 2007-02-28 12:46:32 -0500Nick Mathewson
compile fix on mingw: mingw does not define _MSC_VER. svn:r9682
2007-02-28 r11981@catbus: nickm | 2007-02-28 11:55:27 -0500Nick Mathewson
Clamp declarable bandwidth at INT32_MAX, not INT_MAX. svn:r9677
2007-02-28 r11976@catbus: nickm | 2007-02-27 19:35:59 -0500Nick Mathewson
Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling. svn:r9672
2007-02-27Add a missing paren, and the results of an experiment.Nick Mathewson
svn:r9664
2007-02-27 r11959@catbus: nickm | 2007-02-26 22:53:36 -0500Nick Mathewson
try to make aes encryption of cells about 30-40% faster where applicable. offer not available for all architectures or all versions of openssl. svn:r9663
2007-02-26 r11956@catbus: nickm | 2007-02-26 13:33:49 -0500Nick Mathewson
Add a quick-and-dirty AES benchmark function to the bottom of aes.c so I can go collecting data. svn:r9660
2007-02-26 r11954@catbus: nickm | 2007-02-26 13:01:19 -0500Nick Mathewson
Note some optimizations that are probably not worth it for 0.1.2.x based on preliminary profiling. svn:r9659
2007-02-26more cleanups; getting closerRoger Dingledine
svn:r9655
2007-02-24doc pedantRoger Dingledine
svn:r9634
2007-02-24 r11909@catbus: nickm | 2007-02-24 02:37:40 -0500Nick Mathewson
Move tricky "delete the member of the smartlist currently under iteration" logic into its own happyfun macro. svn:r9633
2007-02-24cosmetic, comment, and todo fixesRoger Dingledine
svn:r9627
2007-02-21 r11860@catbus: nickm | 2007-02-21 00:56:15 -0500Nick Mathewson
Another optimization suggested by Shark output: shave off >90% of uses of logv by cutting down on calls to log_debug when log actually debugging. This is showing up in some profiles bug not others, and might be as much as 2.5%. svn:r9612
2007-02-20 r11852@catbus: nickm | 2007-02-20 17:25:17 -0500Nick Mathewson
Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks! svn:r9604
2007-02-20 r11850@catbus: nickm | 2007-02-20 13:34:13 -0500Nick Mathewson
Apply patch from coderman: have posix subthreads mask out signals. This could prevent some kinds of crashes when subthreads try to handle SIGPIPEs and die in the attempt. Backport candidate. svn:r9603
2007-02-16 r11832@catbus: nickm | 2007-02-16 15:31:59 -0500Nick Mathewson
Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
2007-02-16 r11826@catbus: nickm | 2007-02-16 14:58:38 -0500Nick Mathewson
Resolve 56 DOCDOC comments. svn:r9594
2007-02-16 r11824@catbus: nickm | 2007-02-16 13:16:47 -0500Nick Mathewson
Move all struct-offset-manipulation macros into util.h, and use them consistently. Because there are days when "SUBTYPE_P(handle, subtype, _base)" is just easier to read and write than "(basetp*)(((handle) - STRUCT_OFFSET(subtype, _base))". svn:r9592
2007-02-13 r11791@catbus: nickm | 2007-02-13 11:36:07 -0500Nick Mathewson
Try to fix mingw compile error reported by Li-Hui Zhou. svn:r9578
2007-02-13 r11785@catbus: nickm | 2007-02-12 20:27:48 -0500Nick Mathewson
Node-picking fixes: Never warn when a down node is listed in a config option (bug 348); always warn when a node in a config option is unnamed. Also, when entrynodes is configured, then build the guard list as: (parts of EntryNodes that were guards before), (the rest of EntryNodes), (the rest of the old guards). This last point ensures that EntryNode users will get the EntryNodes they want with the minimum change to their guard list. svn:r9574
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2007-02-12 r11774@catbus: nickm | 2007-02-12 16:31:47 -0500Nick Mathewson
Handle errors on opening cached-routers* more uniformly and sanely: log not-found errors at level INFO, and all other errors at level WARN. Needs testing on win32. svn:r9569
2007-02-12 r11773@catbus: nickm | 2007-02-12 15:18:48 -0500Nick Mathewson
Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382. svn:r9568
2007-02-06more changes. i'm all caught up now.Roger Dingledine
svn:r9495
2007-02-05 r11639@catbus: nickm | 2007-02-05 13:33:38 -0500Nick Mathewson
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
2007-02-02 r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson
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
2007-02-01 r11624@catbus: nickm | 2007-02-01 13:17:35 -0500Nick Mathewson
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
2007-02-01 r11620@catbus: nickm | 2007-02-01 13:06:27 -0500Nick Mathewson
Call stat() slightly less often; use fstat() when possible. svn:r9472
2007-01-30 r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson
Audit non-const char arguments; make a lot more of them const. svn:r9466
2007-01-20 r9689@catbus: nickm | 2007-01-19 22:34:20 -0500Nick Mathewson
And remove another strcpy. svn:r9375
2007-01-19 r11987@Kushana: nickm | 2007-01-19 14:57:28 -0500Nick Mathewson
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
2007-01-18 r9776@totoro: nickm | 2007-01-18 14:37:01 -0500Nick Mathewson
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
2007-01-15 r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500Nick Mathewson
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
2007-01-15 r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500Nick Mathewson
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
2007-01-15 r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson
Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
2007-01-09apparently i think of comments with no whitespace around them asRoger Dingledine
"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
2007-01-09Fix an assert error introduced in 0.1.2.5-alpha: if a single TLSRoger Dingledine
connection handles more than 4 gigs in either direction, we assert. svn:r9306
2007-01-05more progress and cleanupsRoger Dingledine
svn:r9269
2006-12-29 r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500Nick Mathewson
Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames svn:r9211
2006-12-29 r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500Nick Mathewson
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
2006-12-28 r11722@Kushana: nickm | 2006-12-28 13:51:42 -0500Nick Mathewson
Add a helper function for case-insensitive search through a smartlist svn:r9198
2006-12-21 r11670@Kushana: nickm | 2006-12-21 12:23:55 -0500Nick Mathewson
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
2006-12-21 r11668@Kushana: nickm | 2006-12-20 22:22:53 -0500Nick Mathewson
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
2006-12-15 r11597@Kushana: nickm | 2006-12-15 15:49:27 -0500Nick Mathewson
Add a rudimentary line-wrapping function for use in dumping comments in config files. svn:r9132
2006-12-15 r11581@Kushana: nickm | 2006-12-15 00:12:24 -0500Nick Mathewson
Make PIDFile work on windows. Reported by Arrakis. svn:r9116
2006-12-13 r11566@Kushana: nickm | 2006-12-13 17:46:24 -0500Nick Mathewson
Try to fix an assert failure in new write limiting code: make buffers.c aware of previous "forced" write sizes from tortls. svn:r9105
2006-12-11when we decide not to mmap, because the file is empty or isn'tRoger Dingledine
there at all, don't yell so loud. svn:r9065