Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: third_party/twisted_8_1/twisted/test/ssl_helpers.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/twisted_8_1/twisted/test/server.pem ('k') | third_party/twisted_8_1/twisted/test/stdio_test_consumer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698