Skip to content

Commit

Permalink
Merge pull request wolfSSL#7655 from JacobBarthelmeh/vcpkg
Browse files Browse the repository at this point in the history
add no stub and ex data cmake options
  • Loading branch information
SparkiDev committed Jun 18, 2024
2 parents eef20ce + 684fef2 commit 6f4aa54
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,15 @@ if (WOLFSSL_OPENSSLALL)
"-DWOLFSSL_ERROR_CODE_OPENSSL" "-DWOLFSSL_CERT_NAME_ALL")
endif()

add_option(WOLFSSL_NO_STUB
"Removes OpenSSL compatibility stub functions (default: disabled)"
"no" "yes;no")

if (WOLFSSL_NO_STUB)
list(APPEND WOLFSSL_DEFINITIONS
"-DNO_WOLFSSL_STUB")
endif()

# TODO: - IPv6 test apps

set(WOLFSSL_SLOW_MATH "yes")
Expand Down Expand Up @@ -1535,6 +1544,15 @@ add_option(WOLFSSL_SNI ${WOLFSSL_SNI_HELP_STRING} ${SNI_DEFAULT} "yes;no")
set(WOLFSSL_TLSX_HELP_STRING "Enable all TLS Extensions (default: disabled)")
add_option(WOLFSSL_TLSX ${WOLFSSL_TLSX_HELP_STRING} "no" "yes;no")

add_option(WOLFSSL_EX_DATA
"Enable app data (default: disabled)"
"no" "yes;no")

if (WOLFSSL_EX_DATA)
list(APPEND WOLFSSL_DEFINITIONS
"-DHAVE_EX_DATA")
endif()

# Supported elliptic curves extensions
add_option("WOLFSSL_SUPPORTED_CURVES"
"Enable Supported Elliptic Curves (default: enabled)"
Expand Down
2 changes: 2 additions & 0 deletions cmake/options.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ extern "C" {
#cmakedefine WOLFSSL_HAVE_KYBER
#undef WOLFSSL_WC_KYBER
#cmakedefine WOLFSSL_WC_KYBER
#undef NO_WOLFSSL_STUB
#cmakedefine NO_WOLFSSL_STUB

#ifdef __cplusplus
}
Expand Down

0 comments on commit 6f4aa54

Please sign in to comment.