mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-07 00:04:36 +03:00
Add option for blocking reads
This commit is contained in:
@@ -124,6 +124,9 @@ int do_clnt_handshake(SSL *ssl, int handshake_type, uint8_t *buf, int hs_len)
|
||||
case HS_FINISHED:
|
||||
ret = process_finished(ssl, buf, hs_len);
|
||||
disposable_free(ssl);
|
||||
if (ssl->ssl_ctx->options & SSL_READ_BLOCKING) {
|
||||
ssl->flag |= SSL_READ_BLOCKING;
|
||||
}
|
||||
/* note: client renegotiation is not allowed after this */
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user