Skip to content

Commit b62d8c7

Browse files
Update BearSSL, increase SSL stack (#6980)
Only minor updates to headers and no functionality change on the portions that we use in the ESP8266. @Teddyz reported random crashes while running against a local MQTT server and was able to report stack usages of up to 6136 bytes. Increase the SSL stack to a little more than that, once again.
1 parent de30762 commit b62d8c7

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Diff for: cores/esp8266/StackThunk.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ uint32_t *stack_thunk_top = NULL;
3636
uint32_t *stack_thunk_save = NULL; /* Saved A1 while in BearSSL */
3737
uint32_t stack_thunk_refcnt = 0;
3838

39-
/* Largest stack usage seen in the wild at scripts.google.com at 5828 */
40-
#define _stackSize (5900/4)
39+
/* Largest stack usage seen in the wild at 6120 */
40+
#define _stackSize (6200/4)
4141
#define _stackPaint 0xdeadbeef
4242

4343
/* Add a reference, and allocate the stack if necessary */

Diff for: tools/sdk/include/bearssl/bearssl_ec.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ extern "C" {
108108
*
109109
* - The multipliers (integers) MUST be lower than the subgroup order.
110110
* If this property is not met, then the result is indeterminate,
111-
* but an error value is not ncessearily returned.
111+
* but an error value is not necessarily returned.
112112
*
113113
*
114114
* ## ECDSA

Diff for: tools/sdk/include/bearssl/bearssl_git.h

+1-1
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 89454af
2+
#define BEARSSL_GIT 0645c68

Diff for: tools/sdk/include/bearssl/bearssl_ssl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ void br_ssl_engine_sendapp_ack(br_ssl_engine_context *cc, size_t len);
21142114
/**
21152115
* \brief Get buffer for received application data.
21162116
*
2117-
* If the engine has received application data from the peer, hen this
2117+
* If the engine has received application data from the peer, then this
21182118
* call returns a pointer to the buffer from where such data shall be
21192119
* read, and its length is written in `*len`. Otherwise, `*len` is set
21202120
* to 0 and `NULL` is returned.

Diff for: tools/sdk/lib/libbearssl.a

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)