Support Linux bundle OpenSSL

This commit is contained in:
shortcutme 2019-09-04 20:16:32 +02:00
parent 2a7d7acce0
commit d3fce8ca36
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 10 additions and 7 deletions

View file

@ -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"