gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, master, updated. gnutls_3_1_0-95-ga3c7dd4


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_1_0-95-ga3c7dd4
Date: Wed, 19 Sep 2012 16:31:28 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=a3c7dd45aad2e9b2164d042c96557bfd00117787

The branch, master has been updated
       via  a3c7dd45aad2e9b2164d042c96557bfd00117787 (commit)
      from  d6b13d0791d362e9e4cd0080c45b302667210356 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3c7dd45aad2e9b2164d042c96557bfd00117787
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Wed Sep 19 18:30:09 2012 +0200

    corrected usage of defines

-----------------------------------------------------------------------

Summary of changes:
 lib/x509/verify-high.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 7aeac95..36bf149 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -409,21 +409,21 @@ static int shorten_clist(gnutls_x509_trust_list_t list,
  * Returns the size of the ordered list (which is always less or
  * equal to the original).
  */
-static gnutls_x509_crt_t* sort_clist(gnutls_x509_crt_t 
sorted[DEFAULT_VERIFY_DEPTH], 
+static gnutls_x509_crt_t* sort_clist(gnutls_x509_crt_t 
sorted[DEFAULT_MAX_VERIFY_DEPTH], 
                                      gnutls_x509_crt_t * clist,
                                      unsigned int *clist_size)
 {
   int prev;
   unsigned int j, i;
-  int issuer[DEFAULT_VERIFY_DEPTH]; /* contain the index of the issuers */
+  int issuer[DEFAULT_MAX_VERIFY_DEPTH]; /* contain the index of the issuers */
     
     /* Do not bother sorting if too many certificates are given.
      * Prevent any DoS attacks.
      */
-  if (*clist_size > DEFAULT_VERIFY_DEPTH)
+  if (*clist_size > DEFAULT_MAX_VERIFY_DEPTH)
     return clist;
 
-  for (i=0;i<DEFAULT_VERIFY_DEPTH;i++)
+  for (i=0;i<DEFAULT_MAX_VERIFY_DEPTH;i++)
     issuer[i] = -1;
 
   /* Find the issuer of each certificate and store it
@@ -546,7 +546,7 @@ gnutls_x509_trust_list_verify_crt(gnutls_x509_trust_list_t 
list,
     int ret;
     unsigned int i;
     uint32_t hash;
-    gnutls_x509_crt_t sorted[DEFAULT_VERIFY_DEPTH];
+    gnutls_x509_crt_t sorted[DEFAULT_MAX_VERIFY_DEPTH];
 
     if (cert_list == NULL || cert_list_size < 1)
         return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]