Rev267, Hotfix for problems caused by changes in rev260, Fix unhandled exception on failed port checking

This commit is contained in:
HelloZeroNet 2015-07-02 02:31:52 +02:00
parent 0ca0c754e6
commit 3bd1c119eb
3 changed files with 4 additions and 3 deletions

View file

@ -404,7 +404,7 @@ def closeLibrary():
def getMessagePubkey(message, sig):
pkey = ssl.EC_KEY_new_by_curve_name(NID_secp256k1)
if not pkey.value:
if type(pkey) is not int and not pkey.value:
raise Exception(
"OpenSSL %s (%s) EC_KEY_new_by_curve_name failed: %s, probably your OpenSSL lib does not support secp256k1 elliptic curve. Please check: https://github.com/HelloZeroNet/ZeroNet/issues/132" %
(openssl_version, ssl._lib._name, pkey.value)