[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Remove unused base64 encoding of idkey digest in gen_bridge_descriptors.



commit faefbb697d818901335bfb489165f7e4048e0854
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sat Nov 16 00:43:23 2013 +0000

    Remove unused base64 encoding of idkey digest in gen_bridge_descriptors.
    
    The raw digest is passed to the function for making the networkstatus
    document, where it is then base64-encoded and its trailing '='s are
    stripped. Remove an extra, unused line from the main makeDescriptors()
    function where this is done again, but not passed to the networkstatus
    creation function.
---
 scripts/gen_bridge_descriptors |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/scripts/gen_bridge_descriptors b/scripts/gen_bridge_descriptors
index fdafa75..b2ebf63 100644
--- a/scripts/gen_bridge_descriptors
+++ b/scripts/gen_bridge_descriptors
@@ -756,9 +756,6 @@ def generateDescriptors():
     fingerprint = hashlib.sha1(idkey_public).hexdigest().upper()
     fpr = convertToSpaceyFingerprint(ident_digest)
 
-    identity = binascii.b2a_base64(
-        hashlib.sha1(idkey_public).digest()).strip().strip('=======')
-
     extrainfo_document = generateExtraInfo(fingerprint, timestamp, ipv4, port)
     extrainfo_digest = hashlib.sha1(extrainfo_document).digest()
     extrainfo_hexdigest = hashlib.sha1(extrainfo_document).hexdigest().upper()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits