aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
Commit message (Collapse)AuthorAge
* Create routerparse.hSebastian Hahn2010-07-27
|
* Create rephist.hSebastian Hahn2010-07-27
|
* Create policies.hSebastian Hahn2010-07-27
|
* Create networkstatus.hSebastian Hahn2010-07-27
|
* Create microdesc.hSebastian Hahn2010-07-27
|
* Create dirvote.hSebastian Hahn2010-07-27
|
* Create dirserv.hSebastian Hahn2010-07-27
|
* Create config.hSebastian Hahn2010-07-27
|
* Create rendcommon.hSebastian Hahn2010-07-27
|
* Create routerlist.hSebastian Hahn2010-07-27
|
* Create router.hSebastian Hahn2010-07-27
|
* Merge branch 'fix_routerparse_bug'Nick Mathewson2010-02-28
|\
| * Fix a consensus-extension bug found by outofwordsNick Mathewson2010-02-27
| | | | | | | | | | | | | | | | | | | | When the bandwidth-weights branch added the "directory-footer" token, and began parsing the directory footer at the first occurrence of "directory-footer", it made it possible to fool the parsing algorithm into accepting unsigned data at the end of a consensus or vote. This patch fixes that bug by treating the footer as starting with the first "directory-footer" or the first "directory-signature", whichever comes first.
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\ \ | |/ |/| | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
| |
* | fix some wide lines in routerparse.cNick Mathewson2010-02-27
| |
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\| | | | | | | | | | | Conflicts: ChangeLog src/or/routerparse.c
| * Properly handle non-terminated stringsSebastian Hahn2010-02-27
| | | | | | | | | | | | | | | | Treat strings returned from signed_descriptor_get_body_impl() as not NUL-terminated. Since the length of the strings is available, this is not a big problem. Discovered by rieo.
| * Code to parse and access network parameters.Nick Mathewson2009-10-14
| | | | | | | | | | Partial backport of 381766ce4b1145460. Partial backport of 56c6d78520a98fb64.
* | Don't segfault when checking the consensusSebastian Hahn2010-02-26
| |
* | Don't believe unauthenticated info in a consensus.Nick Mathewson2010-02-26
| | | | | | | | | | | | Don't allow anything but directory-signature tokens in a consensus after the first directory-signature token. Fixes bug in bandwidth-weights branch. Found by "outofwords."
* | Fix 64-bit printf issues in consensus-bw-weights5-merge.Nick Mathewson2010-02-25
| | | | | | | | | | | | | | | | For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the compiler 'printf("%lld", (long long int)x);' or else it doesn't believe the types match. This is why we added U64_PRINTF_ARG; it looks like we needed an I64_PRINTF_ARG too.
* | Clearly mark directory footer so we parse the new weight line.Mike Perry2010-02-22
| |
* | Add parsing+verification for bw weight values.Mike Perry2010-02-22
| |
* | network-status-version must come first in a vote/consensusSebastian Hahn2010-02-22
| | | | | | | | | | | | | | Spec conformance issue: The code didn't force the network-status-version token to be the first token in a v3 vote or consensus. Problem discovered by Parakeep.
* | Remove duplicate words and a duplicate newline.Karsten Loesing2009-12-18
| |
* | Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson2009-12-12
| |
* | *_free functions now accept NULLSebastian Hahn2009-12-12
| | | | | | | | | | | | | | | | Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
* | Document the microdescriptor code better.Nick Mathewson2009-10-18
| |
* | Parse detached signatures and microdesc networkstatuses correctly.Nick Mathewson2009-10-15
| |
* | Parse detached signature documents with multiple flavors and algorithms.Nick Mathewson2009-10-15
| |
* | Refactor consensus signature storage for multiple digests and flavors.Nick Mathewson2009-10-15
| | | | | | | | | | | | | | | | 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>.
* | Code to generate, store, and parse microdescriptors and consensuses.Nick Mathewson2009-10-15
| | | | | | | | | | The consensus documents are not signed properly, not served, and not exchanged yet.
* | Add ability to parse one or more m line from a vote.Nick Mathewson2009-10-15
| |
* | Allow signed data to include other hashes later.Nick Mathewson2009-10-15
| | | | | | | | | | | | Previously, we insisted that a valid signature must be a signature of the expected digest. Now we accept anything that starts with the expected digest. This lets us include another digest later.
* | Signature-checking code can handle longer digests.Nick Mathewson2009-10-15
| |
* | Make signature-generation code handle different key and digest lengths.Nick Mathewson2009-10-15
| |
* | Merge commit 'sebastian/specconformance'Roger Dingledine2009-09-16
|\ \
| * | Fix a spec conformance issue when parsing a ns voteSebastian Hahn2009-09-14
| | | | | | | | | | | | | | | | | | | | | A vote may only contain exactly one signature. Make sure we reject votes that violate this. Problem found by Rotor, who also helped writing the patch. Thanks!
* | | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-15
|\ \ \ | | |/ | |/| | | | | | | Resolved conflicts in: src/or/circuitbuild.c
| * | Fix a memory leak when parsing a nsSebastian Hahn2009-09-14
| | | | | | | | | | | | | | | | | | | | | | | | Adding the same vote to a networkstatus consensus leads to a memory leak on the client side. Fix that by only using the first vote from any given voter, and ignoring the others. Problem found by Rotor, who also helped writing the patch. Thanks!
* | | Implement proposal 167: Authorities vote on network parameters.Nick Mathewson2009-09-14
| |/ |/| | | | | | | | | | | | | This code adds a new field to vote on: "params". It consists of a list of sorted key=int pairs. The output is computed as the median of all the integers for any key on which anybody voted. Improved with input from Roger.
* | Fix compile warnings on Snow LeopardSebastian Hahn2009-09-01
| | | | | | | | Big thanks to nickm and arma for helping me with this!
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-01
|\|
| * Fix compile warnings on Snow LeopardSebastian Hahn2009-09-01
| | | | | | | | Big thanks to nickm and arma for helping me with this!
* | When Tor fails to parse a descriptor of any kind, dump it to disk.Karsten Loesing2009-08-26
| |
* | Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson2009-08-26
|\ \
| * | Include contents of *-stats files in descriptor.Karsten Loesing2009-08-17
| |/
* | Add the first 8 bytes of the git commit digest to our versions.Nick Mathewson2009-08-21
| | | | | | | | | | | | | | Note that unlike subversion revision numbers, it isn't meaningful to compare these for anything but equality. We define a sort-order anyway, in case one of these accidentally slips into a recommended-versions list.
* | Implement measured bw parsing + unit tests.Mike Perry2009-08-06
|/