From 2c3351e54e51d9559b470ee1bc44a5e4695987a4 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 117c5fd67..c12f7fbfe 100644 --- a/library/x509.c +++ b/library/x509.c @@ -1087,7 +1087,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 ); }