Skip to content

Commit

Permalink
SHA256: UNO R4 WiFi enable ArduinoBearSSL inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Aug 12, 2024
1 parent e208401 commit 8dadbb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ jobs:
platforms: |
# Install renesas_uno platform via Boards Manager
- name: arduino:renesas_uno
libraries: |
- name: ArduinoBearSSL
# Nano ESP32
- board:
type: arduino_esp32
Expand Down
3 changes: 2 additions & 1 deletion src/tls/utility/SHA256.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
******************************************************************************/
#include <AIoTC_Config.h>

#if defined(BOARD_HAS_OFFLOADED_ECCX08) || defined(BOARD_HAS_ECCX08)
#if defined(BOARD_HAS_OFFLOADED_ECCX08) || defined(BOARD_HAS_ECCX08) || defined(BOARD_HAS_SOFTSE)
#define HAS_BEARSSL
#else
#define HAS_MBEDTLS
#endif

#if defined(HAS_BEARSSL)
#include <ArduinoBearSSL.h>
#include <bearssl/bearssl_hash.h>
#else
#include <mbedtls/sha256.h>
Expand Down

0 comments on commit 8dadbb0

Please sign in to comment.