Add CURL_CA_BUNDLE option for SSL support (#12946)
This adds the ability to specify the location of SSL CA bundle at compile time.
This commit is contained in:
parent
16b1a6e4e0
commit
ed14435b23
|
@ -190,6 +190,11 @@ IF(CMAKE_USE_OPENSSL)
|
||||||
CHECK_LIBRARY_EXISTS_CONCAT("crypto" CRYPTO_lock HAVE_LIBCRYPTO)
|
CHECK_LIBRARY_EXISTS_CONCAT("crypto" CRYPTO_lock HAVE_LIBCRYPTO)
|
||||||
CHECK_LIBRARY_EXISTS_CONCAT("ssl" SSL_connect HAVE_LIBSSL)
|
CHECK_LIBRARY_EXISTS_CONCAT("ssl" SSL_connect HAVE_LIBSSL)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
SET(CURL_CA_BUNDLE "" CACHE FILEPATH "Path to SSL CA Certificate Bundle")
|
||||||
|
MARK_AS_ADVANCED(CURL_CA_BUNDLE)
|
||||||
|
IF(CURL_CA_BUNDLE)
|
||||||
|
ADD_DEFINITIONS(-DCURL_CA_BUNDLE="${CURL_CA_BUNDLE}")
|
||||||
|
ENDIF(CURL_CA_BUNDLE)
|
||||||
ENDIF(CMAKE_USE_OPENSSL)
|
ENDIF(CMAKE_USE_OPENSSL)
|
||||||
|
|
||||||
# Check for idn
|
# Check for idn
|
||||||
|
|
Loading…
Reference in New Issue