-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wolfSSL] update version to v5.4.0 AND [wolfTPM] update version to v2…
….5.0 AND [wolfMQTT] update version to v1.14.0 (#25936) * wolfSSL release updates for wolfTPM v2.5.0, wolfSSL v5.4.0 and wolfMQTT v1.14.0. * Fixes for wolfSSL, wolfTPM and wolfMQTT for CMake issues.
- Loading branch information
Showing
13 changed files
with
139 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d5f0f408..a436f51c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -94,6 +94,11 @@ target_compile_definitions(wolfmqtt PRIVATE | ||
"BUILDING_WOLFMQTT" | ||
) | ||
|
||
+ # Tell mqtt_types.h we are using a ./configure like output / options.h | ||
+target_compile_definitions(wolfmqtt PRIVATE | ||
+ "BUILDING_CMAKE" | ||
+ ) | ||
+ | ||
#TODO generate options file | ||
configure_file(wolfmqtt/options.h.in wolfmqtt/options.h) | ||
|
||
diff --git a/wolfmqtt/mqtt_types.h b/wolfmqtt/mqtt_types.h | ||
index f8e8f4d7..f7e33280 100644 | ||
--- a/wolfmqtt/mqtt_types.h | ||
+++ b/wolfmqtt/mqtt_types.h | ||
@@ -65,7 +65,8 @@ | ||
#endif | ||
|
||
#ifdef ENABLE_MQTT_TLS | ||
- #if !defined(WOLFSSL_USER_SETTINGS) && !defined(USE_WINDOWS_API) | ||
+ #if !defined(WOLFSSL_USER_SETTINGS) && \ | ||
+ (!defined(USE_WINDOWS_API) || defined(BUILDING_CMAKE)) | ||
#include <wolfssl/options.h> | ||
#endif | ||
#include <wolfssl/wolfcrypt/settings.h> | ||
diff --git a/wolfmqtt/vs_settings.h b/wolfmqtt/vs_settings.h | ||
index a385c4e0..9d8231a0 100644 | ||
--- a/wolfmqtt/vs_settings.h | ||
+++ b/wolfmqtt/vs_settings.h | ||
@@ -4,8 +4,9 @@ | ||
#ifndef _WOLFMQTT_VS_SETTINGS_ | ||
#define _WOLFMQTT_VS_SETTINGS_ | ||
|
||
-/* Don't include this if using autoconf cross-compile */ | ||
-#ifndef HAVE_CONFIG_H | ||
+/* Don't include this if using autoconf cross-compile or cmake */ | ||
+#if !defined(HAVE_CONFIG_H) && !defined(BUILDING_CMAKE) | ||
+ | ||
|
||
/* TLS Support */ | ||
#undef ENABLE_MQTT_TLS | ||
@@ -58,6 +59,7 @@ | ||
#undef WOLFMQTT_NO_ERROR_STRINGS | ||
//#define WOLFMQTT_NO_ERROR_STRINGS | ||
|
||
-#endif /* !HAVE_CONFIG_H */ | ||
+ | ||
+#endif /* !HAVE_CONFIG_H && !BUILDING_CMAKE */ | ||
|
||
#endif /* _WOLFMQTT_VS_SETTINGS_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f2da855cce3..467f4b79725 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -2044,7 +2044,11 @@ endif() | ||
|
||
if(NOT BUILD_SP) | ||
list(APPEND HEADER_EXCLUDE | ||
- "wolfssl/wolfcrypt/sp.h" | ||
+ "wolfssl/wolfcrypt/sp.h") | ||
+endif() | ||
+ | ||
+if(NOT BUILD_SP_INT) | ||
+ list(APPEND HEADER_EXCLUDE | ||
"wolfssl/wolfcrypt/sp_int.h") | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d642a06..157b000 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -194,7 +194,24 @@ endfunction() | ||
add_definitions(${WOLFTPM_DEFINITIONS}) | ||
|
||
# generate options file | ||
-set(OPTION_FILE "wolftpm/options.h") | ||
+message("Generating user options header...") | ||
+if (${CMAKE_DISABLE_SOURCE_CHANGES}) | ||
+ set(WOLFTPM_BUILD_OUT_OF_TREE_DEFAULT "${CMAKE_DISABLE_SOURCE_CHANGES}") | ||
+else() | ||
+ set(WOLFTPM_BUILD_OUT_OF_TREE_DEFAULT "no") | ||
+endif() | ||
+ | ||
+set(WOLFTPM_BUILD_OUT_OF_TREE "${WOLFTPM_BUILD_OUT_OF_TREE_DEFAULT}" CACHE STRING | ||
+ "Don't generate files in the source tree (default: ${WOLFTPM_BUILD_OUT_OF_TREE_DEFAULT})") | ||
+set_property(CACHE WOLFTPM_BUILD_OUT_OF_TREE | ||
+ PROPERTY STRINGS "yes;no") | ||
+ | ||
+if (${WOLFTPM_BUILD_OUT_OF_TREE}) | ||
+ set(WOLFTPM_OUTPUT_BASE ${CMAKE_CURRENT_BINARY_DIR}) | ||
+else() | ||
+ set(WOLFTPM_OUTPUT_BASE ${CMAKE_CURRENT_SOURCE_DIR}) | ||
+endif() | ||
+set(OPTION_FILE "${WOLFTPM_OUTPUT_BASE}/wolftpm/options.h") | ||
|
||
file(REMOVE ${OPTION_FILE}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters