Add missing dependencies on !MBEDTLS_X509_REMOVE_INFO

This commit is contained in:
Hanno Becker 2019-06-11 17:16:13 +01:00
parent 02a2193f60
commit 98f85c8c25
2 changed files with 4 additions and 0 deletions

View File

@ -2001,6 +2001,7 @@ int main( int argc, char *argv[] )
else
mbedtls_printf( " ok\n" );
#if !defined(MBEDTLS_X509_REMOVE_INFO)
if( mbedtls_ssl_get_peer_cert( &ssl ) != NULL )
{
mbedtls_printf( " . Peer certificate information ...\n" );
@ -2008,6 +2009,7 @@ int main( int argc, char *argv[] )
mbedtls_ssl_get_peer_cert( &ssl ) );
mbedtls_printf( "%s\n", buf );
}
#endif /* !MBEDTLS_X509_REMOVE_INFO */
#endif /* MBEDTLS_X509_CRT_PARSE_C */
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)

View File

@ -529,6 +529,8 @@ void x509parse_crt( data_t * buf, char * result_str, int result )
TEST_ASSERT( strcmp( (char *) output, result_str ) == 0 );
}
#else
((void) result_str);
#endif
mbedtls_x509_crt_free( &crt );