aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2024-04-04 15:30:55 +0200
committerRonald Cron <ronald.cron@arm.com>2024-04-04 15:30:55 +0200
commit81bb589090f9ee1e0a83a5d3711a4c6f3e6760d4 (patch)
tree4476453dbcacbfc327a5da5f6b87fc26aea0933f /include
parent9314df617ba1d5dac972909eadf000ff9de345c7 (diff)
downloadmbedtls-81bb589090f9ee1e0a83a5d3711a4c6f3e6760d4.zip
mbedtls-81bb589090f9ee1e0a83a5d3711a4c6f3e6760d4.tar.gz
mbedtls-81bb589090f9ee1e0a83a5d3711a4c6f3e6760d4.tar.bz2
tls13: Fix doc of mbedtls_ssl_session_get() - 1
The API has eventually not been changed to return multiple tickets through multiple subsequent call to it. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/mbedtls/ssl.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h
index f788208..4064ab2 100644
--- a/include/mbedtls/ssl.h
+++ b/include/mbedtls/ssl.h
@@ -4845,23 +4845,12 @@ const mbedtls_x509_crt *mbedtls_ssl_get_peer_cert(const mbedtls_ssl_context *ssl
* \note This function can handle a variety of mechanisms for session
* resumption: For TLS 1.2, both session ID-based resumption and
* ticket-based resumption will be considered. For TLS 1.3,
- * once implemented, sessions equate to tickets, and calling
- * this function multiple times will export the available
- * tickets one a time until no further tickets are available,
- * in which case MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE will
- * be returned.
- *
- * \note Calling this function multiple times will only be useful
- * once TLS 1.3 is supported. For TLS 1.2 connections, this
- * function should be called at most once.
+ * sessions equate to tickets, and this function exports the
+ * last received ticket.
*
* \return \c 0 if successful. In this case, \p session can be used for
* session resumption by passing it to mbedtls_ssl_set_session(),
* and serialized for storage via mbedtls_ssl_session_save().
- * \return #MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE if no further session
- * is available for export.
- * This error is a non-fatal, and has no observable effect on
- * the SSL context or the destination session.
* \return Another negative error code on other kinds of failure.
*
* \sa mbedtls_ssl_set_session()