mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-03 07:17:23 +00:00
Remove peer CRT from cache if !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
This commit is contained in:
@@ -70,7 +70,8 @@ struct mbedtls_ssl_cache_entry
|
||||
mbedtls_time_t timestamp; /*!< entry timestamp */
|
||||
#endif
|
||||
mbedtls_ssl_session session; /*!< entry session */
|
||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||
#if defined(MBEDTLS_X509_CRT_PARSE_C) && \
|
||||
defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
|
||||
mbedtls_x509_buf peer_cert; /*!< entry peer_cert */
|
||||
#endif
|
||||
mbedtls_ssl_cache_entry *next; /*!< chain pointer */
|
||||
|
||||
Reference in New Issue
Block a user