[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: Only import OpenSSL package when it is required.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210084275 -3600
# Node ID ab2d9e75098d5a17b38d3d84bd8c65d9d4f39b9f
# Parent  a3bddc22d2f5dc65276765d732a2377867f792e4
xend: Only import OpenSSL package when it is required.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/web/tcp.py |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r a3bddc22d2f5 -r ab2d9e75098d tools/python/xen/web/tcp.py
--- a/tools/python/xen/web/tcp.py       Tue May 06 13:34:52 2008 +0100
+++ b/tools/python/xen/web/tcp.py       Tue May 06 15:31:15 2008 +0100
@@ -21,8 +21,6 @@ import re
 import re
 import socket
 import time
-
-from OpenSSL import SSL
 
 import connection
 
@@ -82,6 +80,7 @@ class SSLTCPListener(TCPListener):
 
 
     def createSocket(self):
+        from OpenSSL import SSL
         # make a SSL socket
         ctx = SSL.Context(SSL.SSLv23_METHOD)
         ctx.set_options(SSL.OP_NO_SSLv2)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.