VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133262
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h

    r77662 r80721  
    33
    44Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
    5 This program and the accompanying materials
    6 are licensed and made available under the terms and conditions of the BSD License
    7 which accompanies this distribution.  The full text of the license may be found at
    8 http://opensource.org/licenses/bsd-license.php
    9 
    10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     5SPDX-License-Identifier: BSD-2-Clause-Patent
    126
    137**/
     
    3428#endif
    3529
     30/**
     31  Check input P7Data is a wrapped ContentInfo structure or not. If not construct
     32  a new structure to wrap P7Data.
     33
     34  Caution: This function may receive untrusted input.
     35  UEFI Authenticated Variable is external input, so this function will do basic
     36  check for PKCS#7 data structure.
     37
     38  @param[in]  P7Data       Pointer to the PKCS#7 message to verify.
     39  @param[in]  P7Length     Length of the PKCS#7 message in bytes.
     40  @param[out] WrapFlag     If TRUE P7Data is a ContentInfo structure, otherwise
     41                           return FALSE.
     42  @param[out] WrapData     If return status of this function is TRUE:
     43                           1) when WrapFlag is TRUE, pointer to P7Data.
     44                           2) when WrapFlag is FALSE, pointer to a new ContentInfo
     45                           structure. It's caller's responsibility to free this
     46                           buffer.
     47  @param[out] WrapDataSize Length of ContentInfo structure in bytes.
     48
     49  @retval     TRUE         The operation is finished successfully.
     50  @retval     FALSE        The operation is failed due to lack of resources.
     51
     52**/
     53BOOLEAN
     54WrapPkcs7Data (
     55  IN  CONST UINT8  *P7Data,
     56  IN  UINTN        P7Length,
     57  OUT BOOLEAN      *WrapFlag,
     58  OUT UINT8        **WrapData,
     59  OUT UINTN        *WrapDataSize
     60  );
     61
    3662#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette