]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/TlsAuthConfigDxe: preserve TlsCaCertificate variable attributes
authorLaszlo Ersek <lersek@redhat.com>
Thu, 22 Mar 2018 15:50:55 +0000 (16:50 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 28 Mar 2018 11:07:36 +0000 (13:07 +0200)
commitb90c335fbbb674470fbf09601cc522bf61564c30
treea9bccc99f68c6e016641dc0467a9d67d4465406c
parent0fd13678a6818c1bc241b21f83a3013b17a55a25
NetworkPkg/TlsAuthConfigDxe: preserve TlsCaCertificate variable attributes

If the platform creates the "TlsCaCertificate" variable as volatile, then
EnrollX509toVariable() shouldn't fail to extend it just because
TLS_AUTH_CONFIG_VAR_BASE_ATTR contains the EFI_VARIABLE_NON_VOLATILE
attribute.

Thus, if the variable exists, add the EFI_VARIABLE_APPEND_WRITE attribute
to the variable's current attributes. This is what DeleteCert() does
already.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c