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


Groups > comp.lang.python > #26063

ssl: add msg_callback

Date 2012-07-26 13:47 +1000
From Thiébaud Weksteen <thiebaud@weksteen.fr>
Subject ssl: add msg_callback
Newsgroups comp.lang.python
Message-ID <mailman.2588.1343281342.4697.python-list@python.org> (permalink)

Show all headers | View raw


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:
"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?

Thiébaud

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

ssl: add msg_callback Thiébaud Weksteen <thiebaud@weksteen.fr> - 2012-07-26 13:47 +1000

csiph-web