aboutsummaryrefslogtreecommitdiff
path: root/src/lib/encoding/qstring.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-09 09:42:51 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-25 14:13:03 -0400
commitba05324242aebdbf646ebb8e8f3aaef45b1f29ec (patch)
treee8d0ac79fb001e6cc391eb6173d4f921a7e9b559 /src/lib/encoding/qstring.h
parent0c0b869ba450363e36e8dd0bdacb4a197e0f0019 (diff)
downloadtor-ba05324242aebdbf646ebb8e8f3aaef45b1f29ec.tar.gz
tor-ba05324242aebdbf646ebb8e8f3aaef45b1f29ec.zip
Move and rename decode_escaped_string()
This function decodes something different from the usual c-escaped format. It is only used in controller authorization.
Diffstat (limited to 'src/lib/encoding/qstring.h')
-rw-r--r--src/lib/encoding/qstring.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/encoding/qstring.h b/src/lib/encoding/qstring.h
new file mode 100644
index 0000000000..fe15b655f1
--- /dev/null
+++ b/src/lib/encoding/qstring.h
@@ -0,0 +1,18 @@
+/* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2019, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file qstring.h
+ * \brief Header for qstring.c
+ */
+
+#ifndef TOR_ENCODING_QSTRING_H
+#define TOR_ENCODING_QSTRING_H
+
+#include <stddef.h>
+
+const char *decode_qstring(const char *start, size_t in_len_max,
+ char **out, size_t *out_len);
+
+#endif