Skip to content

Commit 955fce4

Browse files
pennamgiulcioffi
authored andcommitted
WiFiSSLSE050Client: use _ca_cert_custom from MbedSSLClient
1 parent 72d7657 commit 955fce4

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

libraries/SE05X/src/WiFiSSLSE050Client.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,3 @@ void arduino::WiFiSSLSE050Client::setEccSlot(int KeySlot, const byte cert[], int
2929
_client_cert_len = certLen;
3030
_client_cert = cert;
3131
}
32-
33-
void arduino::WiFiSSLSE050Client::appendCustomCACert(const char ca_cert[]) {
34-
35-
_ca_cert = ca_cert;
36-
}

libraries/SE05X/src/WiFiSSLSE050Client.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class WiFiSSLSE050Client : public arduino::WiFiSSLClient {
3636
stop();
3737
}
3838
void setEccSlot(int KeySlot, const byte cert[], int certLen);
39-
void appendCustomCACert(const char ca_cert[]);
4039

4140
private:
4241
const byte* _client_cert;
@@ -50,7 +49,7 @@ class WiFiSSLSE050Client : public arduino::WiFiSSLClient {
5049
return 0;
5150
}
5251

53-
if( NSAPI_ERROR_OK != ((TLSSocket*)sock)->append_root_ca_cert(_ca_cert)) {
52+
if( NSAPI_ERROR_OK != ((TLSSocket*)sock)->append_root_ca_cert(_ca_cert_custom)) {
5453
return 0;
5554
}
5655

0 commit comments

Comments
 (0)