summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-22 14:09:49 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-22 14:09:49 +0200
commit78084940d8bcb03216e92096fcde4738101e8417 (patch)
treecdb5891f17ffd39f242197f8087c6bd6841b4e9a
parentb20dbf3c15968c670e61eea319794e0abad0dbc1 (diff)
downloadgnutls-78084940d8bcb03216e92096fcde4738101e8417.tar.gz
doc updates
-rw-r--r--NEWS2
-rw-r--r--lib/x509/verify-high.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 71466897af..e929d78bd1 100644
--- a/NEWS
+++ b/NEWS
@@ -31,7 +31,7 @@ key usage violation errors (they are far too common to ignore).
** libgnutls: Added GNUTLS_STATELESS_COMPRESSION flag to gnutls_init(),
which provides a tool to counter compression-related attacks where
-parts of the data are controlled by the attacker _and_ placed in
+parts of the data are controlled by the attacker _and_ are placed in
separate records (use with care - do not use compression if not sure).
** libgnutls: Depends on libtasn1 2.14 or later.
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 36bf149ebe..369e79e71e 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -406,8 +406,10 @@ static int shorten_clist(gnutls_x509_trust_list_t list,
/* Takes a certificate list and orders it with subject, issuer order.
*
- * Returns the size of the ordered list (which is always less or
+ * *clist_size contains the size of the ordered list (which is always less or
* equal to the original).
+ *
+ * Returns the sorted list which may be the original clist.
*/
static gnutls_x509_crt_t* sort_clist(gnutls_x509_crt_t sorted[DEFAULT_MAX_VERIFY_DEPTH],
gnutls_x509_crt_t * clist,