aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-06 20:16:12 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-06 20:16:12 +0000
commit6290d027c97ecdf2b6c75762fcc226ea006d0be3 (patch)
treec2dcd168ab8cbb708b1133a55eb24f8b7db5f1a6 /src/or/dirserv.c
parentce51a30adc4392cff170c4ef22fb396cd09dbeaa (diff)
downloadtor-6290d027c97ecdf2b6c75762fcc226ea006d0be3.tar
tor-6290d027c97ecdf2b6c75762fcc226ea006d0be3.tar.gz
Continue attack on magic numbers; use new crypto wrappers where possible
svn:r1504
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index a2a67d57b..6c2a0ee77 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -429,9 +429,7 @@ dirserv_dump_directory_to_string(char *s, int maxlen,
log_fn(LOG_WARN,"couldn't sign digest");
return -1;
}
- log(LOG_DEBUG,"generated directory digest begins with %02x:%02x:%02x:%02x",
- ((int)digest[0])&0xff,((int)digest[1])&0xff,
- ((int)digest[2])&0xff,((int)digest[3])&0xff);
+ log(LOG_DEBUG,"generated directory digest begins with %s",hex_str(digest,4));
if (strlcat(cp, "-----BEGIN SIGNATURE-----\n", maxlen) >= maxlen)
goto truncated;