From: Laszlo Ersek Date: Thu, 22 Mar 2018 15:50:55 +0000 (+0100) Subject: NetworkPkg/TlsAuthConfigDxe: preserve TlsCaCertificate variable attributes X-Git-Tag: edk2-stable201903~2036 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=b90c335fbbb674470fbf09601cc522bf61564c30;hp=b90c335fbbb674470fbf09601cc522bf61564c30 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 Cc: Siyuan Fu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Fu Siyuan Reviewed-by: Jiaxin Wu ---