]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
verify.c: Increase buffer size for server certificates.
authorSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 10:22:26 +0000 (12:22 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 10:22:26 +0000 (12:22 +0200)
src/verify.c

index 487ad2ede213e1fc266d4e890fc5ce5ee50f1980..dfc6bfb2930c4f1f31dc2775bfb8cd600e50075d 100644 (file)
@@ -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