Skip to content

Commit e8b8a60

Browse files
committedMay 10, 2016
Update axTLS to 139914f
- Fix occasional software WDT due to lengthy bigint operations - Implement truly blocking reads as a workaround for half-duplex nature of axTLS
1 parent 082a486 commit e8b8a60

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
 

Diff for: ‎libraries/ESP8266WiFi/src/WiFiClientSecure.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SSLContext {
6666
public:
6767
SSLContext() {
6868
if (_ssl_ctx_refcnt == 0) {
69-
_ssl_ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER | SSL_DEBUG_OPTS | SSL_CONNECT_IN_PARTS, 0);
69+
_ssl_ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER | SSL_DEBUG_OPTS | SSL_CONNECT_IN_PARTS | SSL_READ_BLOCKING, 0);
7070
}
7171
++_ssl_ctx_refcnt;
7272
}
@@ -592,3 +592,7 @@ extern "C" void* ax_port_realloc(void* ptr, size_t size, const char* file, int l
592592
extern "C" void ax_port_free(void* ptr) {
593593
free(ptr);
594594
}
595+
596+
extern "C" void ax_wdt_feed() {
597+
optimistic_yield(10000);
598+
}

Diff for: ‎libraries/ESP8266WiFi/src/include/ssl.h

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ typedef struct SSL_ SSL;
8585
#define SSL_DISPLAY_CERTS 0x00200000
8686
#define SSL_DISPLAY_RSA 0x00400000
8787
#define SSL_CONNECT_IN_PARTS 0x00800000
88+
#define SSL_READ_BLOCKING 0x01000000
8889

8990
/* errors that can be generated */
9091
#define SSL_OK 0

Diff for: ‎tools/sdk/lib/libaxtls.a

1.15 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.