Indepently configurable OpenSSL lib/bin file

This commit is contained in:
shortcutme 2020-02-20 17:23:00 +01:00
parent b1819ff71d
commit 1cc0ec3f31
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 19 additions and 13 deletions

View file

@ -11,15 +11,14 @@ from util import helper
class CryptConnectionManager:
def __init__(self):
if config.openssl_path != "default":
self.openssl_bin = config.openssl_path
if config.openssl_bin_file:
self.openssl_bin = config.openssl_bin_file
elif sys.platform.startswith("win"):
self.openssl_bin = "tools\\openssl\\openssl.exe"
elif config.dist_type.startswith("bundle_linux"):
self.openssl_bin = "../runtime/bin/openssl"
else:
if sys.platform.startswith("win"):
self.openssl_bin = "tools\\openssl\\openssl.exe"
elif config.dist_type.startswith("bundle_linux"):
self.openssl_bin = "../runtime/bin/openssl"
else:
self.openssl_bin = "openssl"
self.openssl_bin = "openssl"
self.context_client = None
self.context_server = None