diff options
author | George Kadianakis <desnacked@riseup.net> | 2012-12-17 14:14:09 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2013-02-09 16:30:16 +0000 |
commit | b8532bcb1ec51fcfae4ceff869be116fec4ccbb9 (patch) | |
tree | a7b042c5ecadcbe9de92ef9cda232c32a0129b83 /src/common/util.h | |
parent | d86a45f991693cf2367a6ccb94fc29c22f5f7b45 (diff) | |
download | tor-b8532bcb1ec51fcfae4ceff869be116fec4ccbb9.tar.gz tor-b8532bcb1ec51fcfae4ceff869be116fec4ccbb9.zip |
Add utility functions needed for SOCKS argument parsing.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 911b1b5a37..e3cd72118c 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -209,12 +209,16 @@ const char *find_whitespace_eos(const char *s, const char *eos); const char *find_str_at_start_of_line(const char *haystack, const char *needle); int string_is_C_identifier(const char *string); +int string_is_key_value(const char *string); int tor_mem_is_zero(const char *mem, size_t len); int tor_digest_is_zero(const char *digest); int tor_digest256_is_zero(const char *digest); char *esc_for_log(const char *string) ATTR_MALLOC; const char *escaped(const char *string); + +char *tor_escape_str_for_socks_arg(const char *string); + struct smartlist_t; void wrap_string(struct smartlist_t *out, const char *string, size_t width, const char *prefix0, const char *prefixRest); |