File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -176,13 +176,13 @@ check_library_exists(pthread pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)
176
176
check_library_exists (pthread pthread_getname_np "" HAVE_PTHREAD_GETNAME_NP )
177
177
178
178
# WITH_CRYPTO
179
- set (WITH_CRYPTO "gcrypt" CACHE STRING "gcrypt|nss3" )
180
- if (NOT (${WITH_CRYPTO} EQUAL "nss3" ))
181
- # gcrypt
182
- find_package (GCrypt )
183
- else ()
184
- # nss3
179
+ set (WITH_CRYPTO "gcrypt" CACHE STRING "gcrypt|nss" )
180
+ if (${WITH_CRYPTO} STREQUAL "nss" )
181
+ message ("-- Using NSS" )
185
182
find_package (NSS )
183
+ else ()
184
+ message ("-- Using GCrypt" )
185
+ find_package (GCrypt )
186
186
endif ()
187
187
if (GCRYPT_FOUND OR NSS_FOUND )
188
188
set (CRYPTO_FOUND TRUE )
Original file line number Diff line number Diff line change 11
11
# Redistribution and use is allowed according to the terms of the BSD license.
12
12
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
13
14
- include (FindLibraryWithDebug )
15
-
16
14
if (NSS_LIBRARIES )
17
15
set (NSS_FIND_QUIETLY TRUE )
18
16
endif ()
Original file line number Diff line number Diff line change 19
19
#cmakedefine HAVE_GCRYCTL_SET_ENFORCED_FIPS_FLAG
20
20
#endif
21
21
22
- #cmakedefine NSS3_FOUND
23
- #if defined(NSS3_FOUND )
22
+ #cmakedefine NSS_FOUND
23
+ #if defined(NSS_FOUND )
24
24
#define HAVE_NSS3
25
25
#endif
26
26
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ set(CRAPI_HEADERS "${CMAKE_SOURCE_DIR}/src/OVAL/probes/crapi/")
3
3
file (GLOB_RECURSE CRAPI_SOURCES "${CMAKE_SOURCE_DIR} /src/OVAL/probes/crapi/*.c" )
4
4
add_oscap_test_executable (test_crapi_digest "test_crapi_digest.c" ${CRAPI_SOURCES} )
5
5
add_oscap_test_executable (test_crapi_mdigest "test_crapi_mdigest.c" ${CRAPI_SOURCES} )
6
- target_include_directories (test_crapi_digest PUBLIC ${PROBE_HEADERS} ${CRAPI_HEADERS} )
7
- target_include_directories (test_crapi_mdigest PUBLIC ${PROBE_HEADERS} ${CRAPI_HEADERS} )
6
+ target_include_directories (test_crapi_digest PUBLIC ${PROBE_HEADERS} ${CRAPI_HEADERS} ${NSS_INCLUDE_DIRS} )
7
+ target_include_directories (test_crapi_mdigest PUBLIC ${PROBE_HEADERS} ${CRAPI_HEADERS} ${NSS_INCLUDE_DIRS} )
8
8
target_link_libraries (test_crapi_digest openscap )
9
9
target_link_libraries (test_crapi_mdigest openscap )
10
10
add_oscap_test ("test_api_crypt.sh" )
You can’t perform that action at this time.
0 commit comments