summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2013-06-12 16:36:13 +0300
committerNick Mathewson <nickm@torproject.org>2013-07-18 08:45:03 -0400
commit1a0cf08841904940ed46b2fcfd79cf65c65a1a6c (patch)
tree67cc87d4e1d641829243ee81908cef0a5bec4353 /src/common
parentea72958f25f6326d6947c8cd4ef185912582d436 (diff)
downloadtor-1a0cf08841904940ed46b2fcfd79cf65c65a1a6c.tar.gz
tor-1a0cf08841904940ed46b2fcfd79cf65c65a1a6c.zip
Rename tor_escape_str_for_socks_arg() to something more generic.
Since we are going to be using that function to also escape parameters passed to transport proxies using environment variables.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c2
-rw-r--r--src/common/util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c
index bd38a62800..eb932f3054 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1227,7 +1227,7 @@ escaped(const char *s)
* <b>chars_to_escape</b>. The returned string is allocated on the
* heap and it's the responsibility of the caller to free it. */
char *
-tor_escape_str_for_socks_arg(const char *string, const char *chars_to_escape)
+tor_escape_str_for_pt_args(const char *string, const char *chars_to_escape)
{
char *new_string = NULL;
char *new_cp = NULL;
diff --git a/src/common/util.h b/src/common/util.h
index ba0ec98685..0a8e4a23fc 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -231,8 +231,8 @@ 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,
- const char *chars_to_escape);
+char *tor_escape_str_for_pt_args(const char *string,
+ const char *chars_to_escape);
struct smartlist_t;
int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \