mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-13 08:35:34 +00:00
Add list_config into query_comile_time_config
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
0abd677ed7
commit
4f2dff429a
|
@ -33,13 +33,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define USAGE \
|
#define USAGE \
|
||||||
"usage: %s <MBEDTLS_CONFIG>\n\n" \
|
"usage: %s <MBEDTLS_CONFIG> | -l\n\n" \
|
||||||
"This program takes one command line argument which corresponds to\n" \
|
"This program takes one command line argument which corresponds to\n" \
|
||||||
"the string representation of a Mbed TLS compile time configuration.\n" \
|
"the string representation of a Mbed TLS compile time configuration.\n" \
|
||||||
"The value 0 will be returned if this configuration is defined in the\n" \
|
"The value 0 will be returned if this configuration is defined in the\n" \
|
||||||
"Mbed TLS build and the macro expansion of that configuration will be\n" \
|
"Mbed TLS build and the macro expansion of that configuration will be\n" \
|
||||||
"printed (if any). Otherwise, 1 will be returned.\n"
|
"printed (if any). Otherwise, 1 will be returned.\n" \
|
||||||
|
"-l\tPrint all available configuration"
|
||||||
|
#include <string.h>
|
||||||
#include "query_config.h"
|
#include "query_config.h"
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
|
@ -50,5 +51,11 @@ int main( int argc, char *argv[] )
|
||||||
return( MBEDTLS_EXIT_FAILURE );
|
return( MBEDTLS_EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( strcmp( argv[1], "-l" ) == 0 )
|
||||||
|
{
|
||||||
|
list_config();
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
return( query_config( argv[1] ) );
|
return( query_config( argv[1] ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue