Skip to content

Commit

Permalink
Update PlatformIO wolfssl/wolfssl@^5.7.0-rev.3c
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed May 16, 2024
1 parent 51f814e commit 503bbbe
Show file tree
Hide file tree
Showing 4 changed files with 859 additions and 45 deletions.
62 changes: 42 additions & 20 deletions IDE/PlatformIO/examples/wolfssl_test/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf
upload_port = COM82
monitor_port = COM82
monitor_speed = 115200
build_flags = -DWOLFSSL_USER_SETTINGS, -DWOLFSSL_ESP32
monitor_filters = direct
lib_deps = wolfssl-staging/wolfSSL@^5.7.0-test.1
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

;
; To ensure that you are always using the newest version of a library:
; lib_deps = wolfssl/wolfSSL@*
;
; If you want to stay within a certain range of versions while still
; getting updates, you can use semantic versioning to specify an acceptable
; range. For example, to get any version in the 5.x.x series:
; lib_deps = wolfssl/wolfSSL@^5.0.0
;
; If you specifically want to ensure that you always get the latest version
; that matches 5.7.0 or newer, you could use:
; lib_deps = wolfssl/wolfSSL@>=5.7.0
;
; If you want to test drive previews, see the staging versions:
; https://registry.platformio.org/search?q=owner%3Awolfssl-staging
;
; lib_deps = wolfssl-staging/wolfSSL@^5.7.0-test.rev03
;
; The regular release of wolfssl (yes there's a case difference from staging')
;
; lib_deps = wolfssl/wolfssl@^5.7.0-rev.3c

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf
upload_port = COM19
monitor_port = COM19
monitor_speed = 115200
build_flags = -DWOLFSSL_USER_SETTINGS, -DWOLFSSL_ESP32
monitor_filters = direct
lib_deps = wolfssl/wolfssl@^5.7.0-rev.3d
48 changes: 24 additions & 24 deletions IDE/PlatformIO/examples/wolfssl_test/src/main.c
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#include <wolfssl/wolfcrypt/settings.h>
#ifdef WOLFSSL_ESPIDF
#include <esp_log.h>
#include <rtc_wdt.h>
#include <wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h>
#endif
#include <wolfssl/version.h>
#include <wolfssl/wolfcrypt/types.h>
#include <wolfcrypt/test/test.h>
#define TAG "demo"

void app_main() {
int ret = 0;
#ifdef WOLFSSL_ESPIDF
ESP_LOGI(TAG, "Found WOLFSSL_ESPIDF!");
#endif
printf("Hello World wolfSSL Version %s", LIBWOLFSSL_VERSION_STRING);

#if defined(HAVE_VERSION_EXTENDED_INFO) && defined(WOLFSSL_ESPIDF)
esp_ShowExtendedSystemInfo();
#endif
ret = wolf_test_task();
printf("wolf_test_task result %d", ret);
}
#include <wolfssl/wolfcrypt/settings.h>
#ifdef WOLFSSL_ESPIDF
#include <esp_log.h>
#include <rtc_wdt.h>
#include <wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h>
#endif
#include <wolfssl/version.h>
#include <wolfssl/wolfcrypt/types.h>
#include <wolfcrypt/test/test.h>
#define TAG "demo"

void app_main() {
int ret = 0;
#ifdef WOLFSSL_ESPIDF
ESP_LOGI(TAG, "Found WOLFSSL_ESPIDF!");
#endif
printf("Hello World wolfSSL Version\n %s", LIBWOLFSSL_VERSION_STRING);

#if defined(HAVE_VERSION_EXTENDED_INFO) && defined(WOLFSSL_ESPIDF)
esp_ShowExtendedSystemInfo();
#endif
ret = wolf_test_task();
printf("wolf_test_task result %d", ret);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"settings": {
"files.associations": {
"settings.h": "c"
"settings.h": "c",
"sdkconfig.h": "c"
}
}
}
Loading

0 comments on commit 503bbbe

Please sign in to comment.