programs: ssl: Fix some mbedtls_ssl_conf_sig_algs() guards
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
d29e13eb1b
commit
20a8e63b23
2 changed files with 4 additions and 6 deletions
|
@ -2026,11 +2026,10 @@ int main( int argc, char *argv[] )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && \
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
|
||||||
if( opt.sig_algs != NULL )
|
if( opt.sig_algs != NULL )
|
||||||
mbedtls_ssl_conf_sig_algs( &conf, sig_alg_list );
|
mbedtls_ssl_conf_sig_algs( &conf, sig_alg_list );
|
||||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
|
|
|
@ -3232,11 +3232,10 @@ int main( int argc, char *argv[] )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && \
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
|
||||||
if( opt.sig_algs != NULL )
|
if( opt.sig_algs != NULL )
|
||||||
mbedtls_ssl_conf_sig_algs( &conf, sig_alg_list );
|
mbedtls_ssl_conf_sig_algs( &conf, sig_alg_list );
|
||||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue