mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Fixed to the features check
This commit is contained in:
parent
1a9cb81973
commit
790e395729
4 changed files with 13 additions and 1 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue