summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-01-25 23:11:47 +0100
committerDamjan Marion <dmarion@me.com>2022-01-27 20:35:57 +0000
commit1fd912c8ddbc30d1cce153f16a11b5dcf1fa571e (patch)
tree704d866b0f0460d0a985eaee7a2d0f216693e00d
parent0d47f20940003088df0c06f684350cc8da9a7f7a (diff)
build: fix compilation on OpenSSL 3.0
So far by suppressing depreciation messages, as there was no transition period. Type: make Change-Id: I9887613fd71a22bf11bf22a04c129aca4a16867f Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/plugins/crypto_openssl/CMakeLists.txt1
-rw-r--r--src/plugins/ikev2/CMakeLists.txt1
-rw-r--r--src/plugins/tlsopenssl/CMakeLists.txt1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/crypto_openssl/CMakeLists.txt b/src/plugins/crypto_openssl/CMakeLists.txt
index d014144eca8..5d86e3b3e5e 100644
--- a/src/plugins/crypto_openssl/CMakeLists.txt
+++ b/src/plugins/crypto_openssl/CMakeLists.txt
@@ -16,6 +16,7 @@ if(NOT OPENSSL_FOUND)
endif()
include_directories(${OPENSSL_INCLUDE_DIR})
+add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED)
add_vpp_plugin(crypto_openssl
SOURCES
diff --git a/src/plugins/ikev2/CMakeLists.txt b/src/plugins/ikev2/CMakeLists.txt
index 41292fc476e..e4c1788d44d 100644
--- a/src/plugins/ikev2/CMakeLists.txt
+++ b/src/plugins/ikev2/CMakeLists.txt
@@ -17,6 +17,7 @@ if(NOT OPENSSL_FOUND)
endif()
include_directories(${OPENSSL_INCLUDE_DIR})
+add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED)
add_vpp_plugin(ikev2
SOURCES
diff --git a/src/plugins/tlsopenssl/CMakeLists.txt b/src/plugins/tlsopenssl/CMakeLists.txt
index eb67e4cceaf..70a62aedf9c 100644
--- a/src/plugins/tlsopenssl/CMakeLists.txt
+++ b/src/plugins/tlsopenssl/CMakeLists.txt
@@ -14,6 +14,7 @@
include (CheckFunctionExists)
if(OPENSSL_FOUND AND OPENSSL_VERSION VERSION_GREATER_EQUAL "1.1.0")
include_directories(${OPENSSL_INCLUDE_DIR})
+ add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED)
add_vpp_plugin(tlsopenssl
SOURCES
tls_bio.c