mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Added [no]checkSSL method that sets an "insecure" boolean flag.
If insecure, "-k" parameter is added to curl and SSL certificates are not checked
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
|
||||
class HttpClient : public Process {
|
||||
public:
|
||||
HttpClient();
|
||||
|
||||
unsigned int get(String &url);
|
||||
unsigned int get(const char * url);
|
||||
@ -30,6 +31,11 @@ class HttpClient : public Process {
|
||||
void getAsynchronously(const char * url);
|
||||
boolean ready();
|
||||
unsigned int getResult();
|
||||
void noCheckSSL();
|
||||
void checkSSL();
|
||||
|
||||
private:
|
||||
boolean insecure;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user