build: disable plugins which require openssl if openssl is not available

Type: improvement
Change-Id: I4591fcb31dd28d1771b3d6e5afdaa14f29efe6ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2024-01-19 21:55:03 +01:00
parent 9705d848a2
commit 5840c66bbc
4 changed files with 21 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if(NOT OPENSSL_FOUND)
message(WARNING "OpenSSL not found - lisp plugin disabled")
return()
endif()
##############################################################################
# LISP control plane: lisp-cp
##############################################################################

View File

@@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if(NOT OPENSSL_FOUND)
message(WARNING "OpenSSL not found - quic plugin disabled")
return()
endif()
unset(QUIC_LINK_LIBRARIES)
set(EXPECTED_QUICLY_VERSION "0.1.4-vpp")

View File

@@ -1,5 +1,10 @@
include (CheckFunctionExists)
if(NOT OPENSSL_FOUND)
message(WARNING "OpenSSL not found - tlspicotls plugin disabled")
return()
endif()
# We should rely on a picotls specific version, but as
# we expect dependancies to be built with vpp-ext-deps
# it's reasonable to make this check to avoid breaking

View File

@@ -12,7 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if(NOT OPENSSL_FOUND)
message(WARNING "OpenSSL not found - wireguard plugin disabled")
return()
endif()
if (OPENSSL_VERSION VERSION_LESS 1.1.0)
message(WARNING "OpenSSL too old - wireguard plugin disabled")
return()
endif()