mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +00:00
Merge pull request #5473 from mpg/rm-dead-code
Avoid dead code in some configurations
This commit is contained in:
commit
24b781da3c
@ -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…
x
Reference in New Issue
Block a user