mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Add missing dependencies on !MBEDTLS_X509_REMOVE_INFO
Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
parent
612a2f1504
commit
5d4c4b1f95
@ -2300,8 +2300,10 @@ int main( int argc, char *argv[] )
|
|||||||
else
|
else
|
||||||
mbedtls_printf( " ok\n" );
|
mbedtls_printf( " ok\n" );
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
||||||
mbedtls_printf( " . Peer certificate information ...\n" );
|
mbedtls_printf( " . Peer certificate information ...\n" );
|
||||||
mbedtls_printf( "%s\n", peer_crt_info );
|
mbedtls_printf( "%s\n", peer_crt_info );
|
||||||
|
#endif /* !MBEDTLS_X509_REMOVE_INFO */
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
|
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
|
||||||
|
@ -844,6 +844,8 @@ void x509parse_crt( data_t * buf, char * result_str, int result )
|
|||||||
|
|
||||||
TEST_ASSERT( strcmp( (char *) output, result_str ) == 0 );
|
TEST_ASSERT( strcmp( (char *) output, result_str ) == 0 );
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
((void) result_str);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mbedtls_x509_crt_free( &crt );
|
mbedtls_x509_crt_free( &crt );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user