Fix return of x509_self_test without SHA-1

No being able to run the test is not a failure
This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-07 10:56:09 +02:00
parent d1004f02e6
commit 620ee19823

View file

@ -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 */
}