| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | netdoc: Refactor iteration over tokens. | Nick Mathewson | 2020-06-03 | 4 | -22/+52 | |
| | | | | | | I want the "peekable iterator" type to be passed around a lot, and it needs to have some way to get at the string that's used with it. | |||||
| * | Netdoc: tweak definition for keywords to accommodate annotations | Nick Mathewson | 2020-05-27 | 4 | -7/+23 | |
| | | | | | | | The macro can now define annotations that don't count as regular keywords. Additionally, the Keyword trait is now tweaked to take advantage of the fact that every Keyword is Copy. | |||||
| * | llcrypto: test vectors for sha2 | Nick Mathewson | 2020-05-21 | 1 | -2/+44 | |
| | | ||||||
| * | netdoc: exit an object if we encounter non-base64. | Nick Mathewson | 2020-05-20 | 1 | -0/+24 | |
| | | | | | | This way, an unterminated base64 object doesn't "eat" the whole rest of something we're trying to parse. | |||||
| * | netdoc: tokenizer should always consume bytes if they exist. | Nick Mathewson | 2020-05-20 | 1 | -7/+14 | |
| | | | | | | | | Also document that it always consumes a positive integer number of lines. This is part of an effort to improve error recovery. | |||||
| * | netdoc: Teach tokenizer about annotations. | Nick Mathewson | 2020-05-19 | 2 | -11/+27 | |
| | | | | | | | I'm not sure that annotations are a feature I want to keep long-term, but for now it would be useful if this code can also read Tor's file formats for network directories. | |||||
| * | netdoc: Add convenience methods for pausing iterators | Nick Mathewson | 2020-05-19 | 2 | -11/+39 | |
| | | ||||||
| * | netdoc: move keyword into Item type. | Nick Mathewson | 2020-05-19 | 5 | -51/+61 | |
| | | | | | This saves us from having to check specific strings in most cases. | |||||
| * | netdoc: Extract keyword into its own file. | Nick Mathewson | 2020-05-19 | 7 | -46/+50 | |
| | | ||||||
| * | start a test for microdesc parsing. | Nick Mathewson | 2020-05-18 | 2 | -0/+21 | |
| | | ||||||
| * | tor-netdoc: add a peek() method to util::Pausable. | Nick Mathewson | 2020-05-16 | 1 | -0/+19 | |
| | | ||||||
| * | Implement microdescriptor parsing. | Nick Mathewson | 2020-05-15 | 7 | -1/+200 | |
| | | | | | | Additionally, move and refactor related types to reduce friction for microdescriptor parsing implementation. | |||||
| * | tor-netdoc: Move RelayFamily into its own module. | Nick Mathewson | 2020-05-15 | 3 | -22/+30 | |
| | | ||||||
| * | tor-proto: use caret_int!() for cell and relay commands. | Nick Mathewson | 2020-05-15 | 4 | -175/+157 | |
| | | ||||||
| * | tor_cert: use caret_int!() to make real types for cert elements | Nick Mathewson | 2020-05-15 | 5 | -68/+75 | |
| | | ||||||
| * | Add a new caret_int!() macro for use with integer-wrapping types | Nick Mathewson | 2020-05-15 | 2 | -119/+202 | |
| | | | | | | | Unlike caret_enum!, these types are for use with things like cell commands or certificate types, where the entire space of integer values is possible, and only some are recognized. | |||||
| * | tor-netdoc: extract fingerprint logic from routerdesc.rs | Nick Mathewson | 2020-05-15 | 2 | -20/+57 | |
| | | ||||||
| * | netdoc: Improve parsing implementation for RelayFamily. | Nick Mathewson | 2020-05-15 | 1 | -5/+5 | |
| | | ||||||
| * | netdoc: Relax error types that can be used when parsing. | Nick Mathewson | 2020-05-15 | 2 | -7/+34 | |
| | | ||||||
| * | netdoc: teach MaybeItem about parse_args_as_str(). | Nick Mathewson | 2020-05-15 | 2 | -13/+13 | |
| | | | | | This simplifies a couple of places in routerdesc parsing. | |||||
| * | tor-netdoc: Extract family parsing into its own function. | Nick Mathewson | 2020-05-15 | 2 | -20/+25 | |
| | | ||||||
| * | Extract RelayPlatform parsing. | Nick Mathewson | 2020-05-15 | 1 | -13/+17 | |
| | | ||||||
| * | netdoc: get positions right in version parsing. | Nick Mathewson | 2020-05-15 | 1 | -6/+6 | |
| | | ||||||
| * | netdoc: use improved API for parsing ed25519 certificates. | Nick Mathewson | 2020-05-15 | 3 | -34/+80 | |
| | | ||||||
| * | netdoc: use new router object parsing API for RSA public keys. | Nick Mathewson | 2020-05-15 | 1 | -28/+12 | |
| | | ||||||
| * | Netdoc: better parsing for objects. | Nick Mathewson | 2020-05-15 | 2 | -0/+63 | |
| | | | | | | If I'm right this will let us simplify our code for parsing things from directory objects by a lot. | |||||
| * | Remove 'idx' field from BadArgument. | Nick Mathewson | 2020-05-15 | 4 | -13/+11 | |
| | | | | | | Having byte-level positions means we don't need to complain about particular arguments. | |||||
| * | netdoc: remove ArgError. | Nick Mathewson | 2020-05-15 | 2 | -44/+23 | |
| | | ||||||
| * | netdoc: Make args_as_vec() non-public. | Nick Mathewson | 2020-05-13 | 1 | -1/+1 | |
| | | | | | It returns a Ref, and that's kinda implementation-dependent. | |||||
| * | Improve reported positions of parsing errors. | Nick Mathewson | 2020-05-13 | 2 | -5/+39 | |
| | | ||||||
| * | netdoc: remove the Item::off field as redundant | Nick Mathewson | 2020-05-13 | 3 | -11/+73 | |
| | | | | | | Now that we are okay with using slice offset pointer math, we can remove the 'off' field from Item entirely. | |||||
| * | netdoc: rename Position to Pos. | Nick Mathewson | 2020-05-13 | 4 | -55/+55 | |
| | | | | | We use this type a lot, so let's give it a short name. | |||||
| * | netdoc: use a more flexible error-position type based on raw pointers | Nick Mathewson | 2020-05-13 | 1 | -1/+32 | |
| | | | | | | Astonishingly, this is safe, though I wish that it were impossible to use mismatched strings. | |||||
| * | netdoc: Add an "at()" method to replace an error's location. | Nick Mathewson | 2020-05-13 | 1 | -0/+9 | |
| | | ||||||
| * | routerdesc: enforce position of identity-ed25519. | Nick Mathewson | 2020-05-12 | 2 | -11/+19 | |
| | | ||||||
| * | tor-proto: Simplify ct::lookup API. | Nick Mathewson | 2020-05-10 | 2 | -10/+7 | |
| | | ||||||
| * | One more disclaimer in the README | Nick Mathewson | 2020-05-09 | 1 | -0/+8 | |
| | | ||||||
| * | improve the README a little | Nick Mathewson | 2020-05-09 | 1 | -3/+27 | |
| | | ||||||
| * | Document most of tor-proto | Nick Mathewson | 2020-05-09 | 11 | -12/+239 | |
| | | | | | (except for the worst parts that need refactoring the most) | |||||
| * | tor-proto: Fix a logic error in KDF-TOR implementation. | Nick Mathewson | 2020-05-09 | 1 | -2/+2 | |
| | | ||||||
| * | Note a type that should get moved some day | Nick Mathewson | 2020-05-09 | 1 | -0/+2 | |
| | | ||||||
| * | tor-netdoc: require documentation, and fill in final missing docs | Nick Mathewson | 2020-05-09 | 4 | -33/+42 | |
| | | ||||||
| * | Netdoc: allow doc comments and visibility modifier in decl_keyword! | Nick Mathewson | 2020-05-09 | 2 | -4/+6 | |
| | | ||||||
| * | netdoc: document routerdoc.rs | Nick Mathewson | 2020-05-09 | 1 | -34/+112 | |
| | | ||||||
| * | Netdoc: remove dead code or annotate it as allowed. | Nick Mathewson | 2020-05-09 | 3 | -19/+24 | |
| | | ||||||
| * | netdoc: Document rules.rs, and refactor slightly. | Nick Mathewson | 2020-05-09 | 3 | -18/+94 | |
| | | ||||||
| * | netdoc: Improved error type for Section::GetRequired. | Nick Mathewson | 2020-05-09 | 1 | -2/+5 | |
| | | ||||||
| * | Make the members of TokenFmt private, and simplify the API in the process. | Nick Mathewson | 2020-05-09 | 2 | -44/+44 | |
| | | ||||||
| * | Move Item verification to be a method of TokenFmt. | Nick Mathewson | 2020-05-09 | 2 | -37/+44 | |
| | | ||||||
| * | Move MaybeItem into tokenize.rs | Nick Mathewson | 2020-05-09 | 2 | -39/+41 | |
| | | ||||||
