Skip to content

Commit

Permalink
[WIP] Use TLS module in HTTPS
Browse files Browse the repository at this point in the history
 * Removed the curl dependency
 * Updated the mbedtls configuration
 * Removed the code duplications of HTTP and HTTPS modules
 * Updated the related test files

IoT.js-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
  • Loading branch information
LaszloLango committed Mar 28, 2018
1 parent e3cd187 commit d4634da
Show file tree
Hide file tree
Showing 28 changed files with 1,034 additions and 1,552 deletions.
5 changes: 3 additions & 2 deletions cmake/mbedtls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ set(DEPS_MBEDTLS_BUILD_DIR ${CMAKE_BINARY_DIR}/${DEPS_MBEDTLS}/library)
set(MODULE_NAME "tls")
set(MODULE_BINARY_DIR ${DEPS_MBEDTLS_BUILD_DIR})

if("${TARGET_OS}" STREQUAL "TIZEN")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-cpp")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-sign-conversion")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${ROOT_DIR}/config/mbedtls")
set(CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -DMBEDTLS_CONFIG_FILE='<config-for-iotjs.h>'")

#message(FATAL_ERROR "${CMAKE_C_FLAGS}")

ExternalProject_Add(mbedtls
PREFIX ${DEPS_MBEDTLS}
SOURCE_DIR ${DEPS_MBEDTLS_SRC}
Expand Down
Loading

0 comments on commit d4634da

Please sign in to comment.