[or-cvs] [tor/maint-0.2.1] Write fingerprint to file and log without spaces

arma at seul.org arma at seul.org
Tue Jul 28 02:52:15 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Mon, 27 Jul 2009 22:51:20 -0400
Subject: Write fingerprint to file and log without spaces
Commit: a73acdd46f946a18f678167f2f8083cac18ebe01

Now it will look like the fingerprints in our bridges documentation,
and confuse fewer users.
---
 ChangeLog       |    6 ++++++
 src/or/router.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fed57aa..2747420 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,12 @@ Changes in version 0.2.1.19 - 2009-07-??
     - Make accessing hidden services on 0.2.1.x work right
       again. Bugfix on 0.2.1.3-alpha; workaround for bug 1038.
 
+  o Minor features:
+    - When a relay/bridge is writing out its identity key fingerprint to
+      the "fingerprint" file and to its logs, write it without spaces. Now
+      it will look like the fingerprints in our bridges documentation,
+      and confuse fewer users.
+
   o Minor bugfixes:
     - Avoid leaking memory every time we get a create cell but we have
       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
diff --git a/src/or/router.c b/src/or/router.c
index 93afe4f..6f89985 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -568,7 +568,7 @@ init_keys(void)
   /* 5. Dump fingerprint to 'fingerprint' */
   keydir = get_datadir_fname("fingerprint");
   log_info(LD_GENERAL,"Dumping fingerprint to \"%s\"...",keydir);
-  if (crypto_pk_get_fingerprint(get_identity_key(), fingerprint, 1)<0) {
+  if (crypto_pk_get_fingerprint(get_identity_key(), fingerprint, 0)<0) {
     log_err(LD_GENERAL,"Error computing fingerprint");
     tor_free(keydir);
     return -1;
-- 
1.5.6.5



More information about the tor-commits mailing list