Files
mbedtls-framework/tests
Gilles Peskine 34bd04d6dd Support mutex API type being separate from the platform type
The way the mutex usage verification framework plugs into the library
requires it to have access to the API type, which holds the state field. In
the new threading API, the mutable function that the framework overrides now
only receives a pointer to the platform object that is embedded in the API
object. Hence we need to calculate a pointer to the containing API object
when given a pointer to the platform object. It's ugly, but it works.

A follow-up should clean this up by changing how the mutex usage
verification framework plugs into the library. It should use a more normal
hook function mechanism instead of replacing the function pointers.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-09-01 19:47:23 +02:00
..
2025-02-19 15:17:23 +00:00
2025-02-19 15:17:23 +00:00