From fa1f9049902980b5ba9244a99103117ec82cfc79 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 28 Apr 2021 10:04:05 +0100 Subject: [PATCH] Fix an error when copy-pasting x509_crt_verify_info Made a mistake when copy-pasting and put the guard in the wrong place. Fix that by moving the compile time guard. Signed-off-by: Chris Jones --- programs/ssl/ssl_test_common_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ssl/ssl_test_common_source.c b/programs/ssl/ssl_test_common_source.c index 35dfa60c2..73457a139 100644 --- a/programs/ssl/ssl_test_common_source.c +++ b/programs/ssl/ssl_test_common_source.c @@ -305,13 +305,13 @@ int ssl_sig_hashes_for_test[] = { #endif /* MBEDTLS_X509_CRT_PARSE_C */ #if defined(MBEDTLS_X509_CRT_PARSE_C) -#if !defined(MBEDTLS_X509_REMOVE_INFO) /** Functionally equivalent to mbedtls_x509_crt_verify_info, see that function * for more info. */ int x509_crt_verify_info( char *buf, size_t size, const char *prefix, uint32_t flags ) { +#if !defined(MBEDTLS_X509_REMOVE_INFO) return( mbedtls_x509_crt_verify_info( buf, size, prefix, flags ) ); #else /* !MBEDTLS_X509_REMOVE_INFO */