aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_parsecommon.c
AgeCommit message (Collapse)Author
2023-03-31Test both \r and \r\n with the expected failure conditions addedSaksham Mittal
2023-03-27Test \r more effectively using 2 linesSaksham Mittal
2023-03-19Add test for \r in directory parsingSaksham Mittal
2021-04-23Remove NEED_SKEY_1024 parsing.Nick Mathewson
Only v2 onion services needed this, and they are now gone. Closes #40374.
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
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