aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2008-02-06 r17935@catbus: nickm | 2008-02-05 20:54:54 -0500Nick Mathewson
Add typechecking cast functions for typed digestmap variants. svn:r13396
2008-02-05 r17918@catbus: nickm | 2008-02-05 16:39:17 -0500Nick Mathewson
Remove a few #if-0d items. svn:r13392
2008-02-05 r17903@catbus: nickm | 2008-02-05 14:40:03 -0500Nick Mathewson
Remove some dead code; fix some XXX020s; turn some XXX020s into XXXX_IP6s (i.e., "needs to be fixed when we add ipv6 support"). svn:r13382
2008-02-05 r17899@catbus: nickm | 2008-02-05 14:14:06 -0500Nick Mathewson
Fix a couple of XXX020 items. Also, disable all "condition" sychronization code, since Tor does not use it yet svn:r13380
2008-02-05 r17898@catbus: nickm | 2008-02-05 14:01:35 -0500Nick Mathewson
Add (and use) a MAP_DEL_CURRENT macro to augment a non-const variant of MAP_FOREACH. svn:r13379
2008-02-05Apparently, our windows code for detecting ipv6 structures has worked for a ↵Nick Mathewson
while. Remove the special-case, remove the related XXXX020s, and add useful comments instead. svn:r13377
2008-01-30 r13971@tombo: nickm | 2008-01-30 14:25:25 -0500Nick Mathewson
Write a new autoconf macro to test whether a function is declared. It is suboptimal and possibly buggy in some way, but it seems to work for me. use it to test for a declaration of malloc_good_size, so we can workaround operating systems (like older OSX) that have the function in their libc but do not deign to declare it in their headers. Should resolve bug 587. svn:r13339
2008-01-26New macros to simplify writing loops over map key-value pairs.Nick Mathewson
svn:r13302
2008-01-21We accidentally enabled the under-development v2 TLS handshakeRoger Dingledine
code, which is causing log entries like "TLS error while renegotiating handshake". Disable it again. Resolves bug 590. svn:r13219
2008-01-21 r17717@catbus: nickm | 2008-01-21 17:09:23 -0500Nick Mathewson
Fix certificate leak. svn:r13218
2008-01-16 r17639@catbus: nickm | 2008-01-15 19:09:21 -0500Nick Mathewson
Fix some hard to trigger but nonetheless real memory leaks spotted by an anonymous contributor. Needs review. Partial backport candidate. svn:r13147
2008-01-15 r17624@catbus: nickm | 2008-01-15 00:42:01 -0500Nick Mathewson
Fixes to more anonymously-reported typos and logic errors. svn:r13136
2008-01-14 r17613@catbus: nickm | 2008-01-14 13:52:44 -0500Nick Mathewson
Do not segfault if symetric key generation somehow fails in crypto_hybrid_encrypt. svn:r13132
2008-01-10minor cleanupsRoger Dingledine
svn:r13095
2008-01-09<tup> tor segfaults when reading a config value that contains a malformedRoger Dingledine
escape sequence; this patch fixes it svn:r13086
2008-01-07 r17491@catbus: nickm | 2008-01-07 11:50:24 -0500Nick Mathewson
Remove some dead code. svn:r13053
2008-01-07 r17490@catbus: nickm | 2008-01-07 11:48:02 -0500Nick Mathewson
Fix bug 582: decref the idcert when we add it to the store. svn:r13052
2008-01-06 r17473@catbus: nickm | 2008-01-05 22:15:05 -0500Nick Mathewson
Add a reverse mapping from SSL to tor_tls_t*: we need this in order to do a couple of things the sensible way from inside callbacks. Also, add a couple of missing cases in connection_or.c svn:r13040
2008-01-06 r17472@catbus: nickm | 2008-01-05 22:10:19 -0500Nick Mathewson
Another test for the increasingly bad check-spaces style checker to check: #else\n#if is almost a sure sign of a failure to use #elif. Fortunately, we only did that 3 times. svn:r13039
2008-01-06 r17471@catbus: nickm | 2008-01-05 21:47:08 -0500Nick Mathewson
Missing documentation in container.h svn:r13038
2008-01-06 r17467@catbus: nickm | 2008-01-05 19:54:20 -0500Nick Mathewson
fix whitespace svn:r13035
2008-01-02 r15787@tombo: nickm | 2008-01-02 01:59:07 -0500Nick Mathewson
Allow config values in quotes to contain special characters, with full C escape syntax. With tests. Addresses bug 557. svn:r13021
2008-01-02 r15786@tombo: nickm | 2008-01-02 01:11:51 -0500Nick Mathewson
Push the strdups used for parsing configuration lines into parse_line_from_string(). This will make it easier to parse more complex value formats, which in turn will help fix bug 557 svn:r13020
2008-01-02 r15784@tombo: nickm | 2008-01-02 00:38:06 -0500Nick Mathewson
Fix bug 575: protect the list of logs with a mutex. I couldn't find any appreciable change in logging performance on osx, but ymmv. You can undef USE_LOG_MUTEX to see if stuff gets faster for you. svn:r13019
2008-01-02 r15779@tombo: nickm | 2008-01-01 23:43:24 -0500Nick Mathewson
Use reference-counting to avoid allocating a zillion little addr_policy_t objects. (This is an old patch that had been sitting on my hard drive for a while.) svn:r13017
2007-12-31 r15767@tombo: nickm | 2007-12-31 16:06:27 -0500Nick Mathewson
Note an unfreed cert svn:r13008
2007-12-28 r17423@catbus: nickm | 2007-12-28 01:54:42 -0500Nick Mathewson
Fix compilation with dmalloc svn:r12998
2007-12-26 r15691@tombo: nickm | 2007-12-25 18:13:54 -0500Nick Mathewson
New, slightly esoteric function, tor_malloc_roundup(). While tor_malloc(x) allocates x bytes, tor_malloc_roundup(&x) allocates the same size of chunk it would use to store x bytes, and sets x to the usable size of that chunk. svn:r12981
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-12-11 r17091@catbus: nickm | 2007-12-11 18:05:55 -0500Nick Mathewson
Fix compilation when --disable-threads is passed in. svn:r12768
2007-12-08 r15223@tombo: nickm | 2007-12-07 23:41:21 -0500Nick Mathewson
Aaand, do the code to enable the client side of the new TLS handshake. There are some loose ends that need tying up in connection_or, and a lot of half-baked code to remove, and some special cases to test for, and lots and lots of testing to do, but that is what weekends are for. svn:r12721
2007-12-05 r15161@tombo: nickm | 2007-12-05 11:30:37 -0500Nick Mathewson
Fix bug reported by Steve Murphy on or-talk: detect the s6_addr32 and s6_addr16 fields via autoconf. svn:r12679
2007-12-04 r15106@tombo: nickm | 2007-12-04 00:08:35 -0500Nick Mathewson
Change tor_addr_t to be a tagged union of in_addr and in6_addr, not of sockaddr_in and sockaddr_in6. It's hardly used in the main code as it is, but let's get it right before it gets popular. svn:r12660
2007-12-03 r16919@catbus: nickm | 2007-12-03 12:59:02 -0500Nick Mathewson
Add DHE-RSA-AES256-SHA to the list of ciphers encountered from v1 connections. svn:r12652
2007-12-01 r15088@tombo: nickm | 2007-11-30 23:47:29 -0500Nick Mathewson
Add support to get a callback invoked when the client renegotiate a connection. Also, make clients renegotiate. (not enabled yet, until they detect that the server acted like a v2 server) svn:r12623
2007-12-01 r15087@tombo: nickm | 2007-11-30 22:32:26 -0500Nick Mathewson
Start getting freaky with openssl callbacks in tortls.c: detect client ciphers, and if the list doesn't look like the list current Tors use, present only a single cert do not ask for a client cert. Also, support for client-side renegotiation. None of this is enabled unless you define V2_HANDSHAKE_SERVER. svn:r12622
2007-11-30 r16879@catbus: nickm | 2007-11-30 14:07:05 -0500Nick Mathewson
Log *useful* information from dmalloc. (Unfreed pointers, not total of freed and unfreed). svn:r12616
2007-11-30make dmalloc 5.4.2 work again tooRoger Dingledine
svn:r12615
2007-11-30 r16874@catbus: nickm | 2007-11-30 13:11:09 -0500Nick Mathewson
When using dmalloc, dump the top ten memory consumers to the _DMALLOC_ logfile when we get a SIGUSR1. Hint: it is not what you would think. svn:r12613
2007-11-30cleanups while i was trying to figure out how it workedRoger Dingledine
svn:r12612
2007-11-27cleanups on r12579Roger Dingledine
svn:r12580
2007-11-14 r16669@catbus: nickm | 2007-11-14 14:50:03 -0500Nick Mathewson
When we complete an OR handshake, set up all the internal fields and mark the connection as open. svn:r12495
2007-11-08 r16573@catbus: nickm | 2007-11-08 11:57:16 -0500Nick Mathewson
Mess with the formula for the Guard flag again. Now it requires that you be in the most familiar 7/8 of nodes, and have above median wfu for that 7/8th. See spec for details. Also, log thresholds better. svn:r12440
2007-11-07 r16523@catbus: nickm | 2007-11-07 11:35:49 -0500Nick Mathewson
Improve "tls error. breaking" message a little. svn:r12411
2007-11-07a note from steven about how to set up a private test networkRoger Dingledine
without link encryption. svn:r12410
2007-11-06 r16455@catbus: nickm | 2007-11-06 12:48:00 -0500Nick Mathewson
Parse CERT cells and act correctly when we get them. svn:r12396
2007-11-06 r16450@catbus: nickm | 2007-11-06 09:18:11 -0500Nick Mathewson
Fix compile on sparc64 svn:r12394
2007-11-05 r16432@catbus: nickm | 2007-11-05 14:18:57 -0500Nick Mathewson
Send and parse link_auth cells properly. svn:r12386
2007-11-05 r16413@catbus: nickm | 2007-11-05 13:14:18 -0500Nick Mathewson
Add functions to encode certificates svn:r12384
2007-11-05 r16412@catbus: nickm | 2007-11-05 11:45:17 -0500Nick Mathewson
Make TLS contexts reference-counted, and add a reference from TLS objects to their corresponding context. This lets us reliably get the certificates for a given TLS connection, even if we have rotated TLS contexts. svn:r12383