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

[tor-commits] [ooni-probe/master] Bug-Fixes-for-tls_handshake



commit 6833c8897a94a651ba330673d9cd72239f352de0
Author: Arun Pandian G <arunpandianp@xxxxxxxxx>
Date:   Thu Feb 6 17:36:52 2014 +0530

    Bug-Fixes-for-tls_handshake
---
 ooni/nettests/experimental/tls_handshake.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ooni/nettests/experimental/tls_handshake.py b/ooni/nettests/experimental/tls_handshake.py
index 5da2e8b..c3da9a9 100644
--- a/ooni/nettests/experimental/tls_handshake.py
+++ b/ooni/nettests/experimental/tls_handshake.py
@@ -38,9 +38,10 @@ from OpenSSL                import SSL, crypto
 from twisted.internet       import defer, threads
 from twisted.python         import usage, failure
 
-from ooni       import nettest, config
+from ooni       import nettest
 from ooni.utils import log
 from ooni.errors import InsufficientPrivileges
+from ooni.settings import config
 
 ## For a way to obtain the current version of Firefox's default ciphersuite
 ## list, see https://trac.torproject.org/projects/tor/attachment/ticket/4744/
@@ -100,7 +101,7 @@ class SSLContextError(usage.UsageError):
             message = self.errors[message]
         super(usage.UsageError, self).__init__(message)
 
-class HostUnreachable(Exception):
+class HostUnreachableError(Exception):
     """Raised when the host IP address appears to be unreachable."""
     pass
 
@@ -162,6 +163,7 @@ class HandshakeTest(nettest.NetTestCase):
             if not (options['ssl2'] or options['ssl3'] or options['tls1']):
                 try: raise SSLContextError('NO_CONTEXT')
                 except SSLContextError as sce: log.err(sce.message)
+                context = None
             else:
                 ## If incompatible contexts were chosen, inform the user:
                 if options['tls1'] and (options['ssl2'] or options['ssl3']):



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