Guard CRT writing structure by MBEDTLS_X509_CRT_WRITE_C

This commit is contained in:
Hanno Becker 2019-08-23 15:23:27 +01:00
parent 6cf97b7fc6
commit e8c52ff191

View File

@ -194,6 +194,7 @@ mbedtls_x509_crt_profile;
#define MBEDTLS_X509_MAX_FILE_PATH_LEN 512
#endif
#if defined(MBEDTLS_X509_CRT_WRITE_C)
/**
* Container for writing a certificate (CRT)
*/
@ -211,6 +212,7 @@ typedef struct mbedtls_x509write_cert
mbedtls_asn1_named_data *extensions;
}
mbedtls_x509write_cert;
#endif /* MBEDTLS_X509_CRT_WRITE_C */
/**
* Item in a verification chain: cert and flags for it