X.509 self-tests: replaced SHA-1 certificates by SHA-256

This commit is contained in:
Gilles Peskine 2017-05-05 18:56:30 +02:00 committed by Manuel Pégourié-Gonnard
parent f040a17604
commit 750c353c5c
2 changed files with 80 additions and 43 deletions

View file

@ -1035,7 +1035,7 @@ int mbedtls_x509_time_is_future( const mbedtls_x509_time *from )
*/
int mbedtls_x509_self_test( int verbose )
{
#if defined(MBEDTLS_CERTS_C) && defined(MBEDTLS_SHA1_C)
#if defined(MBEDTLS_CERTS_C) && defined(MBEDTLS_SHA256_C)
int ret;
uint32_t flags;
mbedtls_x509_crt cacert;