You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Openssl 1.1.1i tool support
Openssl 1.1.1 is an installable and it creates openssl.exe in a bin folder. default slimboot path: c:\Openssl\bin\openssl.exe Added support to populate OPENSSL_PATH from bin dir incase its available. Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
This commit is contained in:
committed by
Maurice Ma
parent
e41578e663
commit
72ab5b437a
@@ -187,11 +187,15 @@ def check_files_exist (base_name_list, dir = '', ext = ''):
|
||||
def get_openssl_path ():
|
||||
if os.name == 'nt':
|
||||
if 'OPENSSL_PATH' not in os.environ:
|
||||
os.environ['OPENSSL_PATH'] = "C:\\Openssl\\"
|
||||
if 'OPENSSL_CONF' not in os.environ:
|
||||
openssl_cfg = "C:\\Openssl\\openssl.cfg"
|
||||
if os.path.exists(openssl_cfg):
|
||||
os.environ['OPENSSL_CONF'] = openssl_cfg
|
||||
openssl_dir = "C:\\Openssl\\bin\\"
|
||||
if os.path.exists (openssl_dir):
|
||||
os.environ['OPENSSL_PATH'] = openssl_dir
|
||||
else:
|
||||
os.environ['OPENSSL_PATH'] = "C:\\Openssl\\"
|
||||
if 'OPENSSL_CONF' not in os.environ:
|
||||
openssl_cfg = "C:\\Openssl\\openssl.cfg"
|
||||
if os.path.exists(openssl_cfg):
|
||||
os.environ['OPENSSL_CONF'] = openssl_cfg
|
||||
openssl = os.path.join(os.environ.get ('OPENSSL_PATH', ''), 'openssl')
|
||||
return openssl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user