From 620ee1982394e9b4d9387130738a5bee8a6d0574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 7 Aug 2015 10:56:09 +0200 Subject: [PATCH] Fix return of x509_self_test without SHA-1 No being able to run the test is not a failure --- library/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509.c b/library/x509.c index 0d4295105..14ec3222c 100644 --- a/library/x509.c +++ b/library/x509.c @@ -1016,7 +1016,7 @@ int mbedtls_x509_self_test( int verbose ) return( 0 ); #else ((void) verbose); - return( MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE ); + return( 0 ); #endif /* MBEDTLS_CERTS_C && MBEDTLS_SHA1_C */ }