mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add missing MBEDTLS_X509_REMOVE_INFO guards in ssl_context_info.c
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
committed by
Chris Jones
parent
b4e5ddce1b
commit
2c2722d637
@ -494,6 +494,7 @@ size_t read_next_b64_code( uint8_t **b64, size_t *max_len )
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
||||
/*
|
||||
* This function deserializes and prints to the stdout all obtained information
|
||||
* about the certificates from provided data.
|
||||
@ -548,6 +549,7 @@ void print_deserialized_ssl_cert( const uint8_t *ssl, uint32_t len )
|
||||
|
||||
mbedtls_x509_crt_free( &crt );
|
||||
}
|
||||
#endif /* !MBEDTLS_X509_REMOVE_INFO */
|
||||
|
||||
/*
|
||||
* This function deserializes and prints to the stdout all obtained information
|
||||
@ -680,7 +682,9 @@ void print_deserialized_ssl_session( const uint8_t *ssl, uint32_t len,
|
||||
if( cert_len > 0 )
|
||||
{
|
||||
CHECK_SSL_END( cert_len );
|
||||
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
||||
print_deserialized_ssl_cert( ssl, cert_len );
|
||||
#endif
|
||||
ssl += cert_len;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user