Add openssl support for optware and entware

This commit is contained in:
cxgreat2014 2017-01-20 15:29:17 +08:00 committed by GitHub
parent 2dc981496b
commit cdf3b3f011
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ def openLibrary():
dll_path = "/bin/cygcrypto-1.0.0.dll"
elif os.path.isfile("../lib/libcrypto.so"): # ZeroBundle OSX
dll_path = "../lib/libcrypto.so"
elif os.path.isfile("/opt/lib/libcrypto.so.1.0.0"): # For optware and entware
dll_path = "/opt/lib/libcrypto.so.1.0.0"
else:
dll_path = "/usr/local/ssl/lib/libcrypto.so"
ssl = _OpenSSL(dll_path)