mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-24 21:21:10 +01:00
In contrast to mbedtls_x509_crt_frame_acquire(), the public key context returned by mbedtls_x509_crt_pk_acquire() cannot be marked `const` because the caller must be able to use it e.g. for mbedtls_pk_sign() and mbedtls_pk_verify(), which don't have `const` input parameters. Instead, return a non-`const` context, but explicitly state that callers must use that context in a thread-safe way.