Index: third_party/twisted_8_1/twisted/test/ssl_helpers.py |
diff --git a/third_party/twisted_8_1/twisted/test/ssl_helpers.py b/third_party/twisted_8_1/twisted/test/ssl_helpers.py |
deleted file mode 100644 |
index aa609a84eb760c07ba303600eab9471d24dc4bff..0000000000000000000000000000000000000000 |
--- a/third_party/twisted_8_1/twisted/test/ssl_helpers.py |
+++ /dev/null |
@@ -1,26 +0,0 @@ |
- |
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories. |
-# See LICENSE for details. |
- |
- |
-from twisted.internet import ssl |
-from twisted.python.util import sibpath |
- |
-from OpenSSL import SSL |
- |
-class ClientTLSContext(ssl.ClientContextFactory): |
- isClient = 1 |
- def getContext(self): |
- return SSL.Context(SSL.TLSv1_METHOD) |
- |
-class ServerTLSContext: |
- isClient = 0 |
- |
- def __init__(self, filename = sibpath(__file__, 'server.pem')): |
- self.filename = filename |
- |
- def getContext(self): |
- ctx = SSL.Context(SSL.TLSv1_METHOD) |
- ctx.use_certificate_file(self.filename) |
- ctx.use_privatekey_file(self.filename) |
- return ctx |