summaryrefslogtreecommitdiff
path: root/src/lib/encoding
AgeCommit message (Collapse)Author
2019-07-03Make config_lines_eq() take const arguments.Nick Mathewson
2019-07-03Revert "Add a function to append an existing line to a config line list."Nick Mathewson
This reverts commit 5a2ab886baaa125fe715acca8f7daf35031855aa.
2019-06-24Add a function to append an existing line to a config line list.Nick Mathewson
We had an existing function to do this, but it took a pair of strings rather than a line.
2019-06-05Run "make autostyle."Nick Mathewson
2019-05-02Add comments to include.am files to note where new sources goNick Mathewson
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation.
2019-04-25Add rudimentary qstring support to kvline.cNick Mathewson
2019-04-25Move and rename decode_escaped_string()Nick Mathewson
This function decodes something different from the usual c-escaped format. It is only used in controller authorization.
2019-04-25Add a case-insensitive variant to config_line_find()Nick Mathewson
2019-04-25kvline: handle empty alues as well as empty keysNick Mathewson
The two options are mutually exclusive, since otherwise an entry like "Foo" would be ambiguous. We want to have the ability to treat entries like this as keys, though, since some controller commands interpret them as flags.
2019-04-05binascii: Fix the base64_encode_nopad() buffer length requirementteor
Comment-only change. Part of 29660.
2019-02-26Merge branch 'tor-github/pr/611'George Kadianakis
2019-01-23Merge branch 'ticket28668_035' into ticket28668_040Nick Mathewson
2019-01-23Capture more BUG warnings in util/time testNick Mathewson
These are ones that happen on windows only. Fixes bug 29161.
2019-01-16Bump copyright date to 2019Nick Mathewson
2019-01-16Bump copyright date to 2019.Nick Mathewson
2018-12-20base32_decode(): Return number of bytes written on success.Nick Mathewson
This makes it consistent with base64_decode(). Closes ticket 28913.
2018-12-14Add a function to provide an upper bound on base64 decoded lengthNick Mathewson
2018-12-12Add code to parse K=V lines into config_line_t format.Nick Mathewson
Closes ticket 28755
2018-11-06Include sys/time.h in timers.c and time_fmt.cKris Katterjohn
This fixes compilation on OpenBSD. Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2018-09-13Merge remote-tracking branch 'UntoSten/inform-about-conf-includes'Nick Mathewson
2018-08-21Add rudimentary support for PEM-encoding, since NSS doesn't do that.Nick Mathewson
2018-08-17Inform users about configuration file and directory includesUnto Sten
This patch makes it clearer to users what settings Tor daemon is actually using. I think it is pretty important.
2018-07-10Rename tm_cvt to time_to_tmNick Mathewson
2018-07-10Rename torlog.[ch] to log.[ch]Nick Mathewson
Fun fact: these files used to be called log.[ch] until we ran into conflicts with systems having a log.h file. But now that we always include "lib/log/log.h", we should be fine.
2018-07-10Rename util_malloc to malloc.Nick Mathewson
2018-07-09Fix some lingering windows compilation issues from Jenkins.Nick Mathewson
These were caused by the recent refactoring.
2018-07-01File-level documentation for some of src/lib.Nick Mathewson
2018-07-01Tabify all of the .am files.Nick Mathewson
2018-06-28Move string_is_key_value to lib/encodingNick Mathewson
2018-06-27Move confline.c to lib/encoding: it is about encoding key-value pairsNick Mathewson
Also, move "unescape_string()" to encoding too, since it's about encoding data as C strings.
2018-06-27Move hex_str to binascii.cNick Mathewson
2018-06-27Extract time encoding functions into lib/encodingNick Mathewson
2018-06-27Move util_format into a new libtor-encoding libraryNick Mathewson
libtor-encoding is about various ways to transform data to and from character sequences.