From 35058cdfe0134c88f1aa8d23342d1d7b9d39e296 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Tue, 7 Jan 2020 11:46:02 +0100 Subject: [HICN-2] Added P2P confidential communication on hICN P2P confidential communications exploit the TLS 1.3 protocol to let a consumer to establish a secure communication on an hICN name. Currently we don't support the consumer authentication (mutual authentication in TLS) and the 0-rtt session establishment. Change-Id: I2be073847c08a17f28c837d444081920c5e57a07 Signed-off-by: Alberto Compagno Signed-off-by: Olivier Roques Signed-off-by: Mauro Sardara --- libtransport/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libtransport/CMakeLists.txt') diff --git a/libtransport/CMakeLists.txt b/libtransport/CMakeLists.txt index 8f70208ab..881e9810a 100644 --- a/libtransport/CMakeLists.txt +++ b/libtransport/CMakeLists.txt @@ -75,6 +75,11 @@ include(WindowsMacros) include(IosMacros) find_package_wrapper(Libparc REQUIRED) find_package_wrapper(Asio REQUIRED) +find_package(OpenSSL REQUIRED) + +if (${OPENSSL_VERSION} VERSION_EQUAL "1.1.1a" OR ${OPENSSL_VERSION} VERSION_GREATER "1.1.1a") + set(SECURE_HICNTRANSPORT 1) +endif() if (__vpp__) find_package(Libmemif REQUIRED) @@ -139,6 +144,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Android") find_package(OpenSSL REQUIRED) endif () +message ("---------------------------> ${OPENSSL_LIBRARIES}") + list(APPEND LIBRARIES ${LIBPARC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} @@ -158,6 +165,7 @@ list(APPEND LIBTRANSPORT_INTERNAL_INCLUDE_DIRS ${CMAKE_THREADS_INCLUDE_DIRS} ${ASIO_INCLUDE_DIRS} ${WINDOWS_INCLUDE_DIRS} + ${OPENSSL_INCLUDE_DIR} ) add_subdirectory(${TRANSPORT_ROOT_PATH}) -- cgit 1.2.3-korg