X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FLibrary%2FDxeImageVerificationLib%2FMeasurement.c;h=3f0d4f25eb3181f8f20b1f6dd01e37da837c6a4f;hp=6b98747d4a8084fa6ce6e08cbaa0ecfb7e9ef48e;hb=b3548d32ddb553a9e95503457c66d11462622d16;hpb=9d77acf1566fae033ae2dad0ddc8d8565f1c6f4a diff --git a/SecurityPkg/Library/DxeImageVerificationLib/Measurement.c b/SecurityPkg/Library/DxeImageVerificationLib/Measurement.c index 6b98747d4a..3f0d4f25eb 100644 --- a/SecurityPkg/Library/DxeImageVerificationLib/Measurement.c +++ b/SecurityPkg/Library/DxeImageVerificationLib/Measurement.c @@ -1,7 +1,7 @@ /** @file Measure TCG required variable. -Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -97,9 +97,9 @@ AssignVendorGuid ( @param[in] VarName A Null-terminated string that is the name of the vendor's variable. @param[in] VendorGuid A unique identifier for the vendor. - @param[in] VarData The content of the variable data. - @param[in] VarSize The size of the variable data. - + @param[in] VarData The content of the variable data. + @param[in] VarSize The size of the variable data. + @retval EFI_SUCCESS Operation completed successfully. @retval EFI_OUT_OF_RESOURCES Out of memory. **/ @@ -151,8 +151,8 @@ AddDataMeasured ( @param[in] VarName A Null-terminated string that is the name of the vendor's variable. @param[in] VendorGuid A unique identifier for the vendor. - @param[in] VarData The content of the variable data. - @param[in] VarSize The size of the variable data. + @param[in] VarData The content of the variable data. + @param[in] VarSize The size of the variable data. @retval TRUE The data is already measured. @retval FALSE The data is not measured yet. @@ -197,7 +197,7 @@ IsSecureAuthorityVariable ( UINTN Index; for (Index = 0; Index < sizeof(mVariableType)/sizeof(mVariableType[0]); Index++) { - if ((StrCmp (VariableName, mVariableType[Index].VariableName) == 0) && + if ((StrCmp (VariableName, mVariableType[Index].VariableName) == 0) && (CompareGuid (VendorGuid, mVariableType[Index].VendorGuid))) { return TRUE; } @@ -210,9 +210,9 @@ IsSecureAuthorityVariable ( @param[in] VarName A Null-terminated string that is the name of the vendor's variable. @param[in] VendorGuid A unique identifier for the vendor. - @param[in] VarData The content of the variable data. - @param[in] VarSize The size of the variable data. - + @param[in] VarData The content of the variable data. + @param[in] VarSize The size of the variable data. + @retval EFI_SUCCESS Operation completed successfully. @retval EFI_OUT_OF_RESOURCES Out of memory. @retval EFI_DEVICE_ERROR The operation was unsuccessful.