audk/NetworkPkg
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
..
Application NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
Dhcp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
DnsDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
HttpBootDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
HttpDxe NetworkPkg/HttpDxe: Strip square brackets in IPv6 expressed HostName. 2018-08-03 08:34:03 +08:00
HttpUtilitiesDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
IScsiDxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
Include/Guid NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
Ip6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
IpSecDxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
Mtftp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
TcpDxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
TlsAuthConfigDxe NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval 2018-08-22 10:32:43 +02:00
TlsDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
Udp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
UefiPxeBcDxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
NetworkPkg.dec NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
NetworkPkg.dsc NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
NetworkPkg.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
NetworkPkgExtra.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00