mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 14:29:03 +08:00
58 lines
2.3 KiB
Diff
58 lines
2.3 KiB
Diff
From 8d67288a3dde7e535ff747715f96f98282a3bf67 Mon Sep 17 00:00:00 2001
|
|
From: Matthias Kuhn <matthias@opengis.ch>
|
|
Date: Fri, 3 Dec 2021 15:17:25 +0100
|
|
Subject: [PATCH] Ifdef codecs
|
|
|
|
---
|
|
cmake/modules/QcaMacro.cmake | 9 ---------
|
|
plugins/qca-ossl/qca-ossl.cpp | 6 ++++++
|
|
2 files changed, 6 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/cmake/modules/QcaMacro.cmake b/cmake/modules/QcaMacro.cmake
|
|
index 80af6e84..ba86310d 100644
|
|
--- a/cmake/modules/QcaMacro.cmake
|
|
+++ b/cmake/modules/QcaMacro.cmake
|
|
@@ -65,10 +65,6 @@ macro(add_qca_test TARGET DESCRIPTION)
|
|
endmacro(add_qca_test)
|
|
|
|
macro(install_pdb TARGET INSTALL_PATH)
|
|
- if(MSVC)
|
|
- install(FILES $<TARGET_PDB_FILE:${TARGET}> DESTINATION ${INSTALL_PATH} CONFIGURATIONS Debug)
|
|
- install(FILES $<TARGET_PDB_FILE:${TARGET}> DESTINATION ${INSTALL_PATH} CONFIGURATIONS RelWithDebInfo)
|
|
- endif()
|
|
endmacro(install_pdb)
|
|
|
|
macro(normalize_path PATH)
|
|
diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp
|
|
index b2c5d3d3..4250ec26 100644
|
|
--- a/plugins/qca-ossl/qca-ossl.cpp
|
|
+++ b/plugins/qca-ossl/qca-ossl.cpp
|
|
@@ -6846,6 +6846,7 @@ public:
|
|
else if (type == QLatin1String("aes256-ccm"))
|
|
return new opensslCipherContext(EVP_aes_256_ccm(), 0, this, type);
|
|
#endif
|
|
+#ifndef OPENSSL_NO_BF
|
|
else if (type == QLatin1String("blowfish-ecb"))
|
|
return new opensslCipherContext(EVP_bf_ecb(), 0, this, type);
|
|
else if (type == QLatin1String("blowfish-cfb"))
|
|
@@ -6856,6 +6857,8 @@ public:
|
|
return new opensslCipherContext(EVP_bf_cbc(), 0, this, type);
|
|
else if (type == QLatin1String("blowfish-cbc-pkcs7"))
|
|
return new opensslCipherContext(EVP_bf_cbc(), 1, this, type);
|
|
+#endif
|
|
+#ifndef OPENSSL_NO_DES
|
|
else if (type == QLatin1String("tripledes-ecb"))
|
|
return new opensslCipherContext(EVP_des_ede3(), 0, this, type);
|
|
else if (type == QLatin1String("tripledes-cbc"))
|
|
@@ -6872,6 +6875,7 @@ public:
|
|
return new opensslCipherContext(EVP_des_cfb(), 0, this, type);
|
|
else if (type == QLatin1String("des-ofb"))
|
|
return new opensslCipherContext(EVP_des_ofb(), 0, this, type);
|
|
+#endif
|
|
#ifndef OPENSSL_NO_CAST
|
|
else if (type == QLatin1String("cast5-ecb"))
|
|
return new opensslCipherContext(EVP_cast5_ecb(), 0, this, type);
|
|
--
|
|
2.31.1
|
|
|