Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
- Timestamp:
- Aug 12, 2020 4:09:12 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
r80721 r85718 2 2 X.509 Certificate Handler Wrapper Implementation over OpenSSL. 3 3 4 Copyright (c) 2010 - 20 18, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR> 5 5 SPDX-License-Identifier: BSD-2-Clause-Patent 6 6 … … 61 61 62 62 If X509Stack is NULL, then return FALSE. 63 If this interface is not supported, then return FALSE. 63 64 64 65 @param[in, out] X509Stack On input, pointer to an existing or NULL X509 stack object. 65 66 On output, pointer to the X509 stack object with new 66 67 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 68 70 by certificate size. A NULL terminates the list. The 69 71 pairs are the arguments to X509ConstructCertificate(). … … 71 73 @retval TRUE The X509 stack construction succeeded. 72 74 @retval FALSE The construction operation failed. 75 @retval FALSE This interface is not supported. 73 76 74 77 **/ 75 78 BOOLEAN 76 79 EFIAPI 77 X509ConstructCertificateStack (78 IN OUT UINT8 **X509Stack,79 ...80 X509ConstructCertificateStackV ( 81 IN OUT UINT8 **X509Stack, 82 IN VA_LIST Args 80 83 ) 81 84 { … … 85 88 STACK_OF(X509) *CertStack; 86 89 BOOLEAN Status; 87 VA_LIST Args;88 90 UINTN Index; 89 91 … … 107 109 } 108 110 } 109 110 VA_START (Args, X509Stack);111 111 112 112 for (Index = 0; ; Index++) { … … 146 146 } 147 147 148 VA_END (Args);149 150 148 if (!Status) { 151 149 sk_X509_pop_free (CertStack, X509_free); … … 155 153 156 154 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 **/ 173 BOOLEAN 174 EFIAPI 175 X509ConstructCertificateStack ( 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; 157 187 } 158 188
Note:
See TracChangeset
for help on using the changeset viewer.