Merge pull request #317 from Inikup/fix-issue-315

cert_write : fix "Destination buffer is too small" error
This commit is contained in:
Manuel Pégourié-Gonnard 2015-11-02 05:52:26 +09:00
commit 1c6f19aa47

View File

@ -189,11 +189,11 @@ int main( int argc, char *argv[] )
mbedtls_pk_context *issuer_key = &loaded_issuer_key, mbedtls_pk_context *issuer_key = &loaded_issuer_key,
*subject_key = &loaded_subject_key; *subject_key = &loaded_subject_key;
char buf[1024]; char buf[1024];
char issuer_name[128]; char issuer_name[256];
int i; int i;
char *p, *q, *r; char *p, *q, *r;
#if defined(MBEDTLS_X509_CSR_PARSE_C) #if defined(MBEDTLS_X509_CSR_PARSE_C)
char subject_name[128]; char subject_name[256];
mbedtls_x509_csr csr; mbedtls_x509_csr csr;
#endif #endif
mbedtls_x509write_cert crt; mbedtls_x509write_cert crt;