aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dns.c
AgeCommit message (Collapse)Author
2017-12-08Convert connection_free to a nulling macro.Nick Mathewson
2017-10-27Make sure all C files have copyright/license noticesNick Mathewson
2017-08-24Fix operator usage in src/test/*.cAlexander Færøy
This patch fixes the operator usage in src/test/*.c to use the symbolic operators instead of the normal C comparison operators. This patch was generated using: ./scripts/coccinelle/test-operator-cleanup src/test/*.[ch]
2017-01-18DefecTor countermeasure: change server- and client-side DNS TTL clippingNick Mathewson
The server-side clipping now clamps to one of two values, both for what to report, and how long to cache. Additionally, we move some defines to dns.h, and give them better names.
2016-07-28Fix all -Wshadow warnings on LinuxNick Mathewson
This is a partial fix for 18902.
2016-02-04Fix two problems in the 0.2.8.x unit testsNick Mathewson
1. We were sometimes using libevent uninitialized, which is Not Allowed. 2. The malformed-PTR dns test was supposed to get a -1 output... but the test was wrong, since it forgot that in-addr.arpa addresses are in reverse order. Bugs not in any released tor.
2015-12-18Fix a coverity NULL-pointer deref warning in the DNS tests.Nick Mathewson
This is CID 1340251
2015-12-15Fix some memory leaks in the unit testsNick Mathewson
2015-10-29Fix GCC warnings.rl1987
2015-10-24Seventh test case for dns_resolve_impl().rl1987
2015-10-24Sixth test case for dns_resolve_impl.rl1987
2015-10-24Add a fifth unit test.rl1987
2015-10-24Whitespace fixes.rl1987
2015-10-24Add a fourth test case.rl1987
2015-10-24Third test case for dns_resolve_impl.rl1987
2015-10-24A second test case for dns_resolve_impl.rl1987
2015-10-24Making it slightly cleaner.rl1987
2015-10-24First test case for dns_resolve_impl().rl1987
2015-10-24Using namespace macros for mock functions in test_dns.crl1987
2015-10-24Use NS_SUBMODULEs in test_dns.crl1987
2015-08-26Fix some memory issues in test_dns.cNick Mathewson
2015-08-26Resolve check-spaces in test_dns.cNick Mathewson
2015-08-26fix compilation warnings in test_dns.cNick Mathewson
2015-08-23Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl().rl1987