diff options
author | Taylor Yu <catalyst@torproject.org> | 2019-07-03 16:35:35 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2019-12-08 17:09:43 -0600 |
commit | 1e8bb79bbe9befd86e018e0d5f6d960e9c789462 (patch) | |
tree | c18b7b292b30fa7e1b4a315d7d0d81d8427938d2 /src/lib/encoding/kvline.h | |
parent | 4b22c739fe8b04b05e7bdfdf18ec42ec4bf1c436 (diff) | |
download | tor-1e8bb79bbe9befd86e018e0d5f6d960e9c789462.tar.gz tor-1e8bb79bbe9befd86e018e0d5f6d960e9c789462.zip |
add KV_RAW to kvline.c
Add the KV_RAW flag to kvline_encode(). This allows generation of
output that is compatible with some quirks of the control protocol.
Part of #30984.
Diffstat (limited to 'src/lib/encoding/kvline.h')
-rw-r--r-- | src/lib/encoding/kvline.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/encoding/kvline.h b/src/lib/encoding/kvline.h index dea2ce1809..9d36902ad1 100644 --- a/src/lib/encoding/kvline.h +++ b/src/lib/encoding/kvline.h @@ -19,6 +19,7 @@ struct config_line_t; #define KV_OMIT_KEYS (1u<<1) #define KV_OMIT_VALS (1u<<2) #define KV_QUOTED_QSTRING (1u<<3) +#define KV_RAW (1u<<4) struct config_line_t *kvline_parse(const char *line, unsigned flags); char *kvline_encode(const struct config_line_t *line, unsigned flags); |