Skip to content

Commit

Permalink
WiFiClientSecure: add loadCACert function (esp8266#3610)
Browse files Browse the repository at this point in the history
Added loadCACert function
  • Loading branch information
rudivandrunen authored and d-a-v committed Sep 29, 2017
1 parent 0413d24 commit 168e684
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/ESP8266WiFi/src/WiFiClientSecure.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ class WiFiClientSecure : public WiFiClient {
bool loadPrivateKey(TFile& file) {
return loadPrivateKey(file, file.size());
}

template<typename TFile>
bool loadCACert(TFile& file) {
return loadCACert(file, file.size());
}


protected:
int _connectSSL(const char* hostName);
Expand Down

0 comments on commit 168e684

Please sign in to comment.