[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Fix import statements to include X509Name class.
commit ebdf72719f82a575717a2713f52d5fa2665bf835
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Thu Feb 28 13:23:45 2013 +0000
Fix import statements to include X509Name class.
---
nettests/experimental/tls_handshake.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py
index 5dcc107..34a917c 100644
--- a/nettests/experimental/tls_handshake.py
+++ b/nettests/experimental/tls_handshake.py
@@ -33,6 +33,7 @@ import types
from ipaddr import IPAddress
from OpenSSL import SSL
from OpenSSL.crypto import dump_certificate, FILETYPE_PEM
+from OpenSSL.crypto import X509Name
from twisted.internet import defer
from twisted.python import usage
from twisted.python.failure import Failure
@@ -215,9 +216,9 @@ class TLSHandshakeTest(nettest.NetTestCase):
x509_name = None
try:
- assert isinstance(certificate, crypto.X509Name), \
+ assert isinstance(certificate, X509Name), \
"getX509Name takes OpenSSL.crypto.X509Name as first argument!"
- x509_name = crypto.X509Name(certificate)
+ x509_name = X509Name(certificate)
except AssertionError as ae:
log.err(ae)
except Exception as exc:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits