Skip to content

Commit

Permalink
Check if we are using LibreSSL instead of OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Feb 24, 2017
1 parent 261d95a commit 6e097a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Expand Up @@ -81,7 +81,7 @@ IF(WITH_SIGNCODE)
MARK_AS_ADVANCED(SIGN_OPTIONS)
ENDIF()

SET(MARIADB_CONNECTOR_C_COPYRIGHT "2013-2016 MariaDB Corporation Ab")
SET(MARIADB_CONNECTOR_C_COPYRIGHT "2013-2017 MariaDB Corporation Ab")

IF(WITH_RTC)
SET(RTC_OPTIONS "/RTC1 /RTCc")
Expand Down Expand Up @@ -260,7 +260,13 @@ IF(NOT WITH_SSL STREQUAL "OFF")
SET(SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
INCLUDE_DIRECTORIES(BEFORE ${OPENSSL_INCLUDE_DIR})
MESSAGE1(OPENSSL_VERSION "OpenSSL version: ${OPENSSL_VERSION}")
SET(TLS_LIBRARY_VERSION "OpenSSL ${OPENSSL_VERSION}")

CHECK_SYMBOL_EXISTS(LIBRESSL_VERSION_NUMBER "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" HAVE_LIBRESSL)
IF(HAVE_LIBRESSL)
SET(TLS_LIBRARY_VERSION "LibreSSL ${OPENSSL_VERSION}")
ELSE()
SET(TLS_LIBRARY_VERSION "OpenSSL ${OPENSSL_VERSION}")
ENDIF()
ELSE()
MESSAGE1(OPENSSL_VERSION "OpenSSL not found")
ENDIF()
Expand Down

0 comments on commit 6e097a6

Please sign in to comment.