From 157cb656a9ee2a80b6a2b68bc2095f4ff46246ef Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Sat, 13 Feb 2016 23:19:04 +0000 Subject: [PATCH] Clarified mbedtls_ssl_conf_alpn_protocols() doc Clarified the lifetime of the protos parameter passed in the function mbedtls_ssl_conf_alpn_protocols(). --- include/mbedtls/ssl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index c64b1b230..4212bb03c 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -1882,8 +1882,11 @@ int mbedtls_ssl_set_hs_ecjpake_password( mbedtls_ssl_context *ssl, * \brief Set the supported Application Layer Protocols. * * \param conf SSL configuration - * \param protos NULL-terminated list of supported protocols, - * in decreasing preference order. + * \param protos Pointer to a NULL-terminated list of supported protocols, + * in decreasing preference order. The pointer to the list is + * recorded by the library for later reference as required, so + * the lifetime of the table should be as long as the + * SSL configuration structure. * * \return 0 on success, or MBEDTLS_ERR_SSL_BAD_INPUT_DATA. */