1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

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
This commit is contained in:
Ivan Grokhotkov 2016-05-10 23:34:33 +08:00
parent 082a4865fc
commit e8b8a606e4
3 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class SSLContext {
public: public:
SSLContext() { SSLContext() {
if (_ssl_ctx_refcnt == 0) { if (_ssl_ctx_refcnt == 0) {
_ssl_ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER | SSL_DEBUG_OPTS | SSL_CONNECT_IN_PARTS, 0); _ssl_ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER | SSL_DEBUG_OPTS | SSL_CONNECT_IN_PARTS | SSL_READ_BLOCKING, 0);
} }
++_ssl_ctx_refcnt; ++_ssl_ctx_refcnt;
} }
@ -592,3 +592,7 @@ extern "C" void* ax_port_realloc(void* ptr, size_t size, const char* file, int l
extern "C" void ax_port_free(void* ptr) { extern "C" void ax_port_free(void* ptr) {
free(ptr); free(ptr);
} }
extern "C" void ax_wdt_feed() {
optimistic_yield(10000);
}

View File

@ -85,6 +85,7 @@ typedef struct SSL_ SSL;
#define SSL_DISPLAY_CERTS 0x00200000 #define SSL_DISPLAY_CERTS 0x00200000
#define SSL_DISPLAY_RSA 0x00400000 #define SSL_DISPLAY_RSA 0x00400000
#define SSL_CONNECT_IN_PARTS 0x00800000 #define SSL_CONNECT_IN_PARTS 0x00800000
#define SSL_READ_BLOCKING 0x01000000
/* errors that can be generated */ /* errors that can be generated */
#define SSL_OK 0 #define SSL_OK 0

Binary file not shown.