fix: wolfssl flags
This commit is contained in:
+10
-8
@@ -35,15 +35,16 @@ set(SEALLIB_EVENTS ON CACHE BOOL "" FORCE)
|
|||||||
FetchContent_GetProperties(seallib)
|
FetchContent_GetProperties(seallib)
|
||||||
FetchContent_MakeAvailable(seallib)
|
FetchContent_MakeAvailable(seallib)
|
||||||
|
|
||||||
# wolfssl config
|
|
||||||
set(WOLFSSL_KEY_GEN ON CACHE BOOL "" FORCE)
|
|
||||||
set(WOLFSSL_CERT_GEN ON CACHE BOOL "" FORCE)
|
|
||||||
set(WOLFSSL_CERT_EXT ON CACHE BOOL "" FORCE)
|
|
||||||
set(WOLFSSL_RSA ON CACHE BOOL "" FORCE)
|
|
||||||
set(WOLFSSL_TLSX ON CACHE BOOL "" FORCE)
|
|
||||||
FetchContent_GetProperties(wolfssl)
|
FetchContent_GetProperties(wolfssl)
|
||||||
FetchContent_MakeAvailable(wolfssl)
|
FetchContent_MakeAvailable(wolfssl)
|
||||||
|
|
||||||
|
set(WOLFSSL_ALPN ON CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
|
target_compile_definitions(wolfssl PUBLIC
|
||||||
|
-DWOLFSSL_ALT_NAMES
|
||||||
|
-DWOLFSSL_ALPN
|
||||||
|
)
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# warnings
|
# warnings
|
||||||
# ---------------------
|
# ---------------------
|
||||||
@@ -61,10 +62,11 @@ file(GLOB_RECURSE TINYMITM_SOURCES CONFIGURE_DEPENDS "src/proxy/*.cpp" "src/prox
|
|||||||
add_library(tinymitm STATIC ${TINYMITM_SOURCES})
|
add_library(tinymitm STATIC ${TINYMITM_SOURCES})
|
||||||
target_include_directories(tinymitm PUBLIC src/proxy)
|
target_include_directories(tinymitm PUBLIC src/proxy)
|
||||||
target_compile_features(tinymitm PUBLIC cxx_std_20)
|
target_compile_features(tinymitm PUBLIC cxx_std_20)
|
||||||
target_link_libraries(tinymitm PRIVATE tinymitm-warnings wolfssl)
|
target_link_libraries(tinymitm PRIVATE tinymitm-warnings)
|
||||||
target_link_libraries(tinymitm PUBLIC seallib)
|
target_link_libraries(tinymitm PUBLIC seallib wolfssl)
|
||||||
set_target_properties(tinymitm PROPERTIES CXX_EXTENSIONS OFF)
|
set_target_properties(tinymitm PROPERTIES CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# test
|
# test
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user