mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-05 19:01:12 +03:00
Update the documentation of ssl->hostname
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -1403,8 +1403,14 @@ struct mbedtls_ssl_context {
|
|||||||
* User settings
|
* User settings
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||||
char *hostname; /*!< expected peer CN for verification
|
/** Expected peer CN for verification.
|
||||||
(and SNI if available) */
|
*
|
||||||
|
* Also used on clients for SNI.
|
||||||
|
*
|
||||||
|
* If this is \p NULL, the peer name verification is skipped, and
|
||||||
|
* the server_name extension is not sent.
|
||||||
|
*/
|
||||||
|
char *hostname;
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_ALPN)
|
#if defined(MBEDTLS_SSL_ALPN)
|
||||||
|
Reference in New Issue
Block a user