Skip to content

Commit 8911a05

Browse files
authored
Merge pull request #124 from pennam/fix-c33-cert-loading
C33 SSLClient: fix certificate loading from filesystem
2 parents bd6a5c5 + 75c07c3 commit 8911a05

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: libraries/SSLClient/src/ssl_fs_io.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
*/
1919

2020
#include "Arduino.h"
21-
#include "QSPIFlashBlockDevice.h"
21+
#include "MBRBlockDevice.h"
2222
#include "FATFileSystem.h"
2323
#include "ssl_fs_io.h"
2424
#include "ssl_debug.h"
2525

26-
static BlockDevice * get_mbedtls_bd()
26+
static MBRBlockDevice * get_mbedtls_bd()
2727
{
28-
static QSPIFlashBlockDevice root(PIN_QSPI_CLK, PIN_QSPI_SS, PIN_QSPI_D0, PIN_QSPI_D1, PIN_QSPI_D2, PIN_QSPI_D3);
29-
return &root;
28+
BlockDevice* root = BlockDevice::get_default_instance();
29+
static MBRBlockDevice sys_bd(root, 1);
30+
return &sys_bd;
3031
}
3132

3233
static FATFileSystem * get_mbedtls_fs()

0 commit comments

Comments
 (0)