Re: tmda-ofmipd: Internal support for SSL via tlslite package
Stephen Warren <[email protected]> Wed, 28 Feb 2007 12:13:23 -0700
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason R. Mastaler wrote: > Do you have a diff against the stock tlslite-0.3.8 release? Here it is; see attached. Hopefully the cut/paste from SSH didn't screw it up too much! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5dRThk3bo0lNTrURAr6lAJ9uFlOk7PulHtsE5g+5UiKSqbGo3gCfdMEN /HkSYM+8QGxYthdkkS+qrT8= =hH8d -----END PGP SIGNATURE-----
tlslite.diff
(text/plain, 695 B)
--- tlslite/tlslite-0.3.8/tlslite/TLSRecordLayer.py 2007-02-25 20:27:46.000000000 -0700
+++ python-2.5/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py 2007-02-28 00:06:51.000000000 -0700
@@ -18,6 +18,11 @@
import errno
import traceback
+try:
+ GeneratorExit
+except NameError:
+ class GeneratorExit(Exception): pass
+
class _ConnectionState:
def __init__(self):
self.macContext = None
@@ -218,6 +223,8 @@
returnStr = self._readBuffer[:max]
self._readBuffer = self._readBuffer[max:]
yield returnStr
+ except GeneratorExit:
+ raise
except:
self._shutdown(False)
raise