diff options
author | Laszlo Ersek <lersek@redhat.com> | 2018-03-22 16:50:55 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2018-03-28 13:07:36 +0200 |
commit | b90c335fbbb674470fbf09601cc522bf61564c30 (patch) | |
tree | a9bccc99f68c6e016641dc0467a9d67d4465406c /BaseTools/Source/Python/GenFds | |
parent | 0fd13678a6818c1bc241b21f83a3013b17a55a25 (diff) | |
download | edk2-b90c335fbbb674470fbf09601cc522bf61564c30.tar.gz edk2-b90c335fbbb674470fbf09601cc522bf61564c30.tar.bz2 edk2-b90c335fbbb674470fbf09601cc522bf61564c30.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/GenFds')
0 files changed, 0 insertions, 0 deletions