]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
increased the space available for certificates.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 16 Apr 2014 22:08:27 +0000 (00:08 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 16 Apr 2014 22:08:29 +0000 (00:08 +0200)
That avoids a crash in sparc64; reported by Andreas Metzler.

tests/chainverify.c

index 53af2fafdd7545cff6715368adc685d2e69f1a5f..85487bc5fd45a10cdd47614810cba1f6ab45a7ad 100644 (file)
@@ -58,6 +58,12 @@ void doit(void)
        int exit_val = 0;
        size_t i;
        int ret;
+       gnutls_x509_trust_list_t tl;
+       unsigned int verify_status, verify_status1;
+       gnutls_x509_crt_t certs[10];
+       gnutls_x509_crt_t ca;
+       gnutls_datum_t tmp;
+       size_t j;
 
        /* The overloading of time() seems to work in linux (ELF?)
         * systems only. Disable it on windows.
@@ -78,12 +84,6 @@ void doit(void)
                gnutls_global_set_log_level(4711);
 
        for (i = 0; chains[i].chain; i++) {
-               gnutls_x509_trust_list_t tl;
-               unsigned int verify_status, verify_status1;
-               gnutls_x509_crt_t certs[4];
-               gnutls_x509_crt_t ca;
-               gnutls_datum_t tmp;
-               size_t j;
 
                if (debug)
                        printf("Chain '%s' (%d)...\n", chains[i].name,