| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
svn:r10603
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
an editor who actually edits, rather than the traditional
academic role of editors.
but in any case, it'll do. great.
svn:r10581
|
|
|
|
| |
svn:r10580
|
|
|
|
|
|
| |
(10.3-10.5).
svn:r10579
|
|
|
|
| |
svn:r10578
|
|
|
|
| |
svn:r10577
|
|
|
|
| |
svn:r10576
|
|
|
|
| |
svn:r10575
|
|
|
|
| |
svn:r10574
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
Clarify what we mean by digest, for people who ignore "as signed" and who don't read section 1.3.
svn:r10568
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add some more files to svn:ignore.
svn:r10536
|
|
|
|
|
|
|
| |
Make versions get added to networkstatuses correctly again.
svn:r10535
|
|
|
|
|
|
|
| |
Enfore that known_flags in networkstatus votes must be unique.
svn:r10534
|