Prefer OpenSSL 1.0
This commit is contained in:
parent
4bb7e04f2a
commit
8650651567
2 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ def openLibrary():
|
||||||
ssl = _OpenSSL(dll_path)
|
ssl = _OpenSSL(dll_path)
|
||||||
assert ssl
|
assert ssl
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
ssl = _OpenSSL(ctypes.util.find_library('ssl') or ctypes.util.find_library('crypto') or ctypes.util.find_library('libcrypto') or 'libeay32')
|
ssl = _OpenSSL(ctypes.util.find_library('ssl.so.1.0') or ctypes.util.find_library('ssl') or ctypes.util.find_library('crypto') or ctypes.util.find_library('libcrypto') or 'libeay32')
|
||||||
logging.debug("opensslVerify loaded: %s", ssl._lib)
|
logging.debug("opensslVerify loaded: %s", ssl._lib)
|
||||||
|
|
||||||
openLibrary()
|
openLibrary()
|
||||||
|
|
|
@ -509,7 +509,7 @@ def loadOpenSSL():
|
||||||
ssl = _OpenSSL(dll_path)
|
ssl = _OpenSSL(dll_path)
|
||||||
assert ssl
|
assert ssl
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
ssl = _OpenSSL(ctypes.util.find_library('ssl') or ctypes.util.find_library('crypto') or ctypes.util.find_library('libcrypto') or 'libeay32')
|
ssl = _OpenSSL(ctypes.util.find_library('ssl.so.1.0') or ctypes.util.find_library('ssl') or ctypes.util.find_library('crypto') or ctypes.util.find_library('libcrypto') or 'libeay32')
|
||||||
OpenSSL = ssl
|
OpenSSL = ssl
|
||||||
logging.debug("pyelliptic loaded: %s", ssl._lib)
|
logging.debug("pyelliptic loaded: %s", ssl._lib)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue