From a6c7715dfb4946a4a25edd4f8bc3cc2e2249e4f9 Mon Sep 17 00:00:00 2001 From: spoob Date: Sat, 5 Dec 2009 20:31:00 +0100 Subject: No OpenSSL needed to run --- module/remote/SecureXMLRPCServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module') diff --git a/module/remote/SecureXMLRPCServer.py b/module/remote/SecureXMLRPCServer.py index 9dacd7b26..7a60f6c90 100644 --- a/module/remote/SecureXMLRPCServer.py +++ b/module/remote/SecureXMLRPCServer.py @@ -16,7 +16,6 @@ # $Id: SecureXMLRPCServer.py 5 2007-01-06 17:54:13Z hoffie $ from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler -from OpenSSL import SSL import SocketServer import socket import base64 @@ -41,6 +40,7 @@ class SecureSocketConnection: class SecureSocketServer(SocketServer.TCPServer, SocketServer.ThreadingMixIn): def __init__(self, addr, cert, key, requestHandler, verify_cert_func=None): + SSL = __import__("OpenSSL", globals(), locals(), "SSL", -1).SSL SocketServer.TCPServer.__init__(self, addr, requestHandler) ctx = SSL.Context(SSL.SSLv23_METHOD) if not verify_cert_func and hasattr(self, 'verify_client_cert'): -- cgit v1.2.3