mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Make guards more consistent between X.509-has-certs and SSL-has-certs
Fix some build errors when MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED is false but MBEDTLS_X509_CRT_PARSE_C is enabled. This is not a particularly useful configuration, but for quick testing, it's convenient for it to work. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -315,7 +315,7 @@ uint16_t ssl_sig_algs_for_test[] = {
|
|||||||
};
|
};
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
#if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED)
|
||||||
/** Functionally equivalent to mbedtls_x509_crt_verify_info, see that function
|
/** Functionally equivalent to mbedtls_x509_crt_verify_info, see that function
|
||||||
* for more info.
|
* for more info.
|
||||||
*/
|
*/
|
||||||
@ -350,9 +350,7 @@ static int x509_crt_verify_info(char *buf, size_t size, const char *prefix,
|
|||||||
return (int) (size - n);
|
return (int) (size - n);
|
||||||
#endif /* MBEDTLS_X509_REMOVE_INFO */
|
#endif /* MBEDTLS_X509_REMOVE_INFO */
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED)
|
|
||||||
static void mbedtls_print_supported_sig_algs(void)
|
static void mbedtls_print_supported_sig_algs(void)
|
||||||
{
|
{
|
||||||
mbedtls_printf("supported signature algorithms:\n");
|
mbedtls_printf("supported signature algorithms:\n");
|
||||||
|
Reference in New Issue
Block a user