From 1d36474726ce4d53120e2968209cdb892a194e82 Mon Sep 17 00:00:00 2001 From: Geoff Beier Date: Mon, 1 Aug 2016 21:28:53 -0400 Subject: Set _PATH_SSL_CA_FILE to either CMAKE_INSTALL_PREFIX or OPENSSLDIR for the OCSP tests so that OCSP tests can be executed on a system without /etc/ssl/cert.pem --- tests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0d5ea0..c44e876 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -196,6 +196,11 @@ add_test(mont mont) # ocsp_test if(ENABLE_EXTRATESTS) + if(NOT "${OPENSSLDIR}" STREQUAL "") + add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") + else() + add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") + endif() add_executable(ocsp_test ocsp_test.c) target_link_libraries(ocsp_test ${OPENSSL_LIBS}) add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) -- cgit v1.2.3-55-g6feb