- Enlarged debug buffer to facilitate long certificate values and filenames

This commit is contained in:
Paul Bakker 2009-02-07 17:14:21 +00:00
parent 2da561c2a1
commit 3681b118ec
2 changed files with 2 additions and 2 deletions

View file

@ -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 )

View file

@ -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;