[tor-commits] [bridgedb/master] Don't strip fingerprint whitespace in creation of extrainfo descriptor.

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:32 UTC 2014


commit ab141ba30c0f62adde2302783fbc91756b072e29
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Nov 16 00:40:18 2013 +0000

    Don't strip fingerprint whitespace in creation of extrainfo descriptor.
    
    It doesn't have whitespace, now that it is retrieved with hashlib.sha1()
    instead of OpenSSL.crypto.x509.digest().
---
 scripts/gen_bridge_descriptors |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gen_bridge_descriptors b/scripts/gen_bridge_descriptors
index 816340b..fdafa75 100644
--- a/scripts/gen_bridge_descriptors
+++ b/scripts/gen_bridge_descriptors
@@ -594,7 +594,7 @@ def generateExtraInfo(fingerprint, ts, ipv4, port):
     :returns: An extra-info document (unsigned).
     """
     extra = []
-    extra.append("extra-info Unnamed %s" % fingerprint.replace(' ', ''))
+    extra.append("extra-info Unnamed %s" % fingerprint)
     extra.append("published %s" % ts)
     extra.append("write-history %s (900 s)\n3188736,2226176,2866176" % ts)
     extra.append("read-history %s (900 s)\n3891200,2483200,2698240" % ts)





More information about the tor-commits mailing list