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

[tor-commits] [bridgedb/master] Sign generated descriptors with the secret OR server IDkey.



commit d3582ec6f6f7c6edcfbc058a8f13847bbb10093a
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sat Nov 16 00:47:24 2013 +0000

    Sign generated descriptors with the secret OR server IDkey.
---
 scripts/gen_bridge_descriptors |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/gen_bridge_descriptors b/scripts/gen_bridge_descriptors
index 8bc2b6d..39f137a 100644
--- a/scripts/gen_bridge_descriptors
+++ b/scripts/gen_bridge_descriptors
@@ -759,7 +759,7 @@ def generateDescriptors():
     extrainfo_document = generateExtraInfo(fingerprint, timestamp, ipv4, port)
     extrainfo_digest = hashlib.sha1(extrainfo_document).digest()
     extrainfo_hexdigest = hashlib.sha1(extrainfo_document).hexdigest().upper()
-    extrainfo_sig = signDescriptorDigest(idkey, extrainfo_digest)
+    extrainfo_sig = signDescriptorDigest(SIDSKey, extrainfo_digest)
     extrainfo_desc = extrainfo_document + extrainfo_sig
 
     server = []
@@ -783,7 +783,7 @@ def generateDescriptors():
     netstatus_desc = generateNetstatus(ident_digest, server_desc_digest,
                                        timestamp, ipv4, port, ipv6=ipv6,
                                        bandwidth_line=bandwidth)
-    server_desc += signDescriptorDigest(idkey, server_desc_digest)
+    server_desc += signDescriptorDigest(SIDSKey, server_desc_digest)
     return extrainfo_desc, server_desc, netstatus_desc
 
 def writeDescToFile(filename, descriptors):



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