Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26064 > unrolled thread

Re: ssl: add msg_callback

Started byChris Rebert <clp2@rebertia.com>
First post2012-07-25 22:56 -0700
Last post2012-07-25 22:56 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ssl: add msg_callback Chris Rebert <clp2@rebertia.com> - 2012-07-25 22:56 -0700

#26064 — Re: ssl: add msg_callback

FromChris Rebert <clp2@rebertia.com>
Date2012-07-25 22:56 -0700
SubjectRe: ssl: add msg_callback
Message-ID<mailman.2589.1343282180.4697.python-list@python.org>
On Wed, Jul 25, 2012 at 8:47 PM, ThiƩbaud Weksteen <thiebaud@weksteen.fr>
wrote:
>
> Hi python-list,
>
> I wrote a patch for Python 3.2.3 to expose the function
> SSL_CTX_set_msg_callback in the module _ssl.
>
> I was actually surprise this function was not already in the
> standard library as it is really handy:

Well, the underscore in the module name indicates that such modules
are private implementation details, hence why _ssl is undocumented.

> "SSL_CTX_set_msg_callback() or SSL_set_msg_callback() can be used
> to define a message callback function cb for observing all SSL/TLS
> protocol messages (such as handshake messages) that are received or sent."
>
> Here is the patch:
>
> https://github.com/tweksteen/abrupt-usecase/blob/master/python-ssl-3.2.3.patch
>
> Let me know your opinion on that. Does it worth being included?

python-dev would probably be the best place to ask, since they have
the ultimate say on whether to accept your patch:
http://mail.python.org/mailman/listinfo/python-dev/
and/or you can file a bug in the tracker with your patch attached:
http://bugs.python.org/

On the face of it, the feature sounds fairly useful for debugging.

Cheers,
Chris

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web