mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-07-03 13:03:16 +08:00

This achieves two related goals: 1. Those members are now only accessed via the accessor function (except in code paths that we don't care about: those guarded by MBEDTLS_PK_RSA_ALT_SUPPORT or MBEDTLS_ECP_RESTARTABLE) 2. When we turn on compile-time dispatch, we don't obviously don't want to keep a runtime NULL check. For debug this requires changing the signature or the accessor function to return int; this is done without changing the signature of the accessed function.