Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
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
|
|
Report address and por correctly on requests to dnsport. (Patch from Robert Hogan.)
svn:r10641
|
|
Add a SOURCE_ADDR field to STREAM NEW events so that controllers can match requests to applications. (Patch from Robert Hogan.)
svn:r10639
|
|
document some functions
svn:r10637
|
|
Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be.
svn:r10634
|
|
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
|
|
that were connected to an unkeyed connection.
svn:r10611
|
|
and we will still connect to it and use it. getting closer!
svn:r10609
|
|
svn:r10608
|
|
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
|
|
svn:r10605
|
|
- 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
|
|
Non-static inline functions cant talk about static variables.
svn:r10599
|
|
Fix compilation on compilers that do not allow you to typedef the same type twice.
svn:r10598
|
|
Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses.
svn:r10597
|
|
Oops; linked connections get read/write events too.
svn:r10596
|
|
Test all of consensus contents, except for routerstatus_list contents. And signatures.
svn:r10593
|
|
Add dnsport connection to the global connection list. (Bug found by mwenge.)
svn:r10592
|
|
Hm. Tor should never need private authority identity keys; thus, I should not actually load the authority identity keys for testing.
svn:r10591
|
|
Set vote_digest field prproperly in networkstatus_vote_t, so that it gets conveyed to the consensus correctly.
svn:r10590
|
|
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents.
svn:r10589
|
|
More vote unit tests: check that we are parsing routerstatuses correctly.
svn:r10588
|
|
Unit tests and debugging for vote generation and parsing code.
svn:r10587
|
|
New helper file for test.c: contains 3 generated certs, signing keys, and id_keys
svn:r10586
|
|
In tor-gencert, write BEGIN SIGNATURE, not BEGIN_SIGNATURE.
svn:r10585
|
|
make test_* functions stop conflicting with variables named v1 and v2.
svn:r10584
|
|
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing.
svn:r10583
|
|
- 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
|
|
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
|
|
svn:r10569
|
|
Stop assuming that desc_by_eid_map works: in fact, it kinda doesn't. Add a big comment explaining why.
svn:r10567
|
|
Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8.
svn:r10566
|
|
Fix some dumb copypasta in r10562.
svn:r10565
|
|
svn:r10564
|
|
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
|
|
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
|
|
Since desc_by_eid_map hold server descriptors, do not add routerinfo_ts. Bug found by weasel
svn:r10561
|
|
assert_ok triggers we know that our bug_417 is wrong
svn:r10560
|
|
Fix bug in 10533: put "opt v" line at the end of a routerstatus section; overwriting is bad.
svn:r10549
|
|
svn:r10548
|
|
svn:r10547
|
|
Bridge authorities no longer write bridge descriptors to their
cached-routers file -- this gets complex because of extrainfo documents.
svn:r10545
|
|
don't need it.
svn:r10544
|
|
svn:r10543
|
|
svn:r10542
|
|
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work.
svn:r10541
|
|
Parse networkstatuses (v2, vote, and consensus) after generating them, and fail fast if there is a parse error.
svn:r10540
|
|
bugfix: we were undercounting the number of authorities that recommended any given version by 1. Backport candidate.
svn:r10537
|