Search for any OpenSSL version in LD_LIBRARY_PATH
This commit is contained in:
parent
3426d5fe63
commit
33af83b2cd
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def getOpensslPath():
|
||||||
lib_dir_paths = os.environ["LD_LIBRARY_PATH"].split(":")
|
lib_dir_paths = os.environ["LD_LIBRARY_PATH"].split(":")
|
||||||
for path in lib_dir_paths:
|
for path in lib_dir_paths:
|
||||||
try:
|
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:
|
except Exception as err:
|
||||||
logging.debug("OpenSSL lib not found in: %s (%s)" % (path, err))
|
logging.debug("OpenSSL lib not found in: %s (%s)" % (path, err))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue