From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.13694.1651255507314257486 for ; Fri, 29 Apr 2022 11:05:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KkkswFrw; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: judah.vang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651255510; x=1682791510; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LahneZaz92gLpQOeymC/J5eu/UnAOraIFAyQFu7BVY4=; b=KkkswFrwFqMbJHTXBbw6EcGASrgNzkM6fPnIvzVinTOnNRYvsCfmRVQI OYxElUSGDqxFpRHOWSYclOqTE9vVGyElVGxr3KPS4GSSS4BJfmS8Ihpj+ 6XvWp/IMMfj0aKVobLh5xK1SN3tNmSxBg3D8wTwGWuINOhB1BPk/K7Wx9 wA3ozTX68iriWB7ql4W/U6ph0mB263oyty1QnAYzEIwmVfbzrXCRaD9er UISa7zFHovr0ZJ578OkApSSeVbmQDp4v49BdMSdsO43b3W/n/RoFJ073f tyKB40CKawsEIgWrjacuvCV+cWdktX2CEWRNpT7pSg1xNTqhPs8PiV4M4 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="248659110" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="248659110" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 11:05:10 -0700 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="514955539" Received: from jvang-mobl.amr.corp.intel.com ([10.212.198.238]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 11:05:09 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Nishant C Mistry Subject: [Patch v2 03/28] MdeModulePkg: Update AUTH_VARIABLE_INFO struct Date: Fri, 29 Apr 2022 11:04:05 -0700 Message-Id: <20220429180430.3292-4-judah.vang@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20220429180430.3292-1-judah.vang@intel.com> References: <20220429180430.3292-1-judah.vang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2594 Added NameSize and State to AUTH_VARIABLE_INFO struct. The size of the name and state is needed when creating the variable digest. Cc: Jian J Wang Cc: Liming Gao Cc: Nishant C Mistry Signed-off-by: Jian J Wang Signed-off-by: Nishant C Mistry Signed-off-by: Judah Vang --- MdeModulePkg/Include/Library/AuthVariableLib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Include/Library/AuthVariableLib.h b/MdeModulePkg/Include/Library/AuthVariableLib.h index 37aceba699e6..32391bbf2b61 100644 --- a/MdeModulePkg/Include/Library/AuthVariableLib.h +++ b/MdeModulePkg/Include/Library/AuthVariableLib.h @@ -1,7 +1,7 @@ /** @file Provides services to initialize and process authenticated variables. -Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -25,9 +25,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData))) typedef struct { + UINTN NameSize; CHAR16 *VariableName; EFI_GUID *VendorGuid; UINT32 Attributes; + UINT8 State; UINTN DataSize; VOID *Data; UINT32 PubKeyIndex; -- 2.35.1.windows.2