xend: Only import OpenSSL package when it is required.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-05-06 15:31:15 +01:00
1 parent cc489fb3c4
commit 9787d88dcf
1 file changed
+1 -2
+1 -2
View File
@@ -22,8 +22,6 @@ import re
import socket
import time
from OpenSSL import SSL
import connection
from xen.xend.XendLogging import log
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.