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

[tor-commits] [stem/master] Always create introduction points with onion-key



commit b8ac03a24001ed598930078102e8e2cdf5ff98a8
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue Nov 19 15:09:05 2019 -0800

    Always create introduction points with onion-key
    
    We didn't provide a mechanism to exclude an onion-key (create() filled it in
    with a default), but it was definitely a mistake to include this conditional.
    
    Caught by asn on https://trac.torproject.org/projects/tor/ticket/31823
---
 stem/descriptor/hidden_service.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/stem/descriptor/hidden_service.py b/stem/descriptor/hidden_service.py
index 0f65fb24..d0b2d7f8 100644
--- a/stem/descriptor/hidden_service.py
+++ b/stem/descriptor/hidden_service.py
@@ -267,10 +267,7 @@ class IntroductionPointV3(collections.namedtuple('IntroductionPointV3', ['link_s
     link_count = stem.client.datatype.Size.CHAR.pack(len(self.link_specifiers))
     link_specifiers = link_count + b''.join([l.pack() for l in self.link_specifiers])
     lines.append('introduction-point %s' % stem.util.str_tools._to_unicode(base64.b64encode(link_specifiers)))
-
-    if self.onion_key_raw:
-      lines.append('onion-key ntor %s' % self.onion_key_raw)
-
+    lines.append('onion-key ntor %s' % self.onion_key_raw)
     lines.append('auth-key\n' + self.auth_key_cert.to_base64(pem = True))
 
     if self.enc_key_raw:



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