aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/address.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-10 13:18:55 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-10 13:23:37 -0400
commit2f657a1416f2f81dd1be900269c4ae9bdb29f52d (patch)
treedd54069b078d165de04a85295bba79a1590fb422 /src/lib/net/address.h
parentc2ddb7b231c640a292d261af265dd423cee09179 (diff)
downloadtor-2f657a1416f2f81dd1be900269c4ae9bdb29f52d.tar.gz
tor-2f657a1416f2f81dd1be900269c4ae9bdb29f52d.zip
Remove all users of addr_port_lookup outside of address.c
This function has a nasty API, since whether or not it invokes the resolver depends on whether one of its arguments is NULL. That's a good way for accidents to happen. This patch incidentally makes tor-resolve support socks hosts on IPv6.
Diffstat (limited to 'src/lib/net/address.h')
-rw-r--r--src/lib/net/address.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/net/address.h b/src/lib/net/address.h
index f9e533f4a4..e857b4068b 100644
--- a/src/lib/net/address.h
+++ b/src/lib/net/address.h
@@ -325,8 +325,6 @@ int tor_addr_port_parse(int severity, const char *addrport,
int tor_addr_hostname_is_local(const char *name);
/* IPv4 helpers */
-int addr_port_lookup(int severity, const char *addrport, char **address,
- uint32_t *addr, uint16_t *port_out);
int parse_port_range(const char *port, uint16_t *port_min_out,
uint16_t *port_max_out);
int addr_mask_get_bits(uint32_t mask);