]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
Add two new interfaces Pkcs7GetSigners and Pkcs7FreeSigners to BaseCryptLib.
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / InternalCryptLib.h
1 /** @file
2 Internal include file for BaseCryptLib.
3
4 Copyright (c) 2010 - 2012, 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.
12
13 **/
14
15 #ifndef __INTERNAL_CRYPT_LIB_H__
16 #define __INTERNAL_CRYPT_LIB_H__
17
18 #include <Library/BaseLib.h>
19 #include <Library/BaseMemoryLib.h>
20 #include <Library/MemoryAllocationLib.h>
21 #include <Library/DebugLib.h>
22 #include <Library/BaseCryptLib.h>
23
24 //
25 // Environment Setting for OpenSSL-based UEFI Crypto Library.
26 //
27 #ifndef OPENSSL_SYSNAME_UWIN
28 #define OPENSSL_SYSNAME_UWIN
29 #endif
30
31 /**
32 Pop single certificate from STACK_OF(X509).
33
34 If X509Stack, Cert, or CertSize is NULL, then return FALSE.
35
36 @param[in] X509Stack Pointer to a X509 stack object.
37 @param[out] Cert Pointer to a X509 certificate.
38 @param[out] CertSize Length of output X509 certificate in bytes.
39
40 @retval TRUE The X509 stack pop succeeded.
41 @retval FALSE The pop operation failed.
42
43 **/
44 BOOLEAN
45 X509PopCertificate (
46 IN VOID *X509Stack,
47 OUT UINT8 **Cert,
48 OUT UINTN *CertSize
49 );
50
51 #endif
52