From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web12.2211.1587022450060282729 for ; Thu, 16 Apr 2020 00:34:10 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: guomin.jiang@intel.com) IronPort-SDR: nSba6SU2WhTWD+LXjfVHKYNbNIuU16FEyvggdLF2wf9Gt4rqa/nsErmqnYC+yYXvoWCvco7EX8 T7T3hx4MAflg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 00:34:03 -0700 IronPort-SDR: lJG1Y6AtzWeEz1Mb2rR2redkj/1ocLqEdBJn8VCSUBA/S9wl0AGV9kofwaUr5chLFfmPWqPtyM sd7kTvzuEkFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,390,1580803200"; d="scan'208";a="288803641" Received: from guominji-mobl.ccr.corp.intel.com ([10.238.5.173]) by fmsmga002.fm.intel.com with ESMTP; 16 Apr 2020 00:34:01 -0700 From: "Guomin Jiang" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Liming Gao Subject: [PATCH v2 4/6] MdeModulePkg/SecurityManagementLib: Mark the File parameter as OPTIONAL Date: Thu, 16 Apr 2020 15:33:52 +0800 Message-Id: <20200416073354.2232-5-guomin.jiang@intel.com> X-Mailer: git-send-email 2.25.1.windows.1 In-Reply-To: <20200416073354.2232-1-guomin.jiang@intel.com> References: <20200416073354.2232-1-guomin.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2652 According to the File description, the File is optional and can be NULL. Signed-off-by: Guomin Jiang Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Liming Gao --- MdeModulePkg/Include/Library/SecurityManagementLib.h | 2 +- .../Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Include/Library/SecurityManagementLib.h b/MdeModu= lePkg/Include/Library/SecurityManagementLib.h index c6ef8c38b9..9bb29121af 100644 --- a/MdeModulePkg/Include/Library/SecurityManagementLib.h +++ b/MdeModulePkg/Include/Library/SecurityManagementLib.h @@ -261,7 +261,7 @@ EFIAPI ExecuteSecurity2Handlers (=0D IN UINT32 AuthenticationOperation,=0D IN UINT32 AuthenticationStatus,=0D - IN CONST EFI_DEVICE_PATH_PROTOCOL *File,=0D + IN CONST EFI_DEVICE_PATH_PROTOCOL *File, OPTIONAL=0D IN VOID *FileBuffer,=0D IN UINTN FileSize,=0D IN BOOLEAN BootPolicy=0D diff --git a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManag= ementLib.c b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManag= ementLib.c index b541dbab3c..de1eb53183 100644 --- a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLi= b.c +++ b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLi= b.c @@ -473,7 +473,7 @@ EFIAPI ExecuteSecurity2Handlers (=0D IN UINT32 AuthenticationOperation,=0D IN UINT32 AuthenticationStatus,=0D - IN CONST EFI_DEVICE_PATH_PROTOCOL *File,=0D + IN CONST EFI_DEVICE_PATH_PROTOCOL *File, OPTIONAL=0D IN VOID *FileBuffer,=0D IN UINTN FileSize,=0D IN BOOLEAN BootPolicy=0D --=20 2.25.1.windows.1