Avoid dead code in some configurations
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
fedefdd6f9
commit
f7d704dbd2
1 changed files with 4 additions and 1 deletions
|
@ -1841,15 +1841,18 @@ static inline const void *mbedtls_ssl_get_sig_algs(
|
||||||
const mbedtls_ssl_context *ssl )
|
const mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
if( ssl->handshake != NULL && ssl->handshake->sig_algs != NULL )
|
if( ssl->handshake != NULL && ssl->handshake->sig_algs != NULL )
|
||||||
return( ssl->handshake->sig_algs );
|
return( ssl->handshake->sig_algs );
|
||||||
#endif
|
#endif
|
||||||
return( ssl->conf->sig_algs );
|
return( ssl->conf->sig_algs );
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
|
||||||
|
#else /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
|
||||||
((void) ssl);
|
((void) ssl);
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue