From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E8BBC1A1E48 for ; Tue, 20 Sep 2016 03:51:48 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP; 20 Sep 2016 03:51:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,367,1470726000"; d="scan'208";a="11682952" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.9]) by orsmga004.jf.intel.com with ESMTP; 20 Sep 2016 03:51:47 -0700 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Chao B Zhang , Jiewen Yao Date: Tue, 20 Sep 2016 18:51:30 +0800 Message-Id: <1474368693-180984-4-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1474368693-180984-1-git-send-email-star.zeng@intel.com> References: <1474368693-180984-1-git-send-email-star.zeng@intel.com> Subject: [PATCH 3/6] SecuriryPkg/TPM2: Update function header of GetDigestFromDigestList() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 10:51:49 -0000 Update the return status description and use OUT identifier instead of IN for Digest parameter, no functionality change. Cc: Chao B Zhang Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- SecurityPkg/Include/Library/Tpm2CommandLib.h | 12 ++++++------ SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/SecurityPkg/Include/Library/Tpm2CommandLib.h b/SecurityPkg/Include/Library/Tpm2CommandLib.h index 197d64958634..1a837fd11f42 100644 --- a/SecurityPkg/Include/Library/Tpm2CommandLib.h +++ b/SecurityPkg/Include/Library/Tpm2CommandLib.h @@ -991,19 +991,19 @@ GetHashSizeFromAlgo ( /** This function get digest from digest list. - @param HashAlg digest algorithm - @param DigestList digest list - @param Digest digest + @param[in] HashAlg Digest algorithm + @param[in] DigestList Digest list + @param[out] Digest Digest - @retval EFI_SUCCESS Sha1Digest is found and returned. - @retval EFI_NOT_FOUND Sha1Digest is not found. + @retval EFI_SUCCESS Digest is found and returned. + @retval EFI_NOT_FOUND Digest is not found. **/ EFI_STATUS EFIAPI GetDigestFromDigestList( IN TPMI_ALG_HASH HashAlg, IN TPML_DIGEST_VALUES *DigestList, - IN VOID *Digest + OUT VOID *Digest ); #endif diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c index b40c2ab09d30..2df18dfe070a 100644 --- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c +++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c @@ -168,19 +168,19 @@ CopyAuthSessionResponse ( /** This function get digest from digest list. - @param HashAlg digest algorithm - @param DigestList digest list - @param Digest digest + @param[in] HashAlg Digest algorithm + @param[in] DigestList Digest list + @param[out] Digest Digest - @retval EFI_SUCCESS Sha1Digest is found and returned. - @retval EFI_NOT_FOUND Sha1Digest is not found. + @retval EFI_SUCCESS Digest is found and returned. + @retval EFI_NOT_FOUND Digest is not found. **/ EFI_STATUS EFIAPI GetDigestFromDigestList ( IN TPMI_ALG_HASH HashAlg, IN TPML_DIGEST_VALUES *DigestList, - IN VOID *Digest + OUT VOID *Digest ) { UINTN Index; @@ -199,4 +199,4 @@ GetDigestFromDigestList ( } return EFI_NOT_FOUND; -} \ No newline at end of file +} -- 2.7.0.windows.1