mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-09-04 03:22:10 +03:00
Improve documentation of mbedtls_ssl_set_hostname
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -4038,16 +4038,19 @@ void mbedtls_ssl_conf_sig_algs(mbedtls_ssl_config *conf,
|
|||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||||
/**
|
/**
|
||||||
* \brief Set or reset the hostname to check against the received
|
* \brief Set or reset the hostname to check against the received
|
||||||
* server certificate. It sets the ServerName TLS extension,
|
* peer certificate. On a client, this also sets the
|
||||||
* too, if that extension is enabled. (client-side only)
|
* ServerName TLS extension, if that extension is enabled.
|
||||||
|
* On a TLS 1.3 client, this also sets the server name in
|
||||||
|
* the session resumption ticket, if that feature is enabled.
|
||||||
*
|
*
|
||||||
* \param ssl SSL context
|
* \param ssl SSL context
|
||||||
* \param hostname the server hostname, may be NULL to clear hostname
|
* \param hostname The server hostname. This may be \c NULL to clear
|
||||||
|
* the hostname.
|
||||||
* \note Maximum hostname length MBEDTLS_SSL_MAX_HOST_NAME_LEN.
|
|
||||||
*
|
*
|
||||||
* \return 0 if successful, MBEDTLS_ERR_SSL_ALLOC_FAILED on
|
* \note Maximum hostname length #MBEDTLS_SSL_MAX_HOST_NAME_LEN.
|
||||||
* allocation failure, MBEDTLS_ERR_SSL_BAD_INPUT_DATA on
|
*
|
||||||
|
* \return 0 if successful, #MBEDTLS_ERR_SSL_ALLOC_FAILED on
|
||||||
|
* allocation failure, #MBEDTLS_ERR_SSL_BAD_INPUT_DATA on
|
||||||
* too long input hostname.
|
* too long input hostname.
|
||||||
*
|
*
|
||||||
* Hostname set to the one provided on success (cleared
|
* Hostname set to the one provided on success (cleared
|
||||||
|
Reference in New Issue
Block a user