]> granicus.if.org Git - python/commit
bpo-34271: Add ssl debugging helpers (GH-10031)
authorChristian Heimes <christian@python.org>
Fri, 31 May 2019 09:44:05 +0000 (11:44 +0200)
committerGitHub <noreply@github.com>
Fri, 31 May 2019 09:44:05 +0000 (11:44 +0200)
commitc7f7069e77c58e83b847c0bfe4d5aadf6add2e68
tree306bee26619ebc132be4b98fd60d0daf79964cf0
parente9b51c0ad81da1da11ae65840ac8b50a8521373c
bpo-34271: Add ssl debugging helpers (GH-10031)

The ssl module now can dump key material to a keylog file and trace TLS
protocol messages with a tracing callback. The default and stdlib
contexts also support SSLKEYLOGFILE env var.

The msg_callback and related enums are private members. The feature
is designed for internal debugging and not for end users.

Signed-off-by: Christian Heimes <christian@python.org>
Doc/library/ssl.rst
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2018-10-21-17-39-32.bpo-34271.P15VLM.rst [new file with mode: 0644]
Modules/_ssl.c
Modules/_ssl/debughelpers.c [new file with mode: 0644]
setup.py