mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Fix minor styling issues
Remove some accidental newlines that were added previously. Update some definition guards to make it clearer that `MBEDTLS_X509_REMOVE_INFO` is defined and not undefined. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
		
							parent
							
								
									2c7458677a
								
							
						
					
					
						commit
						ee33c60fc2
					
				@ -41,14 +41,14 @@
 | 
			
		||||
    !defined(MBEDTLS_SSL_TLS_C) || !defined(MBEDTLS_SSL_CLI_C) || \
 | 
			
		||||
    !defined(MBEDTLS_NET_C) || !defined(MBEDTLS_RSA_C) ||         \
 | 
			
		||||
    !defined(MBEDTLS_X509_CRT_PARSE_C) || !defined(MBEDTLS_FS_IO) ||  \
 | 
			
		||||
    !!defined(MBEDTLS_X509_REMOVE_INFO) || !defined(MBEDTLS_CTR_DRBG_C)
 | 
			
		||||
    !defined(MBEDTLS_CTR_DRBG_C) || defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
int main( void )
 | 
			
		||||
{
 | 
			
		||||
    mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or "
 | 
			
		||||
           "MBEDTLS_SSL_TLS_C and/or MBEDTLS_SSL_CLI_C and/or "
 | 
			
		||||
           "MBEDTLS_NET_C and/or MBEDTLS_RSA_C and/or "
 | 
			
		||||
           "MBEDTLS_X509_CRT_PARSE_C and/or MBEDTLS_FS_IO and/or "
 | 
			
		||||
           "MBEDTLS_X509_REMOVE_INFO and/or MBEDTLS_CTR_DRBG_C not defined.\n");
 | 
			
		||||
           "MBEDTLS_CTR_DRBG_C not defined and/or MBEDTLS_X509_REMOVE_INFO defined.\n");
 | 
			
		||||
    mbedtls_exit( 0 );
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
@ -36,12 +36,12 @@
 | 
			
		||||
 | 
			
		||||
#if !defined(MBEDTLS_BIGNUM_C) || !defined(MBEDTLS_RSA_C) ||  \
 | 
			
		||||
    !defined(MBEDTLS_X509_CRL_PARSE_C) || !defined(MBEDTLS_FS_IO) || \
 | 
			
		||||
    !!defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
    defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
int main( void )
 | 
			
		||||
{
 | 
			
		||||
    mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or "
 | 
			
		||||
           "MBEDTLS_X509_CRL_PARSE_C and/or MBEDTLS_FS_IO and/or "
 | 
			
		||||
           "MBEDTLS_X509_REMOVE_INFO not defined.\n");
 | 
			
		||||
           "MBEDTLS_X509_CRL_PARSE_C and/or MBEDTLS_FS_IO not defined and/or "
 | 
			
		||||
           "MBEDTLS_X509_REMOVE_INFO defined.\n");
 | 
			
		||||
    mbedtls_exit( 0 );
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
@ -36,12 +36,12 @@
 | 
			
		||||
 | 
			
		||||
#if !defined(MBEDTLS_BIGNUM_C) || !defined(MBEDTLS_RSA_C) ||  \
 | 
			
		||||
    !defined(MBEDTLS_X509_CSR_PARSE_C) || !defined(MBEDTLS_FS_IO) || \
 | 
			
		||||
    !!defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
    defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
int main( void )
 | 
			
		||||
{
 | 
			
		||||
    mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or "
 | 
			
		||||
           "MBEDTLS_X509_CSR_PARSE_C and/or MBEDTLS_FS_IO and/or "
 | 
			
		||||
           "MBEDTLS_X509_REMOVE_INFO not defined.\n");
 | 
			
		||||
           "MBEDTLS_X509_CSR_PARSE_C and/or MBEDTLS_FS_IO not defined and/or "
 | 
			
		||||
           "MBEDTLS_X509_REMOVE_INFO defined.\n");
 | 
			
		||||
    mbedtls_exit( 0 );
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
@ -398,7 +398,6 @@ int parse_crt_ext_cb( void *p_ctx, mbedtls_x509_crt const *crt, mbedtls_x509_buf
 | 
			
		||||
 * END_DEPENDENCIES
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* BEGIN_CASE depends_on:MBEDTLS_FS_IO:MBEDTLS_X509_CRT_PARSE_C */
 | 
			
		||||
void x509_parse_san( char * crt_file, char * result_str )
 | 
			
		||||
{
 | 
			
		||||
@ -942,7 +941,6 @@ void x509parse_crt_cb( data_t * buf, char * result_str, int result )
 | 
			
		||||
    mbedtls_x509_crt_free( &crt );
 | 
			
		||||
    mbedtls_x509_crt_init( &crt );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    TEST_ASSERT( mbedtls_x509_crt_parse_der_with_ext_cb( &crt, buf->x, buf->len, 1, parse_crt_ext_cb, &oid ) == ( result ) );
 | 
			
		||||
#if !defined(MBEDTLS_X509_REMOVE_INFO)
 | 
			
		||||
    if( ( result ) == 0 )
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user