Skip to content

Commit 2d3b7b9

Browse files
rudivandrunenigrr
authored andcommitted
WiFiClientSecure: add loadCACert function (#3610)
Added loadCACert function
1 parent c894795 commit 2d3b7b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecure.h

+6
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ class WiFiClientSecure : public WiFiClient {
6767
bool loadPrivateKey(TFile& file) {
6868
return loadPrivateKey(file, file.size());
6969
}
70+
71+
template<typename TFile>
72+
bool loadCACert(TFile& file) {
73+
return loadCACert(file, file.size());
74+
}
75+
7076

7177
protected:
7278
int _connectSSL(const char* hostName);

0 commit comments

Comments
 (0)