From aac152328d5bcc837bafb80d3be72ef030e7f710 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Mon, 10 Oct 2016 23:23:41 +0100 Subject: [PATCH] Add extra compilation conditions to X.509 samples The sample applications programs/pkey/cert_req.c and programs/pkey/cert_write.c use the library functions mbedtls_pk_write_csr_pem() and mbedtls_pk_write_crt_pem() respectively and programs/pkey/gen_key.c uses the library function mbedtls_pk_write_key_pem(). These are dependent on the configuration option POLARSSL_PEM_WRITE_C. If the option isn't defined the build breaks. This change adds the compilation condition POLARSSL_PEM_WRITE_C to these sample applications.