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_0-34-g87eaca2


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_0-34-g87eaca2
Date: Sat, 24 Nov 2012 15:45:31 +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=87eaca2a83999caa575df98a7d7e483251c361ee

The branch, master has been updated
       via  87eaca2a83999caa575df98a7d7e483251c361ee (commit)
      from  8cd1f611d962eb62db6b5beb5b395597ce463110 (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 87eaca2a83999caa575df98a7d7e483251c361ee
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Nov 24 16:45:23 2012 +0100

    simplified

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

Summary of changes:
 lib/element.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/element.c b/lib/element.c
index 2c761c5..a49758b 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -389,7 +389,6 @@ asn1_write_value (asn1_node node_root, const char *name,
          memcpy (value_temp, value, len);
        }
 
-
       if (value_temp[0] & 0x80)
        negative = 1;
       else
@@ -501,12 +500,12 @@ asn1_write_value (asn1_node node_root, const char *name,
       break;
     case ASN1_ETYPE_UTC_TIME:
        {
-         if (_asn1_strlen (value) < 11)
+         if (len < 11)
            return ASN1_VALUE_NOT_VALID;
          for (k = 0; k < 10; k++)
            if (!isdigit (value[k]))
              return ASN1_VALUE_NOT_VALID;
-         switch (_asn1_strlen (value))
+         switch (len)
            {
            case 11:
              if (value[10] != 'Z')
@@ -536,12 +535,12 @@ asn1_write_value (asn1_node node_root, const char *name,
            default:
              return ASN1_VALUE_NOT_FOUND;
            }
-         _asn1_set_value (node, value, _asn1_strlen (value));
+         _asn1_set_value (node, value, len);
        }
       break;
     case ASN1_ETYPE_GENERALIZED_TIME:
       if (value)
-        _asn1_set_value (node, value, _asn1_strlen (value));
+        _asn1_set_value (node, value, len);
       break;
     case ASN1_ETYPE_OCTET_STRING:
     case ASN1_ETYPE_GENERALSTRING:


hooks/post-receive
-- 
GNU libtasn1



reply via email to

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