Skip to content
Snippets Groups Projects
Commit e08721d3 authored by Hans Trompert's avatar Hans Trompert
Browse files

old style use of server SSL context is allowed again

parent 09f9f9e9
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ def doMain():
# setup listener port
if tls:
iport = reactor.listenSSL(port, factory, ctx_factory.getOpenSSLCertificateOptions())
iport = reactor.listenSSL(port, factory, ctx_factory)
else:
iport = reactor.listenTCP(port, factory)
......
......@@ -331,7 +331,7 @@ class OpenNSAService(twistedservice.MultiService):
factory, ctx_factory = self.setupServiceFactory()
if self.vc[config.TLS]:
internet.SSLServer(self.vc[config.PORT], factory, ctx_factory.getOpenSSLCertificateOptions()).setServiceParent(self)
internet.SSLServer(self.vc[config.PORT], factory, ctx_factory).setServiceParent(self)
else:
internet.TCPServer(self.vc[config.PORT], factory).setServiceParent(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment