mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Clarify that session cache query must return free-able session
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
b94fdae3c3
commit
0d05f40222
@ -639,11 +639,16 @@ typedef struct mbedtls_ssl_flight_item mbedtls_ssl_flight_item;
|
|||||||
* \param data The address of the session cache structure to query.
|
* \param data The address of the session cache structure to query.
|
||||||
* \param session_id The buffer holding the session ID to query.
|
* \param session_id The buffer holding the session ID to query.
|
||||||
* \param session_id_len The length of \p session_id in Bytes.
|
* \param session_id_len The length of \p session_id in Bytes.
|
||||||
* \param session The address at which to store the session found
|
* \param session The address of the session structure to populate.
|
||||||
* in the cache.
|
* It is initialized with mbdtls_ssl_session_init(),
|
||||||
|
* and the callback must always leave it in a state
|
||||||
|
* where it can savely be freed via
|
||||||
|
* mbedtls_ssl_session_free() independent of the
|
||||||
|
* return code of this function.
|
||||||
*
|
*
|
||||||
* \return \c 0 on success
|
* \return \c 0 on success
|
||||||
* \return A non-zero return value on failure.
|
* \return A non-zero return value on failure.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef int mbedtls_ssl_cache_get_t( void *data,
|
typedef int mbedtls_ssl_cache_get_t( void *data,
|
||||||
unsigned char const *session_id,
|
unsigned char const *session_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user