summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-06-17 r13477@catbus: nickm | 2007-06-17 14:22:03 -0400Nick Mathewson
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645
2007-06-17 r13476@catbus: nickm | 2007-06-17 14:04:41 -0400Nick Mathewson
Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.) svn:r10644
2007-06-17 r13473@catbus: nickm | 2007-06-17 13:42:36 -0400Nick Mathewson
Fix solaris eventdns.c behavior. This time, I think I got it. We were redefining _FILE_OFFSET_BITS, and thereby calling fstat64() on a struct stat, or something like that. svn:r10643
2007-06-17 r13471@catbus: nickm | 2007-06-17 11:59:25 -0400Nick Mathewson
Report address and por correctly on requests to dnsport. (Patch from Robert Hogan.) svn:r10641
2007-06-17 r13463@catbus: nickm | 2007-06-17 11:10:17 -0400Nick Mathewson
Add a SOURCE_ADDR field to STREAM NEW events so that controllers can match requests to applications. (Patch from Robert Hogan.) svn:r10639
2007-06-17 r13438@catbus: nickm | 2007-06-15 15:01:42 -0400Nick Mathewson
document some functions svn:r10637
2007-06-17 r13418@catbus: nickm | 2007-06-14 13:29:21 -0400Nick Mathewson
Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be. svn:r10634
2007-06-15if we already have a bridge in our state file, it won't beRoger Dingledine
in the networkstatuses, so we'll mark it unusable when we load it, and then when we get a new routerinfo for it, we'll still think it's unusable. fix that. svn:r10612
2007-06-15bugfix on r10609: don't fail asserts when closing circuitsRoger Dingledine
that were connected to an unkeyed connection. svn:r10611
2007-06-15now we can specify a bridge without specifying its key,Roger Dingledine
and we will still connect to it and use it. getting closer! svn:r10609
2007-06-15extra points for making the function name reflect what it doesRoger Dingledine
svn:r10608
2007-06-15Directories no longer return a "304 not modified" when they don'tRoger Dingledine
have the networkstatus the client asked for. Also fix a memory leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha] svn:r10607
2007-06-15point out a bug in our If-Modified-Since handling in 0.2.0.2-alpha.Roger Dingledine
svn:r10605
2007-06-15Refine r10571: more work on bridge stuff.Roger Dingledine
- Only listen to responses for "authority" fetches if we're configured to use Bridges. Otherwise it's safe (and maybe smarter) to silently discard them like we used to. - React faster to download networkstatuses after the first bridge descriptor arrives. - Don't do dir fetches before we have any bridges, even when our dirport is open. svn:r10604
2007-06-13 r13413@catbus: nickm | 2007-06-13 18:44:28 -0400Nick Mathewson
Non-static inline functions cant talk about static variables. svn:r10599
2007-06-13 r13410@catbus: nickm | 2007-06-13 18:39:05 -0400Nick Mathewson
Fix compilation on compilers that do not allow you to typedef the same type twice. svn:r10598
2007-06-13 r13409@catbus: nickm | 2007-06-13 18:01:56 -0400Nick Mathewson
Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses. svn:r10597
2007-06-13 r13406@catbus: nickm | 2007-06-13 17:05:30 -0400Nick Mathewson
Oops; linked connections get read/write events too. svn:r10596
2007-06-13 r13403@catbus: nickm | 2007-06-13 16:15:44 -0400Nick Mathewson
Test all of consensus contents, except for routerstatus_list contents. And signatures. svn:r10593
2007-06-13 r13401@catbus: nickm | 2007-06-13 15:50:16 -0400Nick Mathewson
Add dnsport connection to the global connection list. (Bug found by mwenge.) svn:r10592
2007-06-13 r13399@catbus: nickm | 2007-06-13 15:17:44 -0400Nick Mathewson
Hm. Tor should never need private authority identity keys; thus, I should not actually load the authority identity keys for testing. svn:r10591
2007-06-13 r13396@catbus: nickm | 2007-06-13 15:06:18 -0400Nick Mathewson
Set vote_digest field prproperly in networkstatus_vote_t, so that it gets conveyed to the consensus correctly. svn:r10590
2007-06-13 r13395@catbus: nickm | 2007-06-13 15:01:23 -0400Nick Mathewson
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents. svn:r10589
2007-06-13 r13393@catbus: nickm | 2007-06-13 14:29:14 -0400Nick Mathewson
More vote unit tests: check that we are parsing routerstatuses correctly. svn:r10588
2007-06-13 r13387@catbus: nickm | 2007-06-13 14:15:49 -0400Nick Mathewson
Unit tests and debugging for vote generation and parsing code. svn:r10587
2007-06-13 r13386@catbus: nickm | 2007-06-13 14:15:20 -0400Nick Mathewson
New helper file for test.c: contains 3 generated certs, signing keys, and id_keys svn:r10586
2007-06-13 r13385@catbus: nickm | 2007-06-13 14:14:47 -0400Nick Mathewson
In tor-gencert, write BEGIN SIGNATURE, not BEGIN_SIGNATURE. svn:r10585
2007-06-13 r13384@catbus: nickm | 2007-06-13 13:53:26 -0400Nick Mathewson
make test_* functions stop conflicting with variables named v1 and v2. svn:r10584
2007-06-13 r13383@catbus: nickm | 2007-06-13 13:53:04 -0400Nick Mathewson
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing. svn:r10583
2007-06-12More work towards making bridge users able to connect via bridges:Roger Dingledine
- demand options->Bridges and options->TunnelDirConns if options->UseBridges is set. - after directory fetches, accept descriptors that aren't referenced by our networkstatuses, *if* they're for a configured bridge. - delay directory fetching until we have at least one bridge descriptor. - learn how to build a one-hop circuit when we have neither routerinfo nor routerstatus for our destination. - teach directory connections how to pick a bridge as the destination directory when doing non-anonymous fetches. - tolerate directory commands for which the dir_port is 0. - remember descriptors when the requested_resource was "authority", rather than just ignoring them. - put bridges on our entry_guards list once we have a descriptor for them. When UseBridges is set, only pick entry guards that are bridges. Else vice versa. svn:r10571
2007-06-12change the BandwidthRate/BandwidthBurst in the torrcRoger Dingledine
to RelayBandwidthRate/RelayBandwidthBurst, since that's what most users will actually want. also flesh out the torrc.complete entries and fix a few typos. based on patch from "Armedblowfish". svn:r10570
2007-06-12Resetting the correct statsPeter Palfrader
svn:r10569
2007-06-12 r13364@catbus: nickm | 2007-06-11 20:15:53 -0400Nick Mathewson
Stop assuming that desc_by_eid_map works: in fact, it kinda doesn't. Add a big comment explaining why. svn:r10567
2007-06-11 r13362@catbus: nickm | 2007-06-11 19:00:23 -0400Nick Mathewson
Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8. svn:r10566
2007-06-11 r13358@catbus: nickm | 2007-06-11 18:46:24 -0400Nick Mathewson
Fix some dumb copypasta in r10562. svn:r10565
2007-06-11Remove an #undef, so you can -Ddefine stuff on the command linePeter Palfrader
svn:r10564
2007-06-11 r13355@catbus: nickm | 2007-06-11 18:19:34 -0400Nick Mathewson
Make all the digestmaps inside routerlist_t use the new typechecking wrappers, so we can catch any more bugs like the one fixed by 10561. This turned up a bug in routerlist_remove: we were extracting a routerinfo_t from desc_digest_map. Fix that too, though it was probably harmless, since we were only doing a pointer comparison with it. svn:r10563
2007-06-11 r13354@catbus: nickm | 2007-06-11 18:17:40 -0400Nick Mathewson
Add typechecking wrappers to digestmap, so we can work with "map from digest to [FOO]" for arbitrary FOOs and still have some typesafety. svn:r10562
2007-06-11 r13352@catbus: nickm | 2007-06-11 17:42:45 -0400Nick Mathewson
Since desc_by_eid_map hold server descriptors, do not add routerinfo_ts. Bug found by weasel svn:r10561
2007-06-11Reorder routerlist_assert_ok() and routerlist_check_bug_417(), so if the ↵Peter Palfrader
assert_ok triggers we know that our bug_417 is wrong svn:r10560
2007-06-10 r13338@catbus: nickm | 2007-06-10 15:13:32 -0400Nick Mathewson
Fix bug in 10533: put "opt v" line at the end of a routerstatus section; overwriting is bad. svn:r10549
2007-06-10more building blocks towards being able to fetch bridge descriptorsRoger Dingledine
svn:r10548
2007-06-10discard the "bridge list" stubs that i hope i never need.Roger Dingledine
svn:r10547
2007-06-09Be clearer on the various roles for auth dir types.Roger Dingledine
Bridge authorities no longer write bridge descriptors to their cached-routers file -- this gets complex because of extrainfo documents. svn:r10545
2007-06-09don't complain when approved-routers isn't there and weRoger Dingledine
don't need it. svn:r10544
2007-06-09scrub out some more references to the misnamed 'bridge' conceptRoger Dingledine
svn:r10543
2007-06-09bump to 0.2.0.2-alpha-devRoger Dingledine
svn:r10542
2007-06-08 r13328@catbus: nickm | 2007-06-08 17:14:55 -0400Nick Mathewson
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work. svn:r10541
2007-06-08 r13325@catbus: nickm | 2007-06-08 15:02:37 -0400Nick Mathewson
Parse networkstatuses (v2, vote, and consensus) after generating them, and fail fast if there is a parse error. svn:r10540
2007-06-08 r13317@catbus: nickm | 2007-06-08 14:39:59 -0400Nick Mathewson
bugfix: we were undercounting the number of authorities that recommended any given version by 1. Backport candidate. svn:r10537