VirtualBox

Ignore:
Timestamp:
Aug 12, 2020 4:09:12 PM (4 years ago)
Author:
vboxsync
Message:

Devices/EFI: Merge edk-stable202005 and make it build, 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/Pk/CryptX509.c

    r80721 r85718  
    22  X.509 Certificate Handler Wrapper Implementation over OpenSSL.
    33
    4 Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
     4Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
    55SPDX-License-Identifier: BSD-2-Clause-Patent
    66
     
    6161
    6262  If X509Stack is NULL, then return FALSE.
     63  If this interface is not supported, then return FALSE.
    6364
    6465  @param[in, out]  X509Stack  On input, pointer to an existing or NULL X509 stack object.
    6566                              On output, pointer to the X509 stack object with new
    6667                              inserted X509 certificate.
    67   @param           ...        A list of DER-encoded single certificate data followed
     68  @param[in]       Args       VA_LIST marker for the variable argument list.
     69                              A list of DER-encoded single certificate data followed
    6870                              by certificate size. A NULL terminates the list. The
    6971                              pairs are the arguments to X509ConstructCertificate().
     
    7173  @retval     TRUE            The X509 stack construction succeeded.
    7274  @retval     FALSE           The construction operation failed.
     75  @retval     FALSE           This interface is not supported.
    7376
    7477**/
    7578BOOLEAN
    7679EFIAPI
    77 X509ConstructCertificateStack (
    78   IN OUT  UINT8  **X509Stack,
    79   ...
     80X509ConstructCertificateStackV (
     81  IN OUT  UINT8    **X509Stack,
     82  IN      VA_LIST  Args
    8083  )
    8184{
     
    8588  STACK_OF(X509)  *CertStack;
    8689  BOOLEAN         Status;
    87   VA_LIST         Args;
    8890  UINTN           Index;
    8991
     
    107109    }
    108110  }
    109 
    110   VA_START (Args, X509Stack);
    111111
    112112  for (Index = 0; ; Index++) {
     
    146146  }
    147147
    148   VA_END (Args);
    149 
    150148  if (!Status) {
    151149    sk_X509_pop_free (CertStack, X509_free);
     
    155153
    156154  return Status;
     155}
     156
     157/**
     158  Construct a X509 stack object from a list of DER-encoded certificate data.
     159
     160  If X509Stack is NULL, then return FALSE.
     161
     162  @param[in, out]  X509Stack  On input, pointer to an existing or NULL X509 stack object.
     163                              On output, pointer to the X509 stack object with new
     164                              inserted X509 certificate.
     165  @param           ...        A list of DER-encoded single certificate data followed
     166                              by certificate size. A NULL terminates the list. The
     167                              pairs are the arguments to X509ConstructCertificate().
     168
     169  @retval     TRUE            The X509 stack construction succeeded.
     170  @retval     FALSE           The construction operation failed.
     171
     172**/
     173BOOLEAN
     174EFIAPI
     175X509ConstructCertificateStack (
     176  IN OUT  UINT8  **X509Stack,
     177  ...
     178  )
     179{
     180  VA_LIST  Args;
     181  BOOLEAN  Result;
     182
     183  VA_START (Args, X509Stack);
     184  Result = X509ConstructCertificateStackV (X509Stack, Args);
     185  VA_END (Args);
     186  return Result;
    157187}
    158188
Note: See TracChangeset for help on using the changeset viewer.

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