aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
AgeCommit message (Collapse)Author
2011-05-15Fixup whitespace issues from 3122 commitNick Mathewson
2011-05-11Hand-conversion and audit phase of memcmp transitionNick Mathewson
Here I looked at the results of the automated conversion and cleaned them up as follows: If there was a tor_memcmp or tor_memeq that was in fact "safe"[*] I changed it to a fast_memcmp or fast_memeq. Otherwise if there was a tor_memcmp that could turn into a tor_memneq or tor_memeq, I converted it. This wants close attention. [*] I'm erring on the side of caution here, and leaving some things as tor_memcmp that could in my opinion use the data-dependent fast_memcmp variant.
2011-05-11Automated conversion of memcmp to tor_memcmp/tor_mem[n]eqNick Mathewson
This commit is _exactly_ the result of perl -i -pe 's/\bmemcmp\(/tor_memcmp\(/g' src/*/*.[ch] perl -i -pe 's/\!\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*==\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*!=\s*tor_memcmp\(/tor_memneq\(/g' src/*/*.[ch] git checkout src/common/di_ops.[ch] git checkout src/or/test.c git checkout src/common/test.h
2011-01-03Bump copyright statements to 2011Nick Mathewson
2010-02-27Update Tor Project copyright yearsNick Mathewson
2009-05-28Fixes to spelling fixes. Thanks, Roger!Nick Mathewson
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-04Update copyright to 2009.Karsten Loesing
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-02Apply rovv's patch for bug 864: avoid null error on detached signature ↵Nick Mathewson
handling failure. svn:r17446
2008-11-11Be even _more_ careful when signatures are bogus.Nick Mathewson
svn:r17252
2008-11-11Only replace the detached signatures object when we actually added or ↵Nick Mathewson
replaced at least one signature. svn:r17250
2008-11-11Fix from rovv: when adding a detached signature, do not automatically assume ↵Nick Mathewson
it is good just because we are adding it. We might also be adding it because it was the first signature we saw for a given voter. svn:r17248
2008-11-07fix up signs in r17208Nick Mathewson
svn:r17211
2008-11-07patch from karsten to not use or accept expired certs. fixes bug 851. Nick Mathewson
svn:r17208
2008-09-29v3 authorities write down all the votes they used for the consensusRoger Dingledine
to the datadir, for debugging. svn:r17008
2008-09-10Fix some apparent leaks in voting. If authorities suddenly start ↵Nick Mathewson
segfaulting, this could be a patch to look harder at. svn:r16830
2008-09-05It is probably some kind of misdeed to say for (i=0;i<2;++i) { A=i?x:y; ↵Nick Mathewson
foo(bar(A)); } rather than foo(bar(x)); foo(bar(y)); . Also, it can confuse tools. svn:r16777
2008-08-17Two consensus fixes: always reset has_* to 0, and use a buffer of proper ↵Peter Palfrader
length for exitsummaries. svn:r16575
2008-08-14spacemanPeter Palfrader
svn:r16555
2008-08-14Add exitpolicy summaries to the consensusPeter Palfrader
svn:r16554
2008-08-14Add bw to consensusPeter Palfrader
svn:r16551
2008-08-14Do not show policy and bw in v2 statusesPeter Palfrader
svn:r16537
2008-08-05Document that we break ties in favor of smaller SD digest if there are still ↵Peter Palfrader
ties after comparing the published timestamp svn:r16432
2008-07-24 r17337@aud-055: nickm | 2008-07-24 10:17:43 +0200Nick Mathewson
Refactor the is_vote field of networkstatus_t to add a third possibility ("opinion") in addition to vote and opinion. First part of implementing proposal 147. svn:r16166
2008-06-20Added prefixes to testing-network-only configuration options.Karsten Loesing
svn:r15375
2008-06-18check-spaces, fix a typoRoger Dingledine
svn:r15355
2008-06-14Patch from Karsten to implement proposal 135 ("Testing Tor Networks").Nick Mathewson
svn:r15253
2008-06-13implement proposal 138: removing down routers from consensusPeter Palfrader
svn:r15230
2008-05-12 r19694@catbus: nickm | 2008-05-12 00:21:37 -0400Nick Mathewson
Add unit tests for last patch; make it more testable; fix a bug or two. svn:r14586
2008-05-12 r19690@catbus: nickm | 2008-05-11 22:13:31 -0400Nick Mathewson
Implement a proposal to let a directory authority migrate its identity key without ceasing to sign consensuses. svn:r14584
2008-04-17 r15230@tombo: nickm | 2008-04-17 16:18:08 -0400Nick Mathewson
Do not allocate excess space for named_flag and unnamed_flag in dirvote.c. Fixes bug 662. Not a dangerous bug: sizeof(int*) is at least as big as sizeof(int) everywhere. svn:r14391
2008-02-22 r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson
More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
2008-02-20 r18272@catbus: nickm | 2008-02-20 18:20:33 -0500Nick Mathewson
add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
2008-02-20 r18255@catbus: nickm | 2008-02-20 11:44:55 -0500Nick Mathewson
Add asserts and refactor some comparisons in order to fix some veracode-identified issues. Note a bug in buffers.c svn:r13618
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06 r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson
Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
2008-02-06misc small fixesRoger Dingledine
svn:r13403
2008-02-05 r17914@catbus: nickm | 2008-02-05 16:12:16 -0500Nick Mathewson
Remove or downgrade some XXX020 items. svn:r13388
2008-02-05 r17911@catbus: nickm | 2008-02-05 15:53:22 -0500Nick Mathewson
Fix a potential bug that would make authorities fail to vote under bizarre circumstances that probably never happened. svn:r13385
2008-02-05 r17909@catbus: nickm | 2008-02-05 14:48:22 -0500Nick Mathewson
As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete. svn:r13383
2008-01-24Some log messages during dirvoting - maybe downgrade to debug if you wantPeter Palfrader
svn:r13261
2008-01-24patch from karsten to make vote logs more usefulRoger Dingledine
svn:r13260
2008-01-23Some people still think letters fall off the side of the code if they go ↵Peter Palfrader
farther than 80 chars svn:r13242
2008-01-23Log where uploaded consensus signatures come fromPeter Palfrader
svn:r13241
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-09Jan 08 19:55:01.865 [notice] Added -2 pending signatures while building ↵Roger Dingledine
consensus. svn:r13080