]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Include/Library/SecureBootVariableLib.h
SecurityPkg: SecureBootVariableLib: Updated time based payload creator
[mirror_edk2.git] / SecurityPkg / Include / Library / SecureBootVariableLib.h
index 7b7afd9cde7c75efee6c89eec7404aee8dcea231..9f2d41220b709be624373bb77d8afb096b175493 100644 (file)
@@ -6,6 +6,7 @@ Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>\r
 Copyright (c) 2021, ARM Ltd. All rights reserved.<BR>\r
 Copyright (c) 2021, Semihalf All rights reserved.<BR>\r
+Copyright (c) Microsoft Corporation.\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -24,6 +25,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 --*/\r
 EFI_STATUS\r
+EFIAPI\r
 SetSecureBootMode (\r
   IN  UINT8  SecureBootMode\r
   );\r
@@ -73,6 +75,7 @@ SecureBootFetchData (
                                    pointer to NULL to wrap an empty payload.\r
                                    On output, Pointer to the new payload date buffer allocated from pool,\r
                                    it's caller's responsibility to free the memory when finish using it.\r
+  @param[in]        Time           Pointer to time information to created time based payload.\r
 \r
   @retval EFI_SUCCESS              Create time based payload successfully.\r
   @retval EFI_OUT_OF_RESOURCES     There are not enough memory resources to create time based payload.\r
@@ -81,9 +84,11 @@ SecureBootFetchData (
 \r
 --*/\r
 EFI_STATUS\r
+EFIAPI\r
 CreateTimeBasedPayload (\r
-  IN OUT UINTN  *DataSize,\r
-  IN OUT UINT8  **Data\r
+  IN OUT UINTN     *DataSize,\r
+  IN OUT UINT8     **Data,\r
+  IN     EFI_TIME  *Time\r
   );\r
 \r
 /**\r