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-39-gabd9f8b


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_0-39-gabd9f8b
Date: Sat, 24 Nov 2012 17:28:30 +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=abd9f8b947f8ee5ee8643ea2f2e9821f149f1858

The branch, master has been updated
       via  abd9f8b947f8ee5ee8643ea2f2e9821f149f1858 (commit)
       via  020ed0387e48fedf89224539d10db1bb464bb4a2 (commit)
       via  76c0e3bca289c1001597dd7081e894f860cee0ec (commit)
       via  99f058ce44b5354d4d44cfae0b9394a36c1fe8f4 (commit)
      from  3c439d2a5c5fb669645076bcd380a352fb23d725 (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 abd9f8b947f8ee5ee8643ea2f2e9821f149f1858
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Nov 24 18:27:34 2012 +0100

    released 3.1

commit 020ed0387e48fedf89224539d10db1bb464bb4a2
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Nov 24 18:22:32 2012 +0100

    revert to use strlen when writing time values.

commit 76c0e3bca289c1001597dd7081e894f860cee0ec
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Nov 24 18:13:29 2012 +0100

    Documented the new functions

commit 99f058ce44b5354d4d44cfae0b9394a36c1fe8f4
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Nov 24 18:07:23 2012 +0100

    bumped version

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

Summary of changes:
 NEWS              |    4 ++--
 configure.ac      |    6 +++---
 doc/Makefile.am   |    6 ++++++
 doc/libtasn1.texi |   12 ++++++++++++
 lib/element.c     |    5 +++--
 lib/libtasn1.h    |    2 +-
 6 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/NEWS b/NEWS
index b2dddec..220afde 100644
--- a/NEWS
+++ b/NEWS
@@ -1,12 +1,12 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
-* Noteworthy changes in release 3.1 (unreleased) [stable]
+* Noteworthy changes in release 3.1 (released 2012-11-24) [stable]
 - Completed rename of types:
   ASN1_ARRAY_TYPE -> asn1_static_node (was asn1_static_node_t)
 - Added new types: VisibleString, NumericString, IA5String, TeletexString,
   PrintableString, UniversalString, BMPString, UTF8String. When re-defined
   a warning is being print instead of failing.
-- Parser outputs more detailed syntax error message.
+- Parser outputs more detailed syntax error messages.
 - Added asn1_decode_simple_der() and asn1_encode_simple_der().
 - Added asn1_read_value_type() to return value and type.
 - Introduced ASN1_ETYPE_UTC_TIME and ASN1_ETYPE_GENERALIZED_TIME
diff --git a/configure.ac b/configure.ac
index 839fc6b..a3d089b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure 
script.
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.61])
-AC_INIT([GNU Libtasn1],[3.0],address@hidden)
+AC_INIT([GNU Libtasn1],[3.1],address@hidden)
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_HEADERS(config.h)
@@ -28,9 +28,9 @@ AM_SILENT_RULES([yes])
 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
 # Interfaces added:                             AGE++
 # Interfaces removed:                           AGE=0
-AC_SUBST(LT_CURRENT, 6)
+AC_SUBST(LT_CURRENT, 7)
 AC_SUBST(LT_REVISION, 0)
-AC_SUBST(LT_AGE, 0)
+AC_SUBST(LT_AGE, 1)
 
 AC_PROG_CC
 gl_EARLY
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 71f4b69..2ede853 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -61,15 +61,18 @@ gdoc_MANS += man/asn1_der_decoding_element.3
 gdoc_MANS += man/asn1_der_decoding_startEnd.3
 gdoc_MANS += man/asn1_expand_any_defined_by.3
 gdoc_MANS += man/asn1_expand_octet_string.3
+gdoc_MANS += man/asn1_decode_simple_der.3
 gdoc_MANS += man/asn1_perror.3
 gdoc_MANS += man/asn1_strerror.3
 gdoc_MANS += man/asn1_find_node.3
 gdoc_MANS += man/asn1_length_der.3
 gdoc_MANS += man/asn1_octet_der.3
+gdoc_MANS += man/asn1_encode_simple_der.3
 gdoc_MANS += man/asn1_bit_der.3
 gdoc_MANS += man/asn1_der_coding.3
 gdoc_MANS += man/asn1_write_value.3
 gdoc_MANS += man/asn1_read_value.3
+gdoc_MANS += man/asn1_read_value_type.3
 gdoc_MANS += man/asn1_read_tag.3
 gdoc_MANS += man/asn1_read_node_value.3
 gdoc_MANS += man/asn1_array2tree.3
@@ -103,15 +106,18 @@ gdoc_TEXINFOS += texi/asn1_der_decoding_element.texi
 gdoc_TEXINFOS += texi/asn1_der_decoding_startEnd.texi
 gdoc_TEXINFOS += texi/asn1_expand_any_defined_by.texi
 gdoc_TEXINFOS += texi/asn1_expand_octet_string.texi
+gdoc_TEXINFOS += texi/asn1_decode_simple_der.texi
 gdoc_TEXINFOS += texi/asn1_perror.texi
 gdoc_TEXINFOS += texi/asn1_strerror.texi
 gdoc_TEXINFOS += texi/asn1_find_node.texi
 gdoc_TEXINFOS += texi/asn1_length_der.texi
 gdoc_TEXINFOS += texi/asn1_octet_der.texi
+gdoc_TEXINFOS += texi/asn1_encode_simple_der.texi
 gdoc_TEXINFOS += texi/asn1_bit_der.texi
 gdoc_TEXINFOS += texi/asn1_der_coding.texi
 gdoc_TEXINFOS += texi/asn1_write_value.texi
 gdoc_TEXINFOS += texi/asn1_read_value.texi
+gdoc_TEXINFOS += texi/asn1_read_value_type.texi
 gdoc_TEXINFOS += texi/asn1_read_tag.texi
 gdoc_TEXINFOS += texi/asn1_read_node_value.texi
 gdoc_TEXINFOS += texi/asn1_array2tree.texi
diff --git a/doc/libtasn1.texi b/doc/libtasn1.texi
index 9ed4d4a..ac2d52c 100644
--- a/doc/libtasn1.texi
+++ b/doc/libtasn1.texi
@@ -112,6 +112,7 @@ POSIX is required.
 @menu
 * ASN.1 syntax::
 * Naming::
+* Simple parsing::
 * Library Notes::
 * Future developments::
 @end menu
@@ -243,6 +244,17 @@ receive the names @code{?1}, @code{?2}, and so on.
 The @code{?LAST} name indicates the last element of a @code{SET OF} or
 @code{SEQUENCE OF}.
 
address@hidden Simple parsing
address@hidden Simple parsing
+
+For simple types like @code{OCTET STRING} the simple parsing functions listed
+below may be used instead.
+
address@hidden
address@hidden @ref{asn1_decode_simple_der}
address@hidden @ref{asn1_encode_simple_der}
address@hidden itemize
+
 @node Library Notes
 @section Library Notes
 
diff --git a/lib/element.c b/lib/element.c
index a49758b..763ac58 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -500,6 +500,7 @@ asn1_write_value (asn1_node node_root, const char *name,
       break;
     case ASN1_ETYPE_UTC_TIME:
        {
+         len = _asn1_strlen(value);
          if (len < 11)
            return ASN1_VALUE_NOT_VALID;
          for (k = 0; k < 10; k++)
@@ -539,8 +540,8 @@ asn1_write_value (asn1_node node_root, const char *name,
        }
       break;
     case ASN1_ETYPE_GENERALIZED_TIME:
-      if (value)
-        _asn1_set_value (node, value, len);
+      len = _asn1_strlen(value);
+      _asn1_set_value (node, value, len);
       break;
     case ASN1_ETYPE_OCTET_STRING:
     case ASN1_ETYPE_GENERALSTRING:
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 5b50c47..06474f3 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -44,7 +44,7 @@ extern "C"
 {
 #endif
 
-#define ASN1_VERSION "3.0"
+#define ASN1_VERSION "3.1"
 
   /*****************************************/
   /* Errors returned by libtasn1 functions */


hooks/post-receive
-- 
GNU libtasn1



reply via email to

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