]>
Commit | Line | Data |
---|---|---|
a8c44645 | 1 | /** @file \r |
2 | Internal include file for BaseCryptLib.\r | |
3 | \r | |
e8b4eb04 | 4 | Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r |
a8c44645 | 5 | This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __INTERNAL_CRYPT_LIB_H__\r | |
16 | #define __INTERNAL_CRYPT_LIB_H__\r | |
17 | \r | |
18 | #include <Library/BaseLib.h>\r | |
19 | #include <Library/BaseMemoryLib.h>\r | |
20 | #include <Library/MemoryAllocationLib.h>\r | |
21 | #include <Library/DebugLib.h>\r | |
22 | #include <Library/BaseCryptLib.h>\r | |
23 | \r | |
dda39f3a | 24 | #include "OpenSslSupport.h"\r |
25 | \r | |
a8c44645 | 26 | //\r |
27 | // Environment Setting for OpenSSL-based UEFI Crypto Library.\r | |
28 | //\r | |
29 | #ifndef OPENSSL_SYSNAME_UWIN\r | |
30 | #define OPENSSL_SYSNAME_UWIN\r | |
31 | #endif\r | |
32 | \r | |
e8b4eb04 | 33 | /**\r |
34 | Pop single certificate from STACK_OF(X509).\r | |
35 | \r | |
36 | If X509Stack, Cert, or CertSize is NULL, then return FALSE.\r | |
37 | \r | |
38 | @param[in] X509Stack Pointer to a X509 stack object.\r | |
39 | @param[out] Cert Pointer to a X509 certificate.\r | |
40 | @param[out] CertSize Length of output X509 certificate in bytes.\r | |
41 | \r | |
42 | @retval TRUE The X509 stack pop succeeded.\r | |
43 | @retval FALSE The pop operation failed.\r | |
44 | \r | |
45 | **/\r | |
46 | BOOLEAN\r | |
47 | X509PopCertificate (\r | |
48 | IN VOID *X509Stack,\r | |
49 | OUT UINT8 **Cert,\r | |
50 | OUT UINTN *CertSize\r | |
51 | );\r | |
52 | \r | |
a8c44645 | 53 | #endif\r |
54 | \r |