From 5cc087945a8b17f9c3c367388a95cc6301acbe15 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Fri, 27 Mar 2020 16:55:35 +0000 Subject: [PATCH] Correct comment on the configuration option in x509.c In x509.c, the self-test code is dependent on MBEDTLS_CERTS_C and MBEDTLS_SHA256_C being enabled. At some point in the recent past that dependency was on MBEDTLS_SHA1_C but changed to SHA256, but the comment wasn't updated. This commit updates the comment. Signed-off-by: Simon Butcher --- library/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509.c b/library/x509.c index 2e0b0e8f..4d253032 100644 --- a/library/x509.c +++ b/library/x509.c @@ -1063,7 +1063,7 @@ cleanup: mbedtls_x509_crt_free( &clicert ); #else ((void) verbose); -#endif /* MBEDTLS_CERTS_C && MBEDTLS_SHA1_C */ +#endif /* MBEDTLS_CERTS_C && MBEDTLS_SHA256_C */ return( ret ); }