From d03484e9ef838d6c19e49d25a17c6eba3faf7fad Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Fri, 25 Oct 2013 11:08:40 -0700 Subject: [PATCH] Fixed for previous interface changes. --- sslterm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sslterm.py b/sslterm.py index bc37392..c01cd54 100755 --- a/sslterm.py +++ b/sslterm.py @@ -23,7 +23,12 @@ def main(): try: print "Opening connection to {0}:{1}\r".format(host, port) - dev = pyad2usb.ad2usb.devices.SocketDevice(interface=(host, int(port)), use_ssl=True, ssl_certificate=client_cert, ssl_key=client_key, ssl_ca=ca_cert) + dev = pyad2usb.ad2usb.devices.SocketDevice(interface=(host, int(port))) + dev.ssl = True + dev.ssl_certificate = client_cert + dev.ssl_key = client_key + dev.ssl_ca = ca_cert + dev.open(no_reader_thread=True) dev.write("\r") # HACK: Prime the pump. This likely has to do with the SSL handshake # not being completed when we get down to the select.