Skip to content

Commit

Permalink
Merge pull request arduino#124 from pennam/fix-c33-cert-loading
Browse files Browse the repository at this point in the history
C33 SSLClient: fix certificate loading from filesystem
  • Loading branch information
facchinm authored Sep 7, 2023
2 parents bd6a5c5 + 75c07c3 commit 8911a05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libraries/SSLClient/src/ssl_fs_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
*/

#include "Arduino.h"
#include "QSPIFlashBlockDevice.h"
#include "MBRBlockDevice.h"
#include "FATFileSystem.h"
#include "ssl_fs_io.h"
#include "ssl_debug.h"

static BlockDevice * get_mbedtls_bd()
static MBRBlockDevice * get_mbedtls_bd()
{
static QSPIFlashBlockDevice root(PIN_QSPI_CLK, PIN_QSPI_SS, PIN_QSPI_D0, PIN_QSPI_D1, PIN_QSPI_D2, PIN_QSPI_D3);
return &root;
BlockDevice* root = BlockDevice::get_default_instance();
static MBRBlockDevice sys_bd(root, 1);
return &sys_bd;
}

static FATFileSystem * get_mbedtls_fs()
Expand Down

0 comments on commit 8911a05

Please sign in to comment.