mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:55:27 +00:00
Add missing compilation guards in test suite
Fix the build when MBEDTLS_USE_PSA_CRYPTO is set but MBEDTLS_X509_CSR_WRITE_C is not.
This commit is contained in:
parent
ead19fecf9
commit
f4e672ec9e
|
@ -33,7 +33,8 @@ size_t mbedtls_rsa_key_len_func( void *ctx )
|
|||
}
|
||||
#endif /* MBEDTLS_RSA_C */
|
||||
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) && \
|
||||
defined(MBEDTLS_PEM_WRITE_C) && defined(MBEDTLS_X509_CSR_WRITE_C)
|
||||
static int x509_crt_verifycsr( const unsigned char *buf, size_t buflen )
|
||||
{
|
||||
unsigned char hash[MBEDTLS_MD_MAX_SIZE];
|
||||
|
@ -70,7 +71,7 @@ cleanup:
|
|||
mbedtls_x509_csr_free( &csr );
|
||||
return( ret );
|
||||
}
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO && MBEDTLS_PEM_WRITE_C && MBEDTLS_X509_CSR_WRITE_C */
|
||||
|
||||
/* END_HEADER */
|
||||
|
||||
|
|
Loading…
Reference in a new issue