mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
Remove SNI related code
Change-Id: Ic44bdb27b1bdc5c9057078dfed936fc36bddebbe Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
This commit is contained in:
parent
9a4e1dd8a6
commit
e7a5da597f
@ -560,14 +560,7 @@ static int ssl_tls13_validate_certificate( mbedtls_ssl_context *ssl )
|
|||||||
* from the configuration. */
|
* from the configuration. */
|
||||||
#if defined(MBEDTLS_SSL_SRV_C)
|
#if defined(MBEDTLS_SSL_SRV_C)
|
||||||
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_SERVER )
|
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_SERVER )
|
||||||
{
|
authmode = ssl->conf->authmode;
|
||||||
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
|
|
||||||
if( ssl->handshake->sni_authmode != MBEDTLS_SSL_VERIFY_UNSET )
|
|
||||||
authmode = ssl->handshake->sni_authmode;
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
authmode = ssl->conf->authmode;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user