A few more issues with small configurations

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-20 12:29:56 +02:00
parent 1a483833b3
commit 7831b0cb3c
3 changed files with 31 additions and 32 deletions

View file

@ -39,6 +39,16 @@
#define DFL_FILENAME "file.pem"
#define DFL_OUTPUT_FILENAME "file.der"
#if !defined(POLARSSL_BASE64_C) || !defined(POLARSSL_FS_IO)
int main( int argc, char *argv[] )
{
((void) argc);
((void) argv);
printf("POLARSSL_BASE64_C and/or POLARSSL_FS_IO not defined.\n");
return( 0 );
}
#else
/*
* global options
*/
@ -161,16 +171,6 @@ static int write_file( const char *path, unsigned char *buf, size_t n )
" output_file=%%s default: file.der\n" \
"\n"
#if !defined(POLARSSL_BASE64_C) || !defined(POLARSSL_FS_IO)
int main( int argc, char *argv[] )
{
((void) argc);
((void) argv);
printf("POLARSSL_BASE64_C and/or POLARSSL_FS_IO not defined.\n");
return( 0 );
}
#else
int main( int argc, char *argv[] )
{
int ret = 0;