Improve function return value description

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
Pengyu Lv 2023-03-23 11:15:24 +08:00
parent b1895899f1
commit cdf06f69dd

View file

@ -132,9 +132,10 @@ int mbedtls_ssl_cache_set(void *data,
* associated to \p session.
* \param session_id_len The length of \p session_id in bytes.
*
* \return \c 0: The cache entry for session with provided ID
* is removed or does not exist.
* A negative error code on failure.
* \return \c 0 on success. This indicates the cache entry for
* the session with provided ID is removed or does not
* exist.
* \return A negative error code on failure.
*/
int mbedtls_ssl_cache_remove(void *data,
unsigned char const *session_id,