From ea72958f25f6326d6947c8cd4ef185912582d436 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Wed, 12 Jun 2013 16:23:16 +0300 Subject: Pass characters to be escaped to tor_escape_str_for_socks_arg(). This is in preparation for using tor_escape_str_for_socks_arg() to escape server-side pluggable transport parameters. --- src/common/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/util.h') diff --git a/src/common/util.h b/src/common/util.h index ad7526658..ba0ec9868 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -231,7 +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); +char *tor_escape_str_for_socks_arg(const char *string, + const char *chars_to_escape); struct smartlist_t; int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \ -- cgit v1.2.3