Merge pull request #10640 from davidhorstmann-arm/add-unused-fields-to-structs

Add unused fields to structs
This commit is contained in:
David Horstmann
2026-03-16 14:40:03 +00:00
committed by GitHub
2 changed files with 24 additions and 0 deletions

View File

@@ -1239,6 +1239,12 @@ struct mbedtls_ssl_session {
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) #if defined(MBEDTLS_SSL_PROTO_TLS1_3)
mbedtls_ssl_tls13_application_secrets MBEDTLS_PRIVATE(app_secrets); mbedtls_ssl_tls13_application_secrets MBEDTLS_PRIVATE(app_secrets);
#endif #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) #if defined(MBEDTLS_KEY_EXCHANGE_CERT_REQ_ALLOWED_ENABLED)
const mbedtls_x509_crt *MBEDTLS_PRIVATE(dn_hints);/*!< acceptable client cert issuers */ const mbedtls_x509_crt *MBEDTLS_PRIVATE(dn_hints);/*!< acceptable client cert issuers */
#endif #endif
/* Unused field reserved for future use */
union {
size_t number;
void *ptr;
} MBEDTLS_PRIVATE(unused);
}; };
struct mbedtls_ssl_context { struct mbedtls_ssl_context {
@@ -1848,6 +1860,12 @@ struct mbedtls_ssl_context {
* does not currently restore the user data. * does not currently restore the user data.
*/ */
mbedtls_ssl_user_data_t MBEDTLS_PRIVATE(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);
}; };
/** /**

View File

@@ -82,6 +82,12 @@ typedef struct mbedtls_x509_crt {
mbedtls_md_type_t MBEDTLS_PRIVATE(sig_md); /**< Internal representation of the MD algorithm of the signature algorithm, e.g. MBEDTLS_MD_SHA256 */ mbedtls_md_type_t MBEDTLS_PRIVATE(sig_md); /**< Internal representation of the MD algorithm of the signature algorithm, e.g. MBEDTLS_MD_SHA256 */
mbedtls_pk_sigalg_t MBEDTLS_PRIVATE(sig_pk); /**< Internal representation of the Public Key algorithm of the signature algorithm, e.g. MBEDTLS_PK_RSA */ mbedtls_pk_sigalg_t MBEDTLS_PRIVATE(sig_pk); /**< Internal representation of the Public Key algorithm of the signature algorithm, e.g. MBEDTLS_PK_RSA */
/* Unused field reserved for future use */
union {
size_t number;
void *ptr;
} MBEDTLS_PRIVATE(unused);
/** Next certificate in the linked list that constitutes the CA chain. /** Next certificate in the linked list that constitutes the CA chain.
* \p NULL indicates the end of the list. * \p NULL indicates the end of the list.
* Do not modify this field directly. */ * Do not modify this field directly. */