aboutsummaryrefslogtreecommitdiffstats
path: root/test/sslserv.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sslserv.py')
-rw-r--r--test/sslserv.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/sslserv.py b/test/sslserv.py
deleted file mode 100644
index 557ce869..00000000
--- a/test/sslserv.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import socket
-from SocketServer import BaseServer
-from BaseHTTPServer import HTTPServer
-import ssl
-import handler
-
-
-class SecureHTTPServer(HTTPServer):
- def __init__(self, server_address, HandlerClass):
- BaseServer.__init__(self, server_address, HandlerClass)
- self.socket = ssl.wrap_socket(
- socket.socket(self.address_family, self.socket_type),
- keyfile = "data/serverkey.pem",
- certfile = "data/serverkey.pem"
- )
- self.server_bind()
- self.server_activate()
-
-
-def make(port):
- server_address = ('127.0.0.1', port)
- return SecureHTTPServer(server_address, handler.TestRequestHandler)