]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c
NetworkPkg/TlsAuthConfigDxe: Close and free the file related resource
authorJiaxin Wu <jiaxin.wu@intel.com>
Mon, 10 Apr 2017 02:30:38 +0000 (10:30 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 21 Apr 2017 05:05:27 +0000 (13:05 +0800)
commit8ca417688363da941b329ce134e074971e864c34
tree51ed1a030485915f4d3fe1c9b4a3260cedb1af24
parent8cdd559be622f7a35731b7f973d8b82d1c9e303e
NetworkPkg/TlsAuthConfigDxe: Close and free the file related resource

v2:
* Define one new internal function to clean the file content.

TlsAuthConfigDxe open file by FileExplorerLib. It need to close
file handler and free file related resource in some cases.
* User enrolls Cert by escape the Config page.
* The Cert is not X509 type.
* User chooses another file after he selected a file.

Cc: Zhang Chao B <chao.b.zhang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Chao Zhang<chao.b.zhang@intel.com>
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c