audk/NetworkPkg/TlsAuthConfigDxe
Laszlo Ersek 6896efdec2 NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval
Per spec, the GetVariable() runtime service is not required to populate
(*Attributes) on output when it fails with EFI_BUFFER_TOO_SMALL.

Therefore we have to fetch the full contents of the TlsCaCertificate
variable temporarily, just so we can (a) get the current attributes, and
(b) add EFI_VARIABLE_APPEND_WRITE to them for the subsequent SetVariable()
call.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Songpeng Li <songpeng.li@intel.com>
Reported-by: Songpeng Li <songpeng.li@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1090
Fixes: b90c335fbb
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Songpeng Li <songpeng.li@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
2018-08-22 10:32:43 +02:00
..
TlsAuthConfigDxe.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
TlsAuthConfigDxe.inf NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
TlsAuthConfigDxe.uni NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00
TlsAuthConfigDxeExtra.uni NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00
TlsAuthConfigDxeStrings.uni NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00
TlsAuthConfigImpl.c NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval 2018-08-22 10:32:43 +02:00
TlsAuthConfigImpl.h NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00
TlsAuthConfigNvData.h NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00
TlsAuthConfigVfr.vfr NetworkPkg: Convert files to CRLF line ending 2017-04-06 15:43:48 +08:00