Skip to content

Commit 2966cf7

Browse files
committed
BearSSLCOnfig: disable br_sslio_close
1 parent f494e2c commit 2966cf7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: src/ArduinoBearSSLConfig.h

+14
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@
3636
/* If uncommented TA should be configured via constructor */
3737
//#define ARDUINO_BEARSSL_DISABLE_BUILTIN_TRUST_ANCHORS
3838

39+
/* If uncommented disables br_sslio_close call.From BearSSL docs:
40+
*
41+
* br_sslio_close(): perform the SSL closure protocol. This entails sending a
42+
* close_notify alert, and receiving a close_notify response.
43+
*
44+
* Note that a number of deployed SSL implementations do not follow the protocol
45+
* for closure, and may drop the underlying socket abruptly. As such, errors are
46+
* often reported by br_sslio_close().
47+
*
48+
* In case of mbed-os + ArduinoIoTCloud br_sslio_close is endless looping
49+
* blocking sketch execution.
50+
*/
51+
#define ARDUINO_BEARSSL_DISABLE_TLS_CLOSE
52+
3953
#define BEAR_SSL_CLIENT_CHAIN_SIZE 1
4054

4155
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) ||\

0 commit comments

Comments
 (0)