Skip to content

Commit e8b7b3e

Browse files
committed
Fix compilation error in v2.0.6.
1 parent 2aee90d commit e8b7b3e

File tree

311 files changed

+326
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+326
-530
lines changed

examples/certificate/certificate.ino

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include <WiFi.h>
1818
#elif defined(ESP8266)
1919
#include <ESP8266WiFi.h>
20-
#elif __has_include(<WiFiNINA.h>)
21-
#include <WiFiNINA.h
20+
#elif __has_include(<WiFiNINA.h>)
21+
#include <WiFiNINA.h>
2222
#elif __has_include(<WiFi101.h>)
23-
#include <WiFi101.h
23+
#include <WiFi101.h>
2424
#endif
2525

2626
#include <ESP_SSLClient.h>
@@ -101,7 +101,7 @@ void setup()
101101
// If verification time was not set via this function, the device system time will be used
102102
// ssl_client.setX509Time(time(nullptr));
103103

104-
#elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT)
104+
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
105105

106106
configTime(10000, 0, "pool.ntp.org", "time.nist.gov");
107107
while (time(nullptr) < ESP_SSLCLIENT_VALID_TIMESTAMP)
@@ -113,12 +113,17 @@ void setup()
113113
// ssl_client.setX509Time(time(nullptr));
114114

115115
#elif __has_include(<WiFiNINA.h>) || __has_include(<WiFi101.h>)
116-
time_t ts = WiFi.getTime();
116+
time_t ts = 0;
117+
do
118+
{
119+
ts = WiFi.getTime();
120+
delay(100);
121+
} while (ts < ESP_SSLCLIENT_VALID_TIMESTAMP);
117122

118123
// The verification time setting is required because the device system time i.e. time(nullptr) is not available in this case.
119124
ssl_client.setX509Time(ts);
120125
#endif
121-
126+
122127
// Set the server certificate, intermediate cerificate or root certificate
123128
ssl_client.setCACert(rootCA);
124129

examples/http_upgrade/http_upgrade.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#elif defined(ESP8266)
1818
#include <ESP8266WiFi.h>
1919
#elif __has_include(<WiFiNINA.h>)
20-
#include <WiFiNINA.h
20+
#include <WiFiNINA.h>
2121
#elif __has_include(<WiFi101.h>)
22-
#include <WiFi101.h
22+
#include <WiFi101.h>
2323
#endif
2424

2525
#include <ESP_SSLClient.h>

examples/https/https.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#elif defined(ESP8266)
1919
#include <ESP8266WiFi.h>
2020
#elif __has_include(<WiFiNINA.h>)
21-
#include <WiFiNINA.h
21+
#include <WiFiNINA.h>
2222
#elif __has_include(<WiFi101.h>)
23-
#include <WiFi101.h
23+
#include <WiFi101.h>
2424
#endif
2525

2626
#include <ESP_SSLClient.h>

examples/mqtt/mqtt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#elif defined(ESP8266)
1818
#include <ESP8266WiFi.h>
1919
#elif __has_include(<WiFiNINA.h>)
20-
#include <WiFiNINA.h
20+
#include <WiFiNINA.h>
2121
#elif __has_include(<WiFi101.h>)
22-
#include <WiFi101.h
22+
#include <WiFi101.h>
2323
#endif
2424

2525
#include <ESP_SSLClient.h>

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP_SSLClient",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"description": "This library provided the Secure Layer Networking (SSL/TLS) TCP Client for ESP8266, ESP32 and Raspberry Pi RP2040, Teensy, SAMD, AVR and other Arduino devices that support external networking interfaces e.g., WiFiClient, EthernetClient and GSMClient.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=ESP_SSLClient
22

3-
version=2.0.6
3+
version=2.0.7
44

55
author=Mobizt
66

src/ESP_SSLClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
*
3-
* The ESP SSL Client Class, ESP_SSLClient.h v2.0.6
3+
* The ESP SSL Client Class, ESP_SSLClient.h v2.0.7
44
*
55
* Created August 6, 2023
66
*

src/bssl/aes_big_cbcdec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "../ESP_SSLClient_FS.h"
2626
#if defined(USE_LIB_SSL_ENGINE)
2727

28-
#include "bssl/inner.h"
28+
#include "inner.h"
2929

3030
/* see bearssl_block.h */
3131
void

src/bssl/aes_big_cbcenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "../ESP_SSLClient_FS.h"
2626
#if defined(USE_LIB_SSL_ENGINE)
2727

28-
#include "bssl/inner.h"
28+
#include "inner.h"
2929

3030
/* see bearssl_block.h */
3131
void

src/bssl/aes_big_ctr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "../ESP_SSLClient_FS.h"
2626
#if defined(USE_LIB_SSL_ENGINE)
2727

28-
#include "bssl/inner.h"
28+
#include "inner.h"
2929

3030
/* see bearssl_block.h */
3131
void

0 commit comments

Comments
 (0)