ssl: add msg_callback

Discussion in 'Python' started by Thiébaud Weksteen, Jul 26, 2012.

  1. 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
     
    Thiébaud Weksteen, Jul 26, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. 620
    Replies:
    2
    Views:
    1,059
    Murat Tunaboylu
    Jan 6, 2004
  2. CW
    Replies:
    2
    Views:
    557
  3. Sean Wolfe
    Replies:
    1
    Views:
    2,313
    Joerg Jooss
    Apr 28, 2005
  4. Chris Rebert

    Re: ssl: add msg_callback

    Chris Rebert, Jul 26, 2012, in forum: Python
    Replies:
    0
    Views:
    190
    Chris Rebert
    Jul 26, 2012
  5. Antoine Pitrou

    Re: ssl: add msg_callback

    Antoine Pitrou, Jul 26, 2012, in forum: Python
    Replies:
    0
    Views:
    186
    Antoine Pitrou
    Jul 26, 2012
Loading...

Share This Page