Found 4 other functions taking a
mbedtls_ssl_session
argument:
Free referenced items in an SSL session including the peer certificate and clear memory
Initialize SSL session structure
Save session in order to resume it later (client-side only) Session data is copied to presented session structure. \sa mbedtls_ssl_set_session()
Request resumption of session (client-side only) Session data is copied from presented session structure. \sa mbedtls_ssl_get_session()