mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-16 10:37:54 -04:00
Fix an error when copy-pasting x509_crt_verify_info
Made a mistake when copy-pasting and put the guard in the wrong place. Fix that by moving the compile time guard. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
parent
e383fa65d7
commit
fa1f904990
@ -305,13 +305,13 @@ int ssl_sig_hashes_for_test[] = {
|
|||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||||
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
|
||||||
/** Functionally equivalent to mbedtls_x509_crt_verify_info, see that function
|
/** Functionally equivalent to mbedtls_x509_crt_verify_info, see that function
|
||||||
* for more info.
|
* for more info.
|
||||||
*/
|
*/
|
||||||
int x509_crt_verify_info( char *buf, size_t size, const char *prefix,
|
int x509_crt_verify_info( char *buf, size_t size, const char *prefix,
|
||||||
uint32_t flags )
|
uint32_t flags )
|
||||||
{
|
{
|
||||||
|
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
||||||
return( mbedtls_x509_crt_verify_info( buf, size, prefix, flags ) );
|
return( mbedtls_x509_crt_verify_info( buf, size, prefix, flags ) );
|
||||||
|
|
||||||
#else /* !MBEDTLS_X509_REMOVE_INFO */
|
#else /* !MBEDTLS_X509_REMOVE_INFO */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user