From: Simon Ruderich Date: Sun, 28 Jul 2013 10:22:26 +0000 (+0200) Subject: verify.c: Increase buffer size for server certificates. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=772b48529c4ed7b7e81846c3b56075aaf97e9ea6;p=tlsproxy%2Ftlsproxy.git verify.c: Increase buffer size for server certificates. --- 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