Commit 8543f298 authored by johan's avatar johan

Drop support of polarssl v1.2

parent 59f09951
......@@ -49,13 +49,6 @@ if(POLARSSL_LIBRARIES)
cmake_push_check_state(RESET)
set(CMAKE_REQUIRED_INCLUDES ${POLARSSL_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LIBRARIES ${POLARSSL_LIBRARIES})
check_c_source_compiles("
#include <polarssl/x509_crt.h>
int main(int argc, char *argv[]) {
x509_crt_parse_path(0,0);
return 0;
}"
POLARSSL_VERSION13_OK)
check_symbol_exists(ssl_get_dtls_srtp_protection_profile "polarssl/ssl.h" HAVE_SSL_GET_DTLS_SRTP_PROTECTION_PROFILE)
check_symbol_exists(ctr_drbg_free "polarssl/ctr_drbg.h" CTR_DRBG_FREE)
cmake_pop_check_state()
......
......@@ -64,11 +64,7 @@ if(MBEDTLS_FOUND)
list(APPEND BCTOOLBOX_C_SOURCE_FILES crypto/mbedtls.c)
endif()
if(POLARSSL_FOUND)
if(POLARSSL_VERSION13_OK)
list(APPEND BCTOOLBOX_C_SOURCE_FILES crypto/polarssl.c)
else()
list(APPEND BCTOOLBOX_C_SOURCE_FILES crypto/polarssl1.2.c)
endif()
endif()
if(ENABLE_TESTS_COMPONENT)
set(BCTOOLBOX_C_TESTER_SOURCE_FILES tester.c)
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment