mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Only import OpenSSL package when it is required.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
cc489fb3c4
commit
9787d88dcf
1 file changed
+1
-2
@@ -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)
|
||||
|
||||