1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fixed to the features check

This commit is contained in:
Paul Bakker
2014-04-30 16:48:32 +02:00
parent 1a9cb81973
commit 790e395729
4 changed files with 13 additions and 1 deletions

View File

@ -41,7 +41,9 @@
#endif
const char *features[] = {
#if defined(POLARSSL_VERSION_FEATURES)
FEATURE_DEFINES
#endif
NULL
};
@ -49,6 +51,9 @@ int version_check_feature( const char *feature )
{
const char **idx = features;
if( *idx == NULL )
return( -2 );
if( feature == NULL )
return( -1 );