File tree Expand file tree Collapse file tree 2 files changed +5
-29
lines changed
Expand file tree Collapse file tree 2 files changed +5
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2020#ifndef WIFISSLCLIENT_H
2121#define WIFISSLCLIENT_H
2222
23- #include " WiFiClient.h"
23+ #include " WiFi.h"
24+ #include " MbedSSLClient.h"
2425
2526extern const char CA_CERTIFICATES[];
2627
2728namespace arduino {
2829
29- class WiFiSSLClient : public arduino ::WiFiClient {
30-
31- public:
32- WiFiSSLClient ();
33- virtual ~WiFiSSLClient () {
34- stop ();
35- }
36-
37- int connect (IPAddress ip, uint16_t port) {
38- return connectSSL (ip, port);
39- }
40- int connect (const char * host, uint16_t port) {
41- return connectSSL (host, port, _disableSNI);
30+ class WiFiSSLClient : public arduino ::MbedSSLClient {
31+ NetworkInterface *getNetwork () {
32+ return WiFi.getNetwork ();
4233 }
43- void disableSNI (bool statusSNI) {
44- _disableSNI = statusSNI;
45- }
46-
47- private:
48- int setRootCA () {
49- return ((TLSSocket*)sock)->set_root_ca_cert_path (" /wlan/" );
50- }
51-
52- bool _disableSNI;
5334};
5435
5536}
You can’t perform that action at this time.
0 commit comments