mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
add call to mbedtls_psa_free()for MbedTLS >= 3, defaulting to TLS 1.3, retroactively documented in 3.6.1
This commit is contained in:
1 parent
fe6d357858
commit
daeca8128b
2 files changed
+8
No files matched your search
@@ -58,6 +58,10 @@ void mg_tls_free(struct mg_connection *c) {
|
||||
mbedtls_ssl_config_free(&tls->conf);
|
||||
#ifdef MBEDTLS_SSL_SESSION_TICKETS
|
||||
mbedtls_ssl_ticket_free(&tls->ticket);
|
||||
#endif
|
||||
#if defined(MBEDTLS_VERSION_NUMBER) && MBEDTLS_VERSION_NUMBER >= 0x03000000 && \
|
||||
defined(MBEDTLS_PSA_CRYPTO_C)
|
||||
mbedtls_psa_crypto_free(); // https://github.com/Mbed-TLS/mbedtls/issues/9223#issuecomment-2144898336
|
||||
#endif
|
||||
mg_free(tls);
|
||||
c->tls = NULL;
|
||||
|
||||
Reference in new issue
Block a user