From 50b74c2223bd63db88504d9f23bc80556013bd29 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 9 Mar 2018 16:41:20 +0200 Subject: [PATCH] No lib symlinks in openwrt --- src/depends.py | 2 +- src/pyelliptic/openssl.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/depends.py b/src/depends.py index d66663b1..04656530 100755 --- a/src/depends.py +++ b/src/depends.py @@ -93,7 +93,7 @@ def check_openssl(): import os.path paths.insert(0, os.path.join(sys._MEIPASS, 'libeay32.dll')) else: - paths = ['libcrypto.so'] + paths = ['libcrypto.so', 'libcrypto.so.1.0.0'] if sys.platform == 'darwin': paths.extend([ 'libcrypto.dylib', diff --git a/src/pyelliptic/openssl.py b/src/pyelliptic/openssl.py index 7af4fd18..115bdc08 100644 --- a/src/pyelliptic/openssl.py +++ b/src/pyelliptic/openssl.py @@ -534,6 +534,8 @@ def loadOpenSSL(): else: libdir.append('libcrypto.so') libdir.append('libssl.so') + libdir.append('libcrypto.so.1.0.0') + libdir.append('libssl.so.1.0.0') if 'linux' in sys.platform or 'darwin' in sys.platform or 'bsd' in sys.platform: libdir.append(find_library('ssl')) elif 'win32' in sys.platform or 'win64' in sys.platform: