Indepently configurable OpenSSL lib/bin file
This commit is contained in:
parent
b1819ff71d
commit
1cc0ec3f31
3 changed files with 19 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue