[Pkg-privacy-commits] [onionbalance] 07/117: Verify signatures on downloaded HS descriptors

Donncha O'Cearbahill donncha-guest at moszumanska.debian.org
Wed Dec 16 23:18:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

donncha-guest pushed a commit to branch debian/sid
in repository onionbalance.

commit 3e8bc54dd18e110c95371e0e410489c706fb0eac
Author: Donncha O'Cearbhaill <donncha at donncha.is>
Date:   Tue May 5 17:39:14 2015 +0100

    Verify signatures on downloaded HS descriptors
---
 onion-balance/hiddenservice.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/onion-balance/hiddenservice.py b/onion-balance/hiddenservice.py
index 9c243ef..3ac3053 100644
--- a/onion-balance/hiddenservice.py
+++ b/onion-balance/hiddenservice.py
@@ -209,6 +209,10 @@ class HiddenService(object):
                 next_time = datetime.datetime.utcnow() + datetime.timedelta(1)
                 self._upload_descriptor(timestamp=next_time)
 
+        else:
+            logger.debug("Not publishing a descriptor for '%s'" %
+                         self.onion_address)
+
 
 class Instance(object):
     """
@@ -249,7 +253,7 @@ class Instance(object):
 
         # Parse and store this descriptors introduction points.
         parsed_descriptor = stem.descriptor.hidden_service_descriptor.\
-            HiddenServiceDescriptor(descriptor_content)
+            HiddenServiceDescriptor(descriptor_content, validate=True)
 
         # Parse the introduction point list, decrypting if necessary
         introduction_points = parsed_descriptor.introduction_points(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionbalance.git



More information about the Pkg-privacy-commits mailing list