From 3681b118ec78e1052bec2b271eed8ed3c707b37a Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Sat, 7 Feb 2009 17:14:21 +0000 Subject: [PATCH] - Enlarged debug buffer to facilitate long certificate values and filenames --- library/debug.c | 2 +- library/x509parse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/debug.c b/library/debug.c index 464862577..c5bfa0a96 100644 --- a/library/debug.c +++ b/library/debug.c @@ -171,7 +171,7 @@ void debug_print_mpi( ssl_context *ssl, int level, void debug_print_crt( ssl_context *ssl, int level, char *file, int line, char *text, x509_cert *crt ) { - char str[512], prefix[64], *p; + char str[1024], prefix[64], *p; int i = 0, maxlen = sizeof( prefix ) - 1; if( ssl->f_dbg == NULL || crt == NULL ) diff --git a/library/x509parse.c b/library/x509parse.c index 8029bc5b4..83e5247fd 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -1402,7 +1402,7 @@ char *x509parse_cert_info( char *prefix, x509_cert *crt ) { int i, n; char *p, *end; - static char buf[512]; + static char buf[1024]; p = buf; end = buf + sizeof( buf ) - 1;