]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/Include/openssl/opensslconf.h
CryptoPkg: Make EC source file config-able
[mirror_edk2.git] / CryptoPkg / Library / Include / openssl / opensslconf.h
index 7ea976b2252ed5907c544b738097196c77087bed..1485b8c9f108df7e4916f417d22a52589839f768 100644 (file)
@@ -9,7 +9,7 @@
  * in the file LICENSE in the source distribution or at\r
  * https://www.openssl.org/source/license.html\r
  */\r
-\r
+#include <Library/PcdLib.h>\r
 #include <openssl/opensslv.h>\r
 \r
 #ifdef  __cplusplus\r
@@ -55,6 +55,11 @@ extern "C" {
 #ifndef OPENSSL_NO_DSA\r
 #define OPENSSL_NO_DSA\r
 #endif\r
+#if !FixedPcdGetBool (PcdEcEnabled)\r
+  #ifndef OPENSSL_NO_EC\r
+#define OPENSSL_NO_EC\r
+  #endif\r
+#endif\r
 #ifndef OPENSSL_NO_IDEA\r
 #define OPENSSL_NO_IDEA\r
 #endif\r