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:
Hanno Becker 2019-07-22 11:04:16 +01:00 committed by Manuel Pégourié-Gonnard
parent 6dd8e1c54d
commit 7cedd8bed2

View file

@ -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 ) ); return( mbedtls_net_send( io_ctx->net, buf, len ) );
} }
#if !defined(MBEDTLS_SSL_CONF_AUTHMODE)
/* /*
* Return authmode from string, or -1 on error * Return authmode from string, or -1 on error
*/ */
@ -806,7 +805,6 @@ static int get_auth_mode( const char *s )
return( -1 ); return( -1 );
} }
#endif /* !MBEDTLS_SSL_CONF_AUTHMODE */
/* /*
* Used by sni_parse and psk_parse to handle coma-separated lists * Used by sni_parse and psk_parse to handle coma-separated lists