mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 00:35:50 +01:00
Remove overly strict guard in ssl_server2
get_auth_mode() is needed for a change of authmode through SNI, which is possible even if the original authmode is hardcoded.
This commit is contained in:
parent
6dd8e1c54d
commit
7cedd8bed2
@ -791,7 +791,6 @@ static int send_cb( void *ctx, unsigned char const *buf, size_t len )
|
||||
return( mbedtls_net_send( io_ctx->net, buf, len ) );
|
||||
}
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_AUTHMODE)
|
||||
/*
|
||||
* Return authmode from string, or -1 on error
|
||||
*/
|
||||
@ -806,7 +805,6 @@ static int get_auth_mode( const char *s )
|
||||
|
||||
return( -1 );
|
||||
}
|
||||
#endif /* !MBEDTLS_SSL_CONF_AUTHMODE */
|
||||
|
||||
/*
|
||||
* Used by sni_parse and psk_parse to handle coma-separated lists
|
||||
|
Loading…
Reference in New Issue
Block a user