Signed-off-by: Hanno Becker <hanno.becker@arm.com>
993 B
Remove the SSL API mbedtls_ssl_get_session_pointer()
This affects two classes of users:
-
Users who manually inspect parts of the current session through direct structure field access.
-
Users of session resumption who query the current session via
mbedtls_ssl_get_session_pointer()
prior to saving or exporting it viambedtls_ssl_session_copy()
ormbedtls_ssl_session_save()
, respectively.
Migration paths:
-
Mbed TLS 3.0 does not offer a migration path for the usecase 1: Like many other Mbed TLS structures, the structure of
mbedtls_ssl_session
is no longer part of the public API in Mbed TLS 3.0, and direct structure field access is no longer supported. Please see the corresponding migration guide. -
Users should replace calls to
mbedtls_ssl_get_session_pointer()
by calls tombedtls_ssl_get_session()
as demonstrated in the example programprograms/ssl/ssl_client2.c
.