diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-27 15:45:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-27 16:18:42 -0400 |
commit | 3cff3e825a1478fc3350bbca16f091b8f635f921 (patch) | |
tree | 035981c06b58324dea01a8816332274be6381c4c /src/lib/net/address.h | |
parent | e165c9c304800718daa589469349282110e00909 (diff) | |
download | tor-3cff3e825a1478fc3350bbca16f091b8f635f921.tar.gz tor-3cff3e825a1478fc3350bbca16f091b8f635f921.zip |
Move several address-string-testing functions to address.c
Diffstat (limited to 'src/lib/net/address.h')
-rw-r--r-- | src/lib/net/address.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/net/address.h b/src/lib/net/address.h index 78b7987556..f8ea573c30 100644 --- a/src/lib/net/address.h +++ b/src/lib/net/address.h @@ -357,6 +357,11 @@ tor_addr_port_t *tor_addr_port_new(const tor_addr_t *addr, uint16_t port); int tor_addr_port_eq(const tor_addr_port_t *a, const tor_addr_port_t *b); +int string_is_valid_dest(const char *string); +int string_is_valid_nonrfc_hostname(const char *string); +int string_is_valid_ipv4_address(const char *string); +int string_is_valid_ipv6_address(const char *string); + #ifdef ADDRESS_PRIVATE MOCK_DECL(struct smartlist_t *,get_interface_addresses_raw,(int severity, sa_family_t family)); |