aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_parsecommon.c
AgeCommit message (Collapse)Author
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-12-18Use 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-10-25Add a couple more checks to test_parsecommon.cNick Mathewson
These checks should make coverity stop giving us a "dereference before null check" warning here.
2018-10-16One testcase for annotation handling in tokenize_string()rl1987
2018-10-16Test AT_END checking in tokenize_string()rl1987
2018-10-16Add testcase for too many elements in tokenize_string() inputrl1987
2018-10-16Add testcase for too few elements in tokenize_string() inputrl1987
2018-10-16Unit-test multiple line parsing with tokenize_string()rl1987
2018-10-16Unit-test some error conditions in get_next_token()rl1987
2018-10-16Test object parsing in get_next_token()rl1987
2018-10-16Fix memory management in test_parsecommon_get_next_token_parse_keysrl1987
2018-10-16Test RSA private key parsing with get_next_token()rl1987
2018-10-16Test-case for public key parsing using get_next_token()rl1987
2018-10-16Test argument concatenation in get_next_token()rl1987
2018-10-16First testcase for get_next_token()rl1987
2018-10-16Add new source file to test targetrl1987