Skip to content

Commit

Permalink
Fix compilation error in v2.0.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Aug 6, 2023
1 parent 2aee90d commit e8b7b3e
Show file tree
Hide file tree
Showing 311 changed files with 326 additions and 530 deletions.
17 changes: 11 additions & 6 deletions examples/certificate/certificate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h
#include <WiFi101.h>
#endif

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

#elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT)
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)

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

#elif __has_include(<WiFiNINA.h>) || __has_include(<WiFi101.h>)
time_t ts = WiFi.getTime();
time_t ts = 0;
do
{
ts = WiFi.getTime();
delay(100);
} while (ts < ESP_SSLCLIENT_VALID_TIMESTAMP);

// The verification time setting is required because the device system time i.e. time(nullptr) is not available in this case.
ssl_client.setX509Time(ts);
#endif

// Set the server certificate, intermediate cerificate or root certificate
ssl_client.setCACert(rootCA);

Expand Down
4 changes: 2 additions & 2 deletions examples/http_upgrade/http_upgrade.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h
#include <WiFi101.h>
#endif

#include <ESP_SSLClient.h>
Expand Down
4 changes: 2 additions & 2 deletions examples/https/https.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h
#include <WiFi101.h>
#endif

#include <ESP_SSLClient.h>
Expand Down
4 changes: 2 additions & 2 deletions examples/mqtt/mqtt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif __has_include(<WiFiNINA.h>)
#include <WiFiNINA.h
#include <WiFiNINA.h>
#elif __has_include(<WiFi101.h>)
#include <WiFi101.h
#include <WiFi101.h>
#endif

#include <ESP_SSLClient.h>
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP_SSLClient",
"version": "2.0.6",
"version": "2.0.7",
"keywords": "communication, REST, esp32, esp8266, arduino",
"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.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=ESP_SSLClient

version=2.0.6
version=2.0.7

author=Mobizt

Expand Down
2 changes: 1 addition & 1 deletion src/ESP_SSLClient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* The ESP SSL Client Class, ESP_SSLClient.h v2.0.6
* The ESP SSL Client Class, ESP_SSLClient.h v2.0.7
*
* Created August 6, 2023
*
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/*
* Inverse S-box (used in key schedule for decryption).
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_big_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

#define S br_aes_S

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

static const uint32_t Rcon[] = {
0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000,
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see inner.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see inner.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see inner.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct64_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

static inline void
add_round_key(uint64_t *q, const uint64_t *sk)
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see inner.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_ct_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

static inline void
add_round_key(uint32_t *q, const uint32_t *sk)
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_pwr8.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_POWER_ASM_MACROS 1
#include "bssl/inner.h"
#include "inner.h"

/*
* This code contains the AES key schedule implementation using the
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_pwr8_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_POWER_ASM_MACROS 1
#include "bssl/inner.h"
#include "inner.h"

#if BR_POWER8

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_pwr8_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_POWER_ASM_MACROS 1
#include "bssl/inner.h"
#include "inner.h"

#if BR_POWER8

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_pwr8_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_POWER_ASM_MACROS 1
#include "bssl/inner.h"
#include "inner.h"

#if BR_POWER8

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_pwr8_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_POWER_ASM_MACROS 1
#include "bssl/inner.h"
#include "inner.h"

#if BR_POWER8

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/* see bearssl_block.h */
void
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

/*
* Inverse S-box.
Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_small_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)

#include "bssl/inner.h"
#include "inner.h"

#define S br_aes_S

Expand Down
2 changes: 1 addition & 1 deletion src/bssl/aes_x86ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#if defined(USE_LIB_SSL_ENGINE)

#define BR_ENABLE_INTRINSICS 1
#include "bssl/inner.h"
#include "inner.h"

/*
* This code contains the AES key schedule implementation using the
Expand Down
Loading

0 comments on commit e8b7b3e

Please sign in to comment.