Skip to content

Commit

Permalink
cmake: add ENABLE_FIPS option (#10679)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris McFarlen <[email protected]>
  • Loading branch information
cmcfarlen and Chris McFarlen authored Oct 31, 2023
1 parent d13cefa commit 7f299f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ auto_option(UNWIND FEATURE_VAR TS_USE_REMOTE_UNWINDING PACKAGE_DEPENDS unwind)

option(ENABLE_ASAN "Use address sanitizer (default OFF)")
option(ENABLE_FUZZING "Enable fuzzing (default OFF)")
option(ENABLE_FIPS "Enable fips compliance (default OFF)")
option(BUILD_REGRESSION_TESTING "Build regression tests (default ON)" ON)
option(BUILD_EXPERIMENTAL_PLUGINS "Build the experimental plugins (default OFF)")
set(DEFAULT_STACK_SIZE
Expand Down Expand Up @@ -539,6 +540,8 @@ if(ENABLE_FUZZING)
endif()
endif()

set(TS_ENABLE_FIPS ${ENABLE_FIPS})

# Common includes for everyone
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include)

Expand Down
1 change: 1 addition & 0 deletions include/tscore/ink_config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const int DEFAULT_STACKSIZE = @DEFAULT_STACK_SIZE@;
#cmakedefine01 TS_USE_DIAGS
#cmakedefine01 TS_USE_EPOLL
#cmakedefine01 TS_USE_FAST_SDK
#cmakedefine01 TS_ENABLE_FIPS
#cmakedefine01 TS_USE_GET_DH_2048_256
#cmakedefine01 TS_USE_HELLO_CB
#cmakedefine01 TS_USE_HWLOC
Expand Down

0 comments on commit 7f299f4

Please sign in to comment.