aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/resolve.c
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-02-10Use semicolons after HT_PROTOTYPE and HT_GENERATE.Nick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-10-04Make tor_addr_lookup_host_impl mockable.Nick Mathewson
2019-10-03Unify backend implementations for blocking hostname lookupNick Mathewson
We have a getaddrinfo() implementation that we prefer, and a gethostbyname*() implementation that we fall back on. Give them both the same interface, and let them be called by the same name. This is a preparatory step for making them both mockable.
2019-09-30Re-run "make autostyle" with improved annotate_ifdef_directivesNick Mathewson
2019-06-26Merge branch 'bug30721_squashed'Nick Mathewson
2019-06-26address/resolve: Require square brackets on IPv6 address:portsteor
When parsing addreses via Tor's internal address:port parsing and DNS lookup APIs, require IPv6 addresses with ports to have square brackets. But allow IPv6 addresses without ports, whether or not they have square brackets. Fixes bug 30721; bugfix on 0.2.1.5-alpha.
2019-06-26address/resolve: try harder to avoid returning uninitialised datateor
Cleanup after 30721.
2019-06-26resolve: split sub-functions out of tor_addr_lookup()teor
And remove the practracker exception for tor_addr_lookup(). Cleanup after 30721.
2019-06-26resolve: refactor address family logic in tor_addr_lookup()teor
Cleanup after 30721.
2019-06-26resolve: consistently parse IP addresses in square bracketsteor
When parsing addreses via Tor's internal DNS lookup API: * reject IPv4 addresses in square brackets (with or without a port), * accept IPv6 addresses in square brackets (with or without a port), and * accept IPv6 addresses without square brackets, as long as they have no port. This change completes the work started in 23082, making address parsing consistent between tor's internal DNS lookup and address parsing APIs. Fixes bug 30721; bugfix on 0.2.1.5-alpha.
2019-06-05Run "make autostyle."Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-11-14Make sure sandbox-related getaddrinfo() functions always exist.Nick Mathewson
2018-11-14Normalize .may_include to always have paths, and paths to includeNick Mathewson
2018-07-10Rename util_malloc to malloc.Nick Mathewson
2018-07-10Move tor_addr_{,port_}lookup to resolve.cNick Mathewson
2018-07-10File-level summary documentation for src/lib/*/*.[ch]Nick Mathewson
2018-07-03Rename sandbox_getaddrinfo() et. al.rl1987
2018-06-27Move network code to libtor-net.Nick Mathewson
There are some additional changes to come: those points are marked by XXXX.