aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
AgeCommit message (Collapse)Author
2009-11-17only complain when rejecting a descriptor if it has contact infoRoger Dingledine
2009-10-26Fix dead code found by Coverity (CID 419).Nick Mathewson
This was left over from an early draft of the microdescriptor code; it began to populate the signatures array of a networkstatus vote, even though there's no actual need to do that for a vote.
2009-10-18Add functions to serve microdescs and flavored consensuses.Nick Mathewson
2009-10-18Document the microdescriptor code better.Nick Mathewson
2009-10-15Actually remember all the consensus types when we are done generating them.Nick Mathewson
2009-10-15Implement signatures for microdesc consensuses right.Nick Mathewson
This means we need to handle the existence of multiple flavors of signature in a detached signatures document, generate them correctly, and so on.
2009-10-15Refactor consensus signature storage for multiple digests and flavors.Nick Mathewson
This patch introduces a new type called document_signature_t to represent the signature of a consensus document. Now, each consensus document can have up to one document signature per voter per digest algorithm. Also, each detached-signatures document can have up to one signature per <voter, algorithm, flavor>.
2009-10-15Code to generate, store, and parse microdescriptors and consensuses.Nick Mathewson
The consensus documents are not signed properly, not served, and not exchanged yet.
2009-10-15Make signature-generation code handle different key and digest lengths.Nick Mathewson
2009-10-10Don't set unreachable from dirvote unless we've been running a while.Nick Mathewson
This is a possible fix for bug 1023, where if we vote (or make a v2 consensus networkstatus) right after we come online, we can call rep_hist_note_router_unreachable() on every router we haven't connected to yet, and thereby make all their uptime values reset.
2009-09-30Dir auths reject relays running < Tor 0.1.2.14Roger Dingledine
Directory authorities now reject Tor relays with versions less than 0.1.2.14. This step cuts out four relays from the current network, none of which are very big.
2009-09-23downgrade a log notice at startupRoger Dingledine
This was the only log notice that happened during other tor invocations, like --verify-config and --list-fingerprint. Plus, now we think it works, so no need to hear about it.
2009-09-15some cleanups:Sebastian Hahn
documentation fix for get_uint64 remove extra "." from a log line fix a long line
2009-09-15ConsensusParams config option lists key=value paramsRoger Dingledine
finishes the authority-operator interface side of proposal 167.
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-08-14Merge commit 'mikeperry/bandwidth-voting-final'Nick Mathewson
2009-08-12Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-08-11Fix possible segmentation fault on directory authorities.Karsten Loesing
The more verbose logs that were added in ee58153 also include a string that might not have been initialized. This can lead to segfaults, e.g., when setting up private Tor networks. Initialize this string with NULL.
2009-08-09Switch over to tor_strtok_r instead of strtok_r.Mike Perry
2009-08-09Fix issues found by Nick in code review.Mike Perry
2009-08-06Display consensus bandwidth to the control port.Mike Perry
Also div vote and other bandwidth by 1000, not 1024.
2009-08-06Implement measured bw parsing + unit tests.Mike Perry
2009-07-13remove experimental 'getinfo unregistered-servers-'Roger Dingledine
it never really worked, and hasn't been used for years.
2009-06-30Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-06-30the second piece of bug 969 fixingRoger Dingledine
whenever we remove a relay from the main routerlist, tell the rephist module that it's no longer running.
2009-06-30the first piece of bug 969 fixingRoger Dingledine
tell the rephist module that a given relay is down whenever we determine that it's down, not just when we thought it used to be up.
2009-05-27Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-25Remove support for events without the extended format or long names.Nick Mathewson
Supporting the old formats made our code complex; running without them has been discouraged since 0.2.1.x.
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-04-12Raise the minimum bandwidth to be a relay from 20000 bytes to 20480Roger Dingledine
bytes (aka 20KB/s), to match our documentation. Also update directory authorities so they always assign the Fast flag to relays with 20KB/s of capacity. Now people running relays won't suddenly find themselves not seeing any use, if the network gets faster on average. svn:r19305
2009-04-01log more verbosely when we accept or decline a router descriptor,Roger Dingledine
to help track whether we received them when a relay operator claims they got sent. svn:r19213
2009-01-06Make dirserv_get_routerdesc_fingerprints() treat extrainfos with ↵Nick Mathewson
send_unencrypted==0 correctly. Irrelevant, since we will soon never send them at all. svn:r17953
2009-01-05Bridge relays that had DirPort set to 0 would stop fetchingRoger Dingledine
descriptors shortly after startup, and then briefly resume after a new bandwidth test and/or after publishing a new bridge descriptor. Bridge users that try to bootstrap from them would get a recent networkstatus but would get descriptors from up to 18 hours earlier, meaning most of the descriptors were obsolete already. Reported by Tas; bugfix on 0.2.0.13-alpha. svn:r17920
2009-01-04Another round of downgrading removing or postponing XXXX021 issues. Some ↵Nick Mathewson
remain, though. svn:r17888
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-29Spec compliance: if weighted MTBF of a router is at least 5 days, always ↵Nick Mathewson
vote it as Stable. svn:r17821
2008-12-26Add more missing documentation, and correct an error in container.c ↵Nick Mathewson
documentation: Don't introduce two parameters called n when you're calling an algorithm O(n). svn:r17783
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Documentation and conformance for WRA_* returns.Nick Mathewson
shahn: "Add some documentation for the WRA_* family of functions, also make sure that (hopefully) all functions that return was_router_added_t don't return ints directly and that they don't refer to integers in their documentation anymore." svn:r17731
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-22the default should not be the notify the poster, unless somethingRoger Dingledine
more extreme happens. the default should be to be quiet unless something more extreme happens. at least, this doesn't generate complaints anymore. perhaps that means it is working better? :) svn:r17724
2008-12-22Yet still more propagating of things that need to be was_router_added_t now.Nick Mathewson
svn:r17722
2008-12-22More propagating of things that need to be was_router_added_t now.Nick Mathewson
svn:r17721
2008-12-22WRA_MORE_SEVERE is not WRA_GET_MORE_SEVERE.Nick Mathewson
svn:r17720
2008-12-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686