| Commit message (Collapse) | Author | Age |
|
|
|
| |
svn:r12607
|
|
|
|
|
|
|
|
|
|
| |
relay's public (external) IP address too, unless
ExitPolicyRejectPrivate is turned off. We do this because too
many relays are running nearby to services that trust them based
on network address.
svn:r12459
|
|
|
|
|
|
|
| |
Add a smartlist_bsearch_idx function that gives more useful output than regular bsearch for the value-not-found case.
svn:r12360
|
|
|
|
|
|
|
| |
Clean spaces.
svn:r12301
|
|
|
|
|
|
|
| |
HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this.
svn:r12289
|
|
|
|
|
|
|
| |
Patch from Karsten Loesing: encode and parse v2 rendezvous descriptors.
svn:r12254
|
|
|
|
|
|
|
| |
Fix a unit test in test_crypto_base32_decode that would fail one time in 32.
svn:r12087
|
|
|
|
|
|
|
| |
Change meaning of "freefn" argument to smartlist_uniq so that we can remove duplicates from a list without freeing them.
svn:r12053
|
|
|
|
|
|
|
| |
Learn the difference between "mismatched vote digest" and "mismatched vote times": the latter is more informative.
svn:r12049
|
|
|
|
|
|
|
| |
oprofile was telling me that a fair bit of our time in openssl was spent in base64_decode, so replace base64_decode with an all-at-once fairly optimized implementation. For decoding keys and digests, it seems 3-3.5x faster than calling out to openssl. (Yes, I wrote it from scratch.)
svn:r12002
|
|
|
|
|
|
|
| |
Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff".
svn:r12000
|
|
|
|
|
|
|
| |
Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs.
svn:r11946
|
|
|
|
|
|
|
| |
More annotated-store work: handle annotations in lists correctly. Add ability to prepend annotations to a routerdesc (and to every rtouredesc in a list), while verifying that the routerdesc is not already annotated.
svn:r11665
|
|
|
|
|
|
|
| |
Backend for descriptor annotations: parse annotations as keywords; only allow them to appear in the cache; do not serve them as part of the descriptor if we are a dirserver. Still need mechanism to set annotations. Still need to rename cache file.
svn:r11654
|
|
|
|
|
|
|
| |
V3 authority work: fetch missing votes and/or signatures as needed.
svn:r11575
|
|
|
|
|
|
|
| |
Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv.
svn:r11538
|
|
|
|
|
|
|
| |
Fix unit tests for rendezvous descriptor parsing.
svn:r11516
|
|
|
|
|
|
|
|
| |
them anyway, and the code has probably rotted by now. Based on
patch from Karsten Loesing.
svn:r11496
|
|
|
|
|
|
|
| |
step of integrating his new hidden service stuff
svn:r11489
|
|
|
|
|
|
|
|
|
| |
BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
were below a threshold. Now they only look at BandwidthRate and
RelayBandwidthRate.
svn:r11465
|
|
|
|
|
|
|
| |
Unify all of the divergent median/nth-percentile code in container.[ch]
svn:r11457
|
|
|
|
|
|
|
| |
Complete implementation of proposal 104: remove bandwidth history lines from router descriptors.
svn:r11434
|
|
|
|
|
|
|
| |
Remove some needless complexity from the code to add signatures to a consensus: previously, we had a path to add new signatures, and a second path to replace signatures. But the second path sufficed as a common case, and the code isn't invoked nearly enough to justify the optimization of having the first path.
svn:r11433
|
|
|
|
|
|
|
| |
Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate.
svn:r11299
|
|
|
|
|
|
|
| |
Long overdue test.c refactoring: add --warn/--notice/--info/--debug command line options to set logging levels, and let the user specify which tests to run from the commmand line.
svn:r11167
|
|
|
|
|
|
|
| |
Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly.
svn:r11155
|
|
|
|
|
|
|
| |
Fix consensus signatures: regenerate the entire signature list when we get a new signature, rather than just appending the new signature. This lets us tentatively accept weird signatures, since we can replace them with better ones later.
svn:r11122
|
|
|
|
|
|
|
| |
Add unit tests for median functions; enforce sensible ranges for intervals and delays.
svn:r11121
|
|
|
|
|
|
|
| |
Try to avoid adding duplicate signatures to a consensus.
svn:r11105
|
|
|
|
|
|
|
| |
Include fewer redundant headers; use the compiler search paths better.
svn:r11060
|
|
|
|
|
|
|
| |
ratchet down the time spent on threading tests
svn:r11043
|
|
|
|
|
|
|
| |
Unit tests and debugging for detached signature manipulation.
svn:r11015
|
|
|
|
|
|
|
| |
Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build.
svn:r11011
|
|
|
|
| |
svn:r11003
|
|
|
|
|
|
|
| |
Add a bit-array type with reasonably fast inline functions.
svn:r10938
|
|
|
|
|
|
|
| |
Code to add signatures to a pending consensus directory.
svn:r10936
|
|
|
|
|
|
|
| |
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks.
svn:r10888
|
|
|
|
|
|
|
| |
Actually, OSX (and some BSDs) accept [f:f:f:f:f:f:f:f::] as a perfectly fine ipv6 address.
svn:r10887
|
|
|
|
|
|
|
| |
Same as the last patch, only more so.
svn:r10886
|
|
|
|
|
|
|
| |
OSX writes ::3 as ::0.0.0.3; choose a less ambiguous example.
svn:r10885
|
|
|
|
|
|
|
| |
Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time.
svn:r10881
|
|
|
|
|
|
|
| |
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
|
|
|
|
|
|
|
| |
Some temporary output to try to figure out where bsd thread unit tests are going wrong
svn:r10728
|
|
|
|
|
|
|
| |
allow test_threads() to time out
svn:r10711
|
|
|
|
|
|
|
| |
Split "Util" tests into subgroups so I can see why freebsd trunk is failing.
svn:r10710
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
document some functions
svn:r10637
|
|
|
|
|
|
|
| |
Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be.
svn:r10634
|
|
|
|
|
|
|
| |
Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses.
svn:r10597
|