]> git.ipfire.org Git - thirdparty/tor.git/commit
Refactor the safe_str_*() API to make more sense.
authorNick Mathewson <nickm@torproject.org>
Tue, 15 Dec 2009 22:23:36 +0000 (17:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 15 Dec 2009 22:25:34 +0000 (17:25 -0500)
commitfcbd65b45cbf203b00e6752dabc7bc5b8dffdbcf
tree5c27f43119bad03fc2465af47105f801bbe3dc26
parenta8190b09a319bf6b1bac7608ea77f828f9970056
Refactor the safe_str_*() API to make more sense.

The new rule is: safe_str_X() means "this string is a piece of X
information; make it safe to log."  safe_str() on its own means
"this string is a piece of who-knows-what; make it safe to log".
20 files changed:
src/or/buffers.c
src/or/circuitbuild.c
src/or/circuitlist.c
src/or/circuituse.c
src/or/command.c
src/or/config.c
src/or/connection.c
src/or/connection_edge.c
src/or/connection_or.c
src/or/control.c
src/or/directory.c
src/or/dns.c
src/or/dnsserv.c
src/or/main.c
src/or/or.h
src/or/relay.c
src/or/rendclient.c
src/or/rendcommon.c
src/or/rendmid.c
src/or/rendservice.c