From c137e334d227a7956b2b3949ea2d440899b4814e Mon Sep 17 00:00:00 2001 From: mailchuck Date: Thu, 21 Jan 2016 17:57:00 +0100 Subject: [PATCH] OpenSSL version for support contact form --- src/bitmessageqt/support.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index 6683756b..2c78ea32 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -1,5 +1,6 @@ import ctypes from PyQt4 import QtCore, QtGui +import ssl import sys import time @@ -10,6 +11,7 @@ from helper_sql import * from l10n import getTranslationLanguage from openclpow import has_opencl from proofofwork import bmpow +from pyelliptic.openssl import OpenSSL import shared # this is BM support address going to Peter Surda @@ -32,6 +34,8 @@ Please write above this line and if possible, keep the information about your en PyBitmesage version: {} Operating system: {} Architecture: {}bit +Python Version: {} +OpenSSL Version: {} Frozen: {} Portable mode: {} C PoW: {} @@ -89,6 +93,14 @@ def createSupportMessage(myapp): except: pass architecture = "32" if ctypes.sizeof(ctypes.c_voidp) == 4 else "64" + pythonversion = sys.version + + SSLEAY_VERSION = 0 + OpenSSL._lib.SSLeay.restype = ctypes.c_long + OpenSSL._lib.SSLeay_version.restype = ctypes.c_char_p + OpenSSL._lib.SSLeay_version.argtypes = [ctypes.c_int] + opensslversion = "%s (Python internal), %s (external for PyElliptic)" % (ssl.OPENSSL_VERSION, OpenSSL._lib.SSLeay_version(SSLEAY_VERSION)) + frozen = "N/A" if shared.frozen: frozen = shared.frozen @@ -108,7 +120,7 @@ def createSupportMessage(myapp): upnp = "N/A" connectedhosts = len(shared.connectedHostsList) - myapp.ui.textEditMessage.setText(str(QtGui.QApplication.translate("Support", SUPPORT_MESSAGE)).format(version, os, architecture, frozen, portablemode, cpow, openclpow, locale, socks, upnp, connectedhosts)) + myapp.ui.textEditMessage.setText(str(QtGui.QApplication.translate("Support", SUPPORT_MESSAGE)).format(version, os, architecture, pythonversion, opensslversion, frozen, portablemode, cpow, openclpow, locale, socks, upnp, connectedhosts)) # single msg tab myapp.ui.tabWidgetSend.setCurrentIndex(0)