From 772b48529c4ed7b7e81846c3b56075aaf97e9ea6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 28 Jul 2013 12:22:26 +0200 Subject: [PATCH] verify.c: Increase buffer size for server certificates. --- src/verify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/verify.c b/src/verify.c index 487ad2e..dfc6bfb 100644 --- a/src/verify.c +++ b/src/verify.c @@ -40,8 +40,8 @@ int verify_tls_connection(gnutls_session_t session, const char *hostname) { unsigned int cert_list_size; FILE *file; char buffer[66]; /* one line in a PEM file is 64 bytes + '\n' + '\0' */ - char server_cert[8192]; - char stored_cert[8192]; + char server_cert[16384]; + char stored_cert[16384]; result = gnutls_certificate_verify_peers2(session, &status); /* Verification failed (!= invalid certificate but worse), no need for any -- 2.45.2