debug: add OpenSSL

This commit is contained in:
Aldo Cortesi 2016-06-11 21:06:41 +12:00
parent 3f240b1875
commit 0848d1085e

View File

@ -9,12 +9,15 @@ import psutil
from netlib import version from netlib import version
from OpenSSL import SSL;
def sysinfo(): def sysinfo():
data = [ data = [
"Mitmproxy version: %s" % version.VERSION, "Mitmproxy version: %s" % version.VERSION,
"Python version: %s" % platform.python_version(), "Python version: %s" % platform.python_version(),
"Platform: %s" % platform.platform(), "Platform: %s" % platform.platform(),
"SSL version: %s" % SSL.SSLeay_version(SSL.SSLEAY_VERSION),
] ]
d = platform.linux_distribution() d = platform.linux_distribution()
t = "Linux distro: %s %s %s" % d t = "Linux distro: %s %s %s" % d