audk/SecurityPkg
Laszlo Ersek 1bf5007428 SecurityPkg/SecureBootConfigDxe: replace OpenFileByDevicePath() with UefiLib API
Replace the OpenFileByDevicePath() function with EfiOpenFileByDevicePath()
from UefiLib, correcting the following issues:

- imprecise comments on OpenFileByDevicePath(),
- code duplication between this module and other modules,
- local variable name "EfiSimpleFileSystemProtocol" starting with "Efi"
  prefix,
- bogus "FileHandle = NULL" assignments,
- leaking "Handle1" when the device path type/subtype check or the
  realignment-motivated AllocateCopyPool() fails in the loop,
- stale SHELL_FILE_HANDLE reference in a comment.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Roman Bacik <roman.bacik@broadcom.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1008
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-08-16 20:02:50 +02:00
..
Hash2DxeCrypto SecurityPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:48 +08:00
Include SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode. 2018-08-16 08:41:59 +08:00
Library SecurityPkg: HashLib: Update HashLib file GUID 2018-08-10 09:05:27 +08:00
Pkcs7Verify/Pkcs7VerifyDxe SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
RandomNumberGenerator/RngDxe SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
Tcg SecurityPkg/Tcg: Add use case for new Perf macro 2018-07-26 13:37:59 +08:00
UserIdentification SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
VariableAuthenticated/SecureBootConfigDxe SecurityPkg/SecureBootConfigDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
SecurityPkg.dec SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecurityPkg.dsc SecurityPkg:DSC: Fix 2 DSC build error 2018-07-28 13:49:13 +08:00
SecurityPkg.uni SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00
SecurityPkgExtra.uni SecurityPkg: Clean up source files 2018-06-28 11:19:50 +08:00