diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-19 17:52:58 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-27 21:20:19 +0800 |
commit | a3607b263baabb360dcc67aeb26f9e80018ee3cd (patch) | |
tree | 2ed6e3b0cd32ad7d128dd84bb94222d8626fbfe9 /BaseTools/Source/Python/Rsa2048Sha256Sign | |
parent | b10515378d0a87d36207e44ca1ee02d02918f47c (diff) | |
download | edk2-a3607b263baabb360dcc67aeb26f9e80018ee3cd.tar.gz edk2-a3607b263baabb360dcc67aeb26f9e80018ee3cd.tar.bz2 edk2-a3607b263baabb360dcc67aeb26f9e80018ee3cd.zip |
BaseTools: Rsa2048Sha256Sign Tool to support OPENSSL_PATH has space
Update Rsa2048Sha256Sign Tool to support the case that OPENSSL_PATH has
space characters.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Rsa2048Sha256Sign')
-rw-r--r-- | BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py index 4367194c23..1ae6ebb358 100644 --- a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py +++ b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py @@ -85,6 +85,8 @@ if __name__ == '__main__': try:
OpenSslPath = os.environ['OPENSSL_PATH']
OpenSslCommand = os.path.join(OpenSslPath, OpenSslCommand)
+ if ' ' in OpenSslCommand:
+ OpenSslCommand = '"' + OpenSslCommand + '"'
except:
pass
|