Skip to content

Commit 416660c

Browse files
Initial attempt
1 parent 8fd3938 commit 416660c

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

cores/esp8266/cont.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <stdbool.h>
2525

2626
#ifndef CONT_STACKSIZE
27-
#define CONT_STACKSIZE 4096
27+
#define CONT_STACKSIZE (4096+4500)
2828
#endif
2929

3030
#ifdef __cplusplus

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,18 @@ void WiFiClientSecure::_clearAuthenticationSettings() {
8585

8686

8787
WiFiClientSecure::WiFiClientSecure() : WiFiClient() {
88+
disable_extra4k_at_link_time();
8889
_cipher_list = NULL;
8990
_cipher_cnt = 0;
9091
_clear();
9192
_clearAuthenticationSettings();
9293
_certStore = nullptr; // Don't want to remove cert store on a clear, should be long lived
93-
if (!_bearssl_stack) {
94-
const int stacksize = 4500; // Empirically determined stack for EC and RSA connections
95-
_bearssl_stack = std::shared_ptr<uint8_t>(new uint8_t[stacksize], std::default_delete<uint8_t[]>());
96-
br_esp8266_stack_proxy_init(_bearssl_stack.get(), stacksize);
97-
}
98-
_local_bearssl_stack = _bearssl_stack;
94+
// if (!_bearssl_stack) {
95+
// const int stacksize = 4500; // Empirically determined stack for EC and RSA connections
96+
// _bearssl_stack = std::shared_ptr<uint8_t>(new uint8_t[stacksize], std::default_delete<uint8_t[]>());
97+
// br_esp8266_stack_proxy_init(_bearssl_stack.get(), stacksize);
98+
// }
99+
// _local_bearssl_stack = _bearssl_stack;
99100
}
100101

101102
WiFiClientSecure::~WiFiClientSecure() {
@@ -105,7 +106,7 @@ WiFiClientSecure::~WiFiClientSecure() {
105106
}
106107
free(_cipher_list);
107108
_freeSSL();
108-
_local_bearssl_stack = nullptr; // Potentially delete it if we're the last SSL object
109+
// _local_bearssl_stack = nullptr; // Potentially delete it if we're the last SSL object
109110
if (_deleteChainKeyTA) {
110111
delete _ta;
111112
delete _chain;

tools/sdk/include/bearssl/bearssl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
#include "bearssl_ssl.h"
137137
#include "bearssl_x509.h"
138138
#include "bearssl_pem.h"
139-
#include "bearssl_port.h"
140139

141140
/** \brief Type for a configuration option.
142141
*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
2-
#define BEARSSL_GIT 4b98d91
2+
#define BEARSSL_GIT f759cf8

tools/sdk/lib/libbearssl.a

-47.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)