HomePhabricator

sslutil: add support for SSLKEYLOGFILE to wrapsocket

Authored by durin42.

Description

sslutil: add support for SSLKEYLOGFILE to wrapsocket

I recently learned of a Firefox/Chrome feature that allows
wiresharking otherwise-TLS'd network connections. Gloriously, there's
a pypi module that enables this same feature on Python, so let's add
support for it to Mercurial in case we need to wireshark some HTTPs
connections.

Differential Revision: https://phab.mercurial-scm.org/D6343

Details