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


Groups > comp.lang.python > #26064

Re: ssl: add msg_callback

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'debugging.': 0.07; 'python': 0.09; 'callback': 0.09; 'indicates': 0.09; 'received :mail-vc0-f174.google.com': 0.09; 'underscore': 0.09; 'url:github': 0.09; 'bug': 0.10; 'cc:addr:python-list': 0.10; 'library': 0.15; '_ssl': 0.16; 'handshake': 0.16; 'messages)': 0.16; 'python-list,': 0.16; 'url:patch': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'module': 0.19; 'define': 0.20; 'tracker': 0.20; 'fairly': 0.21; 'cheers,': 0.23; 'cc:2**0': 0.23; 'patch': 0.24; 'cc:no real name:2**0': 0.24; 'feature': 0.24; 'url:bugs': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'wrote': 0.26; 'skip:" 20': 0.26; '(such': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; 'received:209.85.220.174': 0.29; 'url:mailman': 0.29; 'probably': 0.29; 'that.': 0.30; 'function': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'protocol': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'url:org': 0.36; 'modules': 0.36; 'useful': 0.36; 'does': 0.37; 'being': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'face': 0.61; 'worth': 0.63; 'here': 0.65; 'details,': 0.65; 'jul': 0.65; 'surprise': 0.65; 'sounds': 0.71; 'ask,': 0.84; 'python-dev': 0.84; 'sender:addr:chris': 0.84; 'url:master': 0.84; 'url:python-dev': 0.84; 'subject:add': 0.91; 'ultimate': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DVNXsZNQEPZlYFL5EQqsKgi68WW1GQ5xzCPahar55Bw=; b=bD+25pQfoiFzLzVfXpc8qEBf///3qUn7z7MNO+toA6bXDbbltUygxXVXrK57d6IuAF Zwol0+arTjpAW7O3PrDhu4bEBs/lK3Mmy6x86g7ehiH8vMe9LTTmzYELq8y7zW5BUIGa iLquyZXPpAuzxEm+213dFz6Wj6oHAAdM7Jov8=
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=DVNXsZNQEPZlYFL5EQqsKgi68WW1GQ5xzCPahar55Bw=; b=OlzUwOGpGAI5W8/aiQeL/wgfkSf8ROfoK1O8X2OjLgeyM3NBy4Xb8VNI5NY5E8zoHG J7H5Oq7f35e1s5e5+q4cN7EbDAohGzJiVxLr1sD0k6cHqK45+ZHLGCONz+cwiB8ZoIYS kHdXV/uA0F07LMu2J6BqLg6nFDAKkzlVtIIxNbkBYbLUyob+lemLD4IeqGtnfAIsR3fy BjUQJeq/c0+4MwU1+RD9Dk1+VCJIz8WPQBIpPLI++kYheQ/hlWSUe93BYrRVScVk2234 B27JgJ5YZVLTzJwRH2MBMIQ37XS4uWrRyO+62wkgEKfZyPxpCnIf3S/Dc5+R8SEcGJJi 8Crg==
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <35c62d1b461a1b016ff18a3ba2f7936e@localhost>
References <35c62d1b461a1b016ff18a3ba2f7936e@localhost>
Date Wed, 25 Jul 2012 22:56:18 -0700
X-Google-Sender-Auth yILR4n7NW2qEsol4mH13y3gpEWs
Subject Re: ssl: add msg_callback
From Chris Rebert <clp2@rebertia.com>
To ThiƩbaud Weksteen <thiebaud@weksteen.fr>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Gm-Message-State ALoCoQlYkRGYC5WoFPbaKhZWkYScaYw1UNwA2Q7j3BqMqFueia7zsC1t8tPPufMgjh6qI4FbRG1p
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2589.1343282180.4697.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343282180 news.xs4all.nl 6884 [2001:888:2000:d::a6]:56767
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26064

Show key headers only | View raw


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

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


Thread

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

csiph-web