libtasn1-commit
[Top][All Lists]
Advanced

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

[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-24-g3776216


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-24-g3776216
Date: Thu, 05 Jun 2014 13:50:45 +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 libtasn1".

http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=37762160fe2c6580a24f52cd223e6d166e31f25e

The branch, master has been updated
       via  37762160fe2c6580a24f52cd223e6d166e31f25e (commit)
      from  a8d85774a06f9ba35141fe28b15abaf9c83f7ceb (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 37762160fe2c6580a24f52cd223e6d166e31f25e
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Thu Jun 5 15:50:19 2014 +0200

    Document that ider and ider_len are optional in asn1_der_decoding_startEnd()

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

Summary of changes:
 lib/decoding.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/decoding.c b/lib/decoding.c
index 5f5d55b..f3ac191 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -1538,6 +1538,9 @@ asn1_der_decoding_element (asn1_node * structure, const 
char *elementName,
  * One example is the sequence "tbsCertificate" inside an X509
  * certificate.
  *
+ * Note that since libtasn1 3.7 the @ider and @ider_len parameters
+ * can be omitted, if the element is already decoded using asn1_der_decoding().
+ *
  * Returns: %ASN1_SUCCESS if DER encoding OK, %ASN1_ELEMENT_NOT_FOUND
  *   if ELEMENT is %asn1_node EMPTY or @name_element is not a valid
  *   element, %ASN1_TAG_ERROR or %ASN1_DER_ERROR if the der encoding
@@ -1565,6 +1568,9 @@ asn1_der_decoding_startEnd (asn1_node element, const void 
*ider, int ider_len,
 
   if (*start == 0 && *end == 0)
     {
+      if (ider == NULL || ider_len == 0)
+        return ASN1_GENERIC_ERROR;
+
       /* it seems asn1_der_decoding() wasn't called before. Do it now */
       result = asn1_der_decoding (&node, ider, ider_len, NULL);
       if (result != ASN1_SUCCESS)


hooks/post-receive
-- 
GNU libtasn1



reply via email to

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