[Commits] (bkirsch) The Wrapper needs to implement the Twisted ITLSTransport interface to be leveraged fully in Twisted

commits at osafoundation.org commits at osafoundation.org
Fri Apr 15 17:34:26 PDT 2005


Commit by: bkirsch
Modified files:
internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py 1.12 1.13

Log message:
The Wrapper needs to implement the Twisted ITLSTransport interface to be leveraged fully in Twisted

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py.diff?r1=text&tr1=1.12&r2=text&tr2=1.13

Index: internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py
diff -u internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py:1.12 internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py:1.13
--- internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py:1.12	Fri Apr 15 12:20:16 2005
+++ internal/m2crypto/M2Crypto/SSL/TwistedProtocolWrapper.py	Fri Apr 15 17:34:25 2005
@@ -5,10 +5,12 @@
 All rights reserved.
 """
 
-RCS_id='$Id: TwistedProtocolWrapper.py,v 1.12 2005/04/15 19:20:16 bkirsch Exp $'
+RCS_id='$Id: TwistedProtocolWrapper.py,v 1.13 2005/04/16 00:34:25 bkirsch Exp $'
 
 from twisted.protocols.policies import ProtocolWrapper
 from twisted.python.failure import Failure
+from twisted.internet.interfaces import ITLSTransport
+from zope.interface import implements
 
 import M2Crypto # for M2Crypto.BIO.BIOError
 from M2Crypto import BIO, m2, X509
@@ -43,6 +45,9 @@
         sslChecker(): function  Should do SSL post connection check
 
     """
+
+    implements(ITLSTransport)
+
     def __init__(self, factory, wrappedProtocol):
         if debug:
             print 'TwistedProtocolWrapper.__init__'



More information about the Commits mailing list