mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-09 07:09:12 -04:00
Revert "Remove pkcs11-helper option"
This reverts commit d832f187f756079552601867348d924582bf65de. Conflicts: * CMakeLists.txt: * USE_PKCS11_HELPER_LIBRARY: there has been a change immediately before where it was removed. Just re-add what was removed. * tests/CMakeLists.txt: * USE_PKCS11_HELPER_LIBRARY: there has been a change immediately before where it was removed. Just re-add what was removed.
This commit is contained in:
parent
5bb8bec1de
commit
6bbe783908
@ -8,6 +8,7 @@ endif()
|
|||||||
# Set the project root directory.
|
# Set the project root directory.
|
||||||
set(MBEDTLS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set(MBEDTLS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
option(USE_PKCS11_HELPER_LIBRARY "Build mbed TLS with the pkcs11-helper library." OFF)
|
||||||
option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF)
|
option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF)
|
||||||
|
|
||||||
option(ENABLE_PROGRAMS "Build mbed TLS programs." ON)
|
option(ENABLE_PROGRAMS "Build mbed TLS programs." ON)
|
||||||
|
@ -148,6 +148,10 @@ if(HAIKU)
|
|||||||
set(libs ${libs} network)
|
set(libs ${libs} network)
|
||||||
endif(HAIKU)
|
endif(HAIKU)
|
||||||
|
|
||||||
|
if(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
set(libs ${libs} pkcs11-helper)
|
||||||
|
endif(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
|
||||||
if(ENABLE_ZLIB_SUPPORT)
|
if(ENABLE_ZLIB_SUPPORT)
|
||||||
set(libs ${libs} ${ZLIB_LIBRARIES})
|
set(libs ${libs} ${ZLIB_LIBRARIES})
|
||||||
endif(ENABLE_ZLIB_SUPPORT)
|
endif(ENABLE_ZLIB_SUPPORT)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
||||||
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -Wextra
|
WARNING_CFLAGS ?= -Wall -Wextra
|
||||||
|
@ -2,6 +2,10 @@ set(libs
|
|||||||
mbedtls
|
mbedtls
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
set(libs ${libs} pkcs11-helper)
|
||||||
|
endif(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
|
||||||
if(ENABLE_ZLIB_SUPPORT)
|
if(ENABLE_ZLIB_SUPPORT)
|
||||||
set(libs ${libs} ${ZLIB_LIBRARIES})
|
set(libs ${libs} ${ZLIB_LIBRARIES})
|
||||||
endif(ENABLE_ZLIB_SUPPORT)
|
endif(ENABLE_ZLIB_SUPPORT)
|
||||||
|
@ -9,6 +9,10 @@ if(NOT DEFINED MBEDTLS_DIR)
|
|||||||
set(MBEDTLS_DIR ${CMAKE_SOURCE_DIR})
|
set(MBEDTLS_DIR ${CMAKE_SOURCE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
set(libs ${libs} pkcs11-helper)
|
||||||
|
endif(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
|
||||||
if(ENABLE_ZLIB_SUPPORT)
|
if(ENABLE_ZLIB_SUPPORT)
|
||||||
set(libs ${libs} ${ZLIB_LIBRARIES})
|
set(libs ${libs} ${ZLIB_LIBRARIES})
|
||||||
endif(ENABLE_ZLIB_SUPPORT)
|
endif(ENABLE_ZLIB_SUPPORT)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
||||||
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -Wextra
|
WARNING_CFLAGS ?= -Wall -Wextra
|
||||||
|
Loading…
x
Reference in New Issue
Block a user