Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-09 | Merge branch 'ticket28856_v2' | Nick Mathewson | |
2019-01-03 | Merge branch 'ticket28852' | Nick Mathewson | |
2018-12-18 | Avoid a needless decode/re-encode step in assigning onion keys | Nick Mathewson | |
Previously we had decoded the asn.1 to get a public key, and then discarded the asn.1 so that we had to re-encode the key to store it in the onion_pkey field of a microdesc_t or routerinfo_t. Now we can just do a tor_memdup() instead, which should be loads faster. | |||
2018-12-18 | Use a single path for all PEM-like objects in get_next_token() | Nick Mathewson | |
Previously, we would decode the PEM wrapper for keys twice: once in get_next_token, and once later in PEM decode. Now we just do all of the wrapper and base64 stuff in get_next_token, and store the base64-decoded part in the token object for keys and non-keys alike. This change should speed up parsing slightly by letting us skip a bunch of stuff in crypto_pk_read_*from_string(), including the tag detection parts of pem_decode(), and an extra key allocation and deallocation pair. Retaining the base64-decoded part in the token object will allow us to speed up our microdesc parsing, since it is the asn1 portion that we actually want to retain. | |||
2018-12-17 | Replace use of strcmp_len() with new mem_eq_token(). | Nick Mathewson | |
The strcmp_len() function was somewhat misconceived, since we're only using it to test whether a length+extent string is equal to a NUL-terminated string or not. By simplifying it and making it inlined, we should be able to make it a little faster. (It *does* show up in profiles.) Closes ticket 28856. | |||
2018-12-14 | Remove a needless memset() in get_token_arguments() | Nick Mathewson | |
I believe we originally added this for "just in case" safety, but it isn't actually needed -- we never copy uninitialized stack here. What's more, this one memset is showing up on our startup profiles, so we ought to remove it. Closes ticket 28852. | |||
2018-12-14 | Use 25% less RAM for base64-encoded directory objects | Nick Mathewson | |
We were allocating N bytes to decode an N-byte base64 encoding, when 3N/4 would have been enough. | |||
2018-11-25 | Vote on the StaleDesc flag from prop293 | Nick Mathewson | |
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus. | |||
2018-11-19 | Merge branch 'ticket27359_v2_squashed' | Nick Mathewson | |
2018-11-19 | Use nodefamily_t in microdescriptors. | Nick Mathewson | |
Closes ticket 27359. | |||
2018-10-31 | Merge branch 'networkstatus_mmap' into networkstatus_mmap_merge | Nick Mathewson | |
2018-10-25 | Merge branch 'bug28202_033' into bug28202_035 | Nick Mathewson | |
2018-10-14 | Merge branch 'bug27772_squashed' | Nick Mathewson | |
2018-10-01 | Remove versions.h include from routerparse.h | Nick Mathewson | |
2018-10-01 | Remove unused headers from routerparse.c | Nick Mathewson | |
2018-10-01 | Extract addr-policy parsing code. | Nick Mathewson | |
2018-10-01 | Move summarize_protover_flags to versions.c | Nick Mathewson | |
2018-10-01 | extract networkstatus parsing to its own file. | Nick Mathewson | |
2018-10-01 | Pull detached-signatures code into dirauth. | Nick Mathewson | |
2018-10-01 | Split microdescriptor parser into its own file. | Nick Mathewson | |
2018-10-01 | Remove addr_policy_assert_ok() as unused | Nick Mathewson | |
2018-10-01 | Remove dump_distinct_digest_count() | Nick Mathewson | |
It was disabled-by-default for ages, and it no longer compiles. I think it's safe to call it obsolete. | |||
2018-10-01 | Remove router_get_dir_hash as unused. | Nick Mathewson | |
2018-10-01 | Move v2 hs parsing into feature/rend | Nick Mathewson | |
2018-10-01 | Split the authority-cert and signature/hash code from routerparse | Nick Mathewson | |
2018-10-01 | Extract the version-managing code from routerparse.c | Nick Mathewson | |
Leave the versions.h include in routerparse.h for now; I'll remove it later. | |||
2018-10-01 | Extract logic for dumping unparseable junk from routerparse.c | Nick Mathewson | |
2018-10-01 | Move routerparse and parsecommon to their own module. | Nick Mathewson | |