mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Expose mbedtls_ssl_get_hostname_pointer()
In 2.28, the `hostname` field of `mbedtls_ssl_context` is part of the public API. We've slightly changed its meaning in order to fix a security issue. Document the new function mbedtls_ssl_get_hostname_pointer() which returns what used to be the value of this field. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -62,11 +62,6 @@ static int mbedtls_ssl_has_set_hostname_been_called(
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Micro-optimization: don't export this function if it isn't needed outside
|
||||
* of this source file. */
|
||||
#if !defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
|
||||
static
|
||||
#endif
|
||||
const char *mbedtls_ssl_get_hostname_pointer(const mbedtls_ssl_context *ssl)
|
||||
{
|
||||
if (ssl->hostname == ssl_hostname_skip_cn_verification) {
|
||||
|
Reference in New Issue
Block a user