Skip to content

Commit bfc7843

Browse files
author
Mika Leppänen
committed
Enabled non-blocking ECC calculation on TLS server
1 parent ce36f2c commit bfc7843

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@ int8_t tls_sec_prot_lib_connect(tls_security_t *sec, bool is_server, const sec_p
332332
mbedtls_ssl_conf_min_version(&sec->conf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MAJOR_VERSION_3);
333333
mbedtls_ssl_conf_max_version(&sec->conf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MAJOR_VERSION_3);
334334

335+
#ifdef MBEDTLS_ECP_RESTARTABLE
336+
if (endpoint == MBEDTLS_SSL_IS_SERVER) {
337+
// Temporary to enable non blocking ECC */
338+
sec->ssl.handshake->ecrs_enabled = 1;
339+
}
340+
#endif
341+
335342
return 0;
336343
}
337344

0 commit comments

Comments
 (0)