]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Rsa2048Sha256GenerateKeys to support OPENSSL_PATH has space
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 19 Apr 2017 09:53:50 +0000 (17:53 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Thu, 27 Apr 2017 13:21:30 +0000 (21:21 +0800)
Update Rsa2048Sha256GenerateKeys 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>
BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py

index df2d9896ca2661c49b0a8a2931eaaa2761ba3ea6..95a636966c5932050c87d202d24810e79cae85e8 100644 (file)
@@ -64,6 +64,8 @@ if __name__ == '__main__':
   try:\r
     OpenSslPath = os.environ['OPENSSL_PATH']\r
     OpenSslCommand = os.path.join(OpenSslPath, OpenSslCommand)\r
+    if ' ' in OpenSslCommand:\r
+      OpenSslCommand = '"' + OpenSslCommand + '"'\r
   except:\r
     pass\r
 \r