qlong | a8c4464 | 2010-11-02 06:06:38 +0000 | [diff] [blame] | 1 | /** @file
|
| 2 | Internal include file for BaseCryptLib.
|
| 3 |
|
tye1 | e8b4eb0 | 2012-03-31 04:49:02 +0000 | [diff] [blame] | 4 | Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
|
qlong | a8c4464 | 2010-11-02 06:06:38 +0000 | [diff] [blame] | 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 |
|
tye1 | dda39f3 | 2012-08-02 02:49:24 +0000 | [diff] [blame] | 24 | #include "OpenSslSupport.h"
|
| 25 |
|
qlong | a8c4464 | 2010-11-02 06:06:38 +0000 | [diff] [blame] | 26 | //
|
| 27 | // Environment Setting for OpenSSL-based UEFI Crypto Library.
|
| 28 | //
|
| 29 | #ifndef OPENSSL_SYSNAME_UWIN
|
| 30 | #define OPENSSL_SYSNAME_UWIN
|
| 31 | #endif
|
| 32 |
|
tye1 | e8b4eb0 | 2012-03-31 04:49:02 +0000 | [diff] [blame] | 33 | /**
|
| 34 | Pop single certificate from STACK_OF(X509).
|
| 35 |
|
| 36 | If X509Stack, Cert, or CertSize is NULL, then return FALSE.
|
| 37 |
|
| 38 | @param[in] X509Stack Pointer to a X509 stack object.
|
| 39 | @param[out] Cert Pointer to a X509 certificate.
|
| 40 | @param[out] CertSize Length of output X509 certificate in bytes.
|
| 41 |
|
| 42 | @retval TRUE The X509 stack pop succeeded.
|
| 43 | @retval FALSE The pop operation failed.
|
| 44 |
|
| 45 | **/
|
| 46 | BOOLEAN
|
| 47 | X509PopCertificate (
|
| 48 | IN VOID *X509Stack,
|
| 49 | OUT UINT8 **Cert,
|
| 50 | OUT UINTN *CertSize
|
| 51 | );
|
| 52 |
|
qlong | a8c4464 | 2010-11-02 06:06:38 +0000 | [diff] [blame] | 53 | #endif
|
| 54 |
|