mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-14 13:41:23 +03:00
axtls: update to bddda2a0
- update ssl_client_new signature - add max fragment length negotiation support (hardcoded to 4096 bytes) - build axtls with -f{function,data}-sections, ~1k less DRAM usage, ~3k less flash - strip prefix from build paths in debug symbols
This commit is contained in:
@ -90,8 +90,11 @@ public:
|
||||
|
||||
void connect(ClientContext* ctx, const char* hostName, uint32_t timeout_ms)
|
||||
{
|
||||
SSL_EXTENSIONS* ext = ssl_ext_new();
|
||||
ssl_ext_set_host_name(ext, hostName);
|
||||
ssl_ext_set_max_fragment_size(ext, 4096);
|
||||
s_io_ctx = ctx;
|
||||
_ssl = ssl_client_new(_ssl_ctx, 0, nullptr, 0, hostName);
|
||||
_ssl = ssl_client_new(_ssl_ctx, 0, nullptr, 0, ext);
|
||||
uint32_t t = millis();
|
||||
|
||||
while (millis() - t < timeout_ms && ssl_handshake_status(_ssl) != SSL_OK) {
|
||||
|
Reference in New Issue
Block a user