[Twisted-Python] Parameters of twisted.internet.interfaces.ITLSTransport [Was: Re: Request for help with Twisted bindings in M2Crypto]

Matěj Cepl mcepl at cepl.eu
Mon Jul 25 17:02:48 MDT 2016


On 2016-07-25, 09:33 GMT, Craig Rodrigues wrote:
> Earlier this year, I contributed lots of patches to you in M2Crypto to port
> it to py3k.
> Now I have shifted efforts to Twisted, where in the past month I have
> contributed hundreds of patches to help improve py3k support in Twisted.

Hi,

can I for a piece of advice on the documentation.
M2Crypto.SSL.TwistedProtocolWrapper.TLSProtocolWrapper.startTLS
implements ITLSTransport.startTLS interace method, which first parameter
is called ``ctx`` and in `the current implementation in M2Crypto`_ it is of
type control of SSL Context (that's M2Crypto.SSL.Context.Context) or
whether it is factory generating such Contexts (which is what
https://twistedmatrix.com/documents/current/api/twisted.internet._newtls.ConnectionMixin.html
says, at least I understand it in this way). Is my current
implementation wrong?

Thank you for any answer in advance,

Matěj

.. _`the current implementation in M2Crypto`:
     https://gitlab.com/m2crypto/m2crypto/blob/python3/M2Crypto/SSL/TwistedProtocolWrapper.py#L231

-- 
https://matej.ceplovi.cz/blog/, Jabber: mcepl at ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
  
To err is human, to purr feline.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20160726/38d1ad81/attachment.sig>


More information about the Twisted-Python mailing list