mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Add unused fields to SSL structs
These fields reserve a small space for us to repurpose in the lifetime of the 4.1 LTS release without breaking the ABI, if needed. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
@@ -1239,6 +1239,12 @@ struct mbedtls_ssl_session {
|
||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||
mbedtls_ssl_tls13_application_secrets MBEDTLS_PRIVATE(app_secrets);
|
||||
#endif
|
||||
|
||||
/* Unused field reserved for future use */
|
||||
union {
|
||||
size_t number;
|
||||
void *ptr;
|
||||
} MBEDTLS_PRIVATE(unused);
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -1565,6 +1571,12 @@ struct mbedtls_ssl_config {
|
||||
#if defined(MBEDTLS_KEY_EXCHANGE_CERT_REQ_ALLOWED_ENABLED)
|
||||
const mbedtls_x509_crt *MBEDTLS_PRIVATE(dn_hints);/*!< acceptable client cert issuers */
|
||||
#endif
|
||||
|
||||
/* Unused field reserved for future use */
|
||||
union {
|
||||
size_t number;
|
||||
void *ptr;
|
||||
} MBEDTLS_PRIVATE(unused);
|
||||
};
|
||||
|
||||
struct mbedtls_ssl_context {
|
||||
@@ -1848,6 +1860,12 @@ struct mbedtls_ssl_context {
|
||||
* does not currently restore the user data.
|
||||
*/
|
||||
mbedtls_ssl_user_data_t MBEDTLS_PRIVATE(user_data);
|
||||
|
||||
/* Unused field reserved for future use */
|
||||
union {
|
||||
size_t number;
|
||||
void *ptr;
|
||||
} MBEDTLS_PRIVATE(unused);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user