summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-10-12 20:39:00 +0300
committerNick Mathewson <nickm@torproject.org>2014-11-04 00:36:37 -0500
commite8e45ff13ed86d8851bab77d65d899d0ca6e3b89 (patch)
tree08b48055e4ba8d1dd79cbb42324d7de6216a6a18 /src/common/util.h
parent1ea9a6fd72b66ec634446cbd2119641a5ed1e703 (diff)
downloadtor-e8e45ff13ed86d8851bab77d65d899d0ca6e3b89.tar.gz
tor-e8e45ff13ed86d8851bab77d65d899d0ca6e3b89.zip
Introducing helper function to validate IPv4 address strings.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 2634adc62b..dcb54f0aea 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -228,6 +228,7 @@ const char *find_str_at_start_of_line(const char *haystack,
int string_is_C_identifier(const char *string);
int string_is_key_value(int severity, const char *string);
int string_is_valid_hostname(const char *string);
+int string_is_valid_ipv4_address(const char *string);
int tor_mem_is_zero(const char *mem, size_t len);
int tor_digest_is_zero(const char *digest);