Search for any OpenSSL version in LD_LIBRARY_PATH

This commit is contained in:
Ivanq 2020-03-10 22:31:26 +03:00 committed by GitHub
parent 3426d5fe63
commit 33af83b2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def getOpensslPath():
lib_dir_paths = os.environ["LD_LIBRARY_PATH"].split(":")
for path in lib_dir_paths:
try:
return [lib for lib in os.listdir(path) if "libcrypto.so.1.0" in lib][0]
return [lib for lib in os.listdir(path) if "libcrypto.so" in lib][0]
except Exception as err:
logging.debug("OpenSSL lib not found in: %s (%s)" % (path, err))