mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Depend on PEM_PARsE_C when using test_cas_pem
This commit is contained in:
parent
da1619d345
commit
b5410dbd96
7 changed files with 20 additions and 16 deletions
|
|
@ -556,13 +556,13 @@ int main( int argc, char *argv[] )
|
|||
ret = pk_parse_keyfile( &pkey, opt.key_file, "" );
|
||||
else
|
||||
#endif
|
||||
#if defined(POLARSSL_CERTS_C)
|
||||
#if defined(POLARSSL_CERTS_C) && defined(POLARSSL_PEM_PARSE_C)
|
||||
ret = pk_parse_key( &pkey, (const unsigned char *) test_cli_key,
|
||||
test_cli_key_len, NULL, 0 );
|
||||
#else
|
||||
{
|
||||
ret = -1;
|
||||
polarssl_printf("POLARSSL_CERTS_C not defined.");
|
||||
polarssl_printf("POLARSSL_CERTS_C or POLARSSL_PEM_PARSE_C not defined.");
|
||||
}
|
||||
#endif
|
||||
if( ret != 0 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue