[issue12551] Provide data for TLS channel binding

Jacek Konieczny report at bugs.python.org
Thu Jul 14 15:26:03 CEST 2011


Jacek Konieczny <jajcus at jajcus.net> added the comment:

This patch is functionally equivalent, but advertises 'tls-unique' support in a bit different way.

HAS_TLS_UNIQUE is not exposed in the python 'ssl' module, instead a list 'CHANNEL_BINDING_TYPES' is provided (empty when 'tls-unique' is not supported). get_channel_binding raises ValueError if the argument is not on this list. This way the API can be extended to other channel binding types without adding new constants or functions. Adding a new channel binding type would not need any modifications in the API client code (if it is designed to use arbitrary cb types).

----------
Added file: http://bugs.python.org/file22652/tls_channel_binding_alt.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12551>
_______________________________________


More information about the Python-bugs-list mailing list