aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
Commit message (Expand)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 outofwords•••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. Nick Mathewson2010-02-27
* | Merge remote branch 'origin/maint-0.2.1'•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2010-02-27
|\ \ | |/ |/|
| * 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'•••Conflicts: ChangeLog src/or/routerparse.c Nick Mathewson2010-02-27
|\|
| * Properly handle non-terminated strings•••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. Sebastian Hahn2010-02-27
| * Code to parse and access network parameters.•••Partial backport of 381766ce4b1145460. Partial backport of 56c6d78520a98fb64. Nick Mathewson2009-10-14
* | Don't segfault when checking the consensusSebastian Hahn2010-02-26
* | Don't believe unauthenticated info in a consensus.•••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." Nick Mathewson2010-02-26
* | Fix 64-bit printf issues in consensus-bw-weights5-merge.•••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. Nick Mathewson2010-02-25
* | 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/consensus•••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. Sebastian Hahn2010-02-22
* | 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 NULL•••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. Sebastian Hahn2009-12-12
* | 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.•••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>. Nick Mathewson2009-10-15
* | Code to generate, store, and parse microdescriptors and consensuses.•••The consensus documents are not signed properly, not served, and not exchanged yet. Nick Mathewson2009-10-15
* | Add ability to parse one or more m line from a vote.Nick Mathewson2009-10-15
* | Allow signed data to include other hashes later.•••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. Nick Mathewson2009-10-15
* | 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 vote•••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! Sebastian Hahn2009-09-14
* | | Merge commit 'origin/maint-0.2.1'•••Resolved conflicts in: src/or/circuitbuild.c Nick Mathewson2009-09-15
|\ \ \ | | |/ | |/|
| * | Fix a memory leak when parsing a ns•••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! Sebastian Hahn2009-09-14
* | | Implement proposal 167: Authorities vote on network parameters.•••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. Nick Mathewson2009-09-14
| |/ |/|
* | Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this! Sebastian Hahn2009-09-01
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-01
|\|
| * Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this! Sebastian Hahn2009-09-01
* | 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.•••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. Nick Mathewson2009-08-21
* | Implement measured bw parsing + unit tests.Mike Perry2009-08-06
|/