We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e429a commit a4d9a38Copy full SHA for a4d9a38
libraries/SocketWrapper/src/MbedSSLClient.h
@@ -58,8 +58,11 @@ class MbedSSLClient : public arduino::MbedClient {
58
59
private:
60
int setRootCA() {
61
+ int err = 0;
62
+
63
+#if defined(MBEDTLS_FS_IO)
64
mbed::BlockDevice* root = mbed::BlockDevice::get_default_instance();
- int err = root->init();
65
+ err = root->init();
66
if( err != 0) {
67
return err;
68
}
@@ -76,6 +79,7 @@ class MbedSSLClient : public arduino::MbedClient {
76
79
if( err != NSAPI_ERROR_OK) {
77
80
78
81
82
+#endif
83
84
if(_ca_cert_custom != NULL) {
85
err = ((TLSSocket*)sock)->append_root_ca_cert(_ca_cert_custom);
0 commit comments