]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
CryptoPkg/BaseCryptLib: Use X509_V_FLAG_PARTIAL_CHAIN
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / InternalCryptLib.h
index 55876527144f6228ffcec97ca56e410fd262ca09..0ce2591bb41d27ed5547393e3affb6c0f6e227b6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file  \r
   Internal include file for BaseCryptLib.\r
 \r
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -23,6 +23,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "OpenSslSupport.h"\r
 \r
+#include <openssl/opensslv.h>\r
+\r
+#if OPENSSL_VERSION_NUMBER < 0x10100000L\r
+#define OBJ_get0_data(o) ((o)->data)\r
+#define OBJ_length(o) ((o)->length)\r
+#endif\r
+\r
 //\r
 // Environment Setting for OpenSSL-based UEFI Crypto Library.\r
 //\r
@@ -30,25 +37,5 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define OPENSSL_SYSNAME_UWIN\r
 #endif\r
 \r
-/**\r
-  Pop single certificate from STACK_OF(X509).\r
-\r
-  If X509Stack, Cert, or CertSize is NULL, then return FALSE.\r
-\r
-  @param[in]  X509Stack       Pointer to a X509 stack object.\r
-  @param[out] Cert            Pointer to a X509 certificate.\r
-  @param[out] CertSize        Length of output X509 certificate in bytes.\r
-                                 \r
-  @retval     TRUE            The X509 stack pop succeeded.\r
-  @retval     FALSE           The pop operation failed.\r
-\r
-**/\r
-BOOLEAN\r
-X509PopCertificate (\r
-  IN  VOID  *X509Stack,\r
-  OUT UINT8 **Cert,\r
-  OUT UINTN *CertSize\r
-  );\r
-\r
 #endif\r
 \r