diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cbaba66..e5e5cc0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,8 +41,8 @@ option(CONFIG_INCLUDE_GOOSE_SUPPORT "Build with GOOSE support" ON) option(CONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB "Build with pre-compiled mbedtls dynamic library" OFF) -set(CONFIG_EXTERNAL_MBEDTLS_DYNLIB_PATH "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.16/library" CACHE STRING "Path to search for the mbedtls dynamic libraries" ) -set(CONFIG_EXTERNAL_MBEDTLS_INCLUDE_PATH "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.16/include" CACHE STRING "Path to search for the mbedtls include files" ) +set(CONFIG_EXTERNAL_MBEDTLS_DYNLIB_PATH "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.28/library" CACHE STRING "Path to search for the mbedtls dynamic libraries" ) +set(CONFIG_EXTERNAL_MBEDTLS_INCLUDE_PATH "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.28/include" CACHE STRING "Path to search for the mbedtls include files" ) # choose the library features which shall be included option(CONFIG_IEC61850_CONTROL_SERVICE "Build with support for IEC 61850 control features" ON) @@ -130,10 +130,10 @@ set(USE_PREBUILD_MBEDTLS 1) set(MBEDTLS_INCLUDE_DIR ${CONFIG_EXTERNAL_MBEDTLS_INCLUDE_PATH}) endif(CONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB) -if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.16) +if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.28) set(WITH_MBEDTLS 1) -set(MBEDTLS_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.16/include") -endif(EXISTS ${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.16) +set(MBEDTLS_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.28/include") +endif(EXISTS ${CMAKE_CURRENT_LIST_DIR}/third_party/mbedtls/mbedtls-2.28) if(WITH_MBEDTLS) diff --git a/Makefile b/Makefile index db06c7f8..ef530346 100644 --- a/Makefile +++ b/Makefile @@ -78,9 +78,9 @@ LIB_INCLUDE_DIRS += third_party/winpcap/Include endif ifdef WITH_MBEDTLS -LIB_SOURCE_DIRS += third_party/mbedtls/mbedtls-2.16/library +LIB_SOURCE_DIRS += third_party/mbedtls/mbedtls-2.28/library LIB_SOURCE_DIRS += hal/tls/mbedtls -LIB_INCLUDE_DIRS += third_party/mbedtls/mbedtls-2.16/include +LIB_INCLUDE_DIRS += third_party/mbedtls/mbedtls-2.28/include LIB_INCLUDE_DIRS += hal/tls/mbedtls CFLAGS += -D'MBEDTLS_CONFIG_FILE="mbedtls_config.h"' CFLAGS += -D'CONFIG_MMS_SUPPORT_TLS=1' diff --git a/README.md b/README.md index 28f1f707..8fd0d022 100644 --- a/README.md +++ b/README.md @@ -86,9 +86,9 @@ You can test the server examples by using a generic client or the provided clien ## Building the library with TLS support -Download, unpack, and copy mbedtls-2.16 into the third_party/mbedtls folder. +Download, unpack, and copy mbedtls-2.28 into the third_party/mbedtls folder. -NOTE: The current version support mbedtls version 2.16. When you download the source archive from https://tls.mbed.org/ you have to rename the extracted folder to "mbedtls-2.16". +NOTE: The current version support mbedtls version 2.28. When you download the source archive from https://tls.mbed.org/ you have to rename the extracted folder to "mbedtls-2.28". In the main libiec61850 folder run @@ -96,7 +96,7 @@ In the main libiec61850 folder run make WITH_MBEDTLS=1 ``` -When using CMake the library is built automatically with TLS support when the folder third_party/mbedtls/mbedtls-2.16 is present. +When using CMake the library is built automatically with TLS support when the folder third_party/mbedtls/mbedtls-2.28 is present. ## Installing the library and the API headers diff --git a/hal/CMakeLists.txt b/hal/CMakeLists.txt index 33975c28..9b421f6b 100644 --- a/hal/CMakeLists.txt +++ b/hal/CMakeLists.txt @@ -10,7 +10,7 @@ endif() project(hal) set(LIBHAL_VERSION_MAJOR "2") -set(LIBHAL_VERSION_MINOR "0") +set(LIBHAL_VERSION_MINOR "1") set(LIBHAL_VERSION_PATCH "0") # feature checks @@ -129,7 +129,7 @@ include_directories( if(CONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB) link_directories(${CONFIG_EXTERNAL_MBEDTLS_DYNLIB_PATH}) else() -file(GLOB tls_SRCS ${CMAKE_CURRENT_LIST_DIR}/../third_party/mbedtls/mbedtls-2.16/library/*.c) +file(GLOB tls_SRCS ${CMAKE_CURRENT_LIST_DIR}/../third_party/mbedtls/mbedtls-2.28/library/*.c) endif(CONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB) add_definitions(-DMBEDTLS_CONFIG_FILE="mbedtls_config.h") diff --git a/third_party/mbedtls/README b/third_party/mbedtls/README index 04597eb4..b6171f07 100644 --- a/third_party/mbedtls/README +++ b/third_party/mbedtls/README @@ -1,9 +1,9 @@ README ------ -For TLS support with mbedtls download the source tarball of version 2.16.x and extract here in the subfolder +For TLS support with mbedtls download the source tarball of version 2.28.x and extract here in the subfolder -mbedtls-2.16 +mbedtls-2.28 -After extracting of the archive you may have to rename the folder to match the exact name "mbedtls-2.16". Otherwise the build system will not find the library. +After extracting of the archive you may have to rename the folder to match the exact name "mbedtls-2.28". Otherwise the build system will not find the library.