Support Linux bundle OpenSSL
This commit is contained in:
parent
2a7d7acce0
commit
d3fce8ca36
2 changed files with 10 additions and 7 deletions
|
@ -11,11 +11,13 @@ from util import helper
|
|||
|
||||
class CryptConnectionManager:
|
||||
def __init__(self):
|
||||
# OpenSSL params
|
||||
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_env = {
|
||||
"OPENSSL_CONF": "src/lib/openssl/openssl.cnf",
|
||||
"RANDFILE": config.data_dir + "/openssl-rand.tmp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue