libtasn1-commit
[Top][All Lists]
Advanced

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

[Libtasn1-commit] [SCM] GNU libtasn1 branch, master, updated. libtasn1_2


From: Simon Josefsson
Subject: [Libtasn1-commit] [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_5-10-gc89ee24
Date: Tue, 16 Mar 2010 10:03:59 +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=c89ee2490328e434f0e0b2a5b5ddd42fcb9ed645

The branch, master has been updated
       via  c89ee2490328e434f0e0b2a5b5ddd42fcb9ed645 (commit)
       via  a9cd295645d66cf19cd7b0a8ff82a15dcf141770 (commit)
       via  abdaaa7bc126f742b026c1ef6e3d0f63fec8a4b4 (commit)
      from  d0ac4ff0b2f4f7c188e984072ec8a4ddd8c943a6 (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 c89ee2490328e434f0e0b2a5b5ddd42fcb9ed645
Author: Simon Josefsson <address@hidden>
Date:   Tue Mar 16 11:03:50 2010 +0100

    Add.

commit a9cd295645d66cf19cd7b0a8ff82a15dcf141770
Author: Simon Josefsson <address@hidden>
Date:   Tue Mar 16 11:03:26 2010 +0100

    tests/Test_errors: Add, for more error checking.

commit abdaaa7bc126f742b026c1ef6e3d0f63fec8a4b4
Author: Simon Josefsson <address@hidden>
Date:   Tue Mar 16 10:53:26 2010 +0100

    Generated.

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

Summary of changes:
 NEWS                |    2 ++
 doc/Makefile.am     |    8 +++++---
 tests/Makefile.am   |    6 ++++--
 tests/Test_errors.c |   40 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+), 5 deletions(-)
 create mode 100644 tests/Test_errors.c

diff --git a/NEWS b/NEWS
index 4fc7c62..0528325 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
 * Noteworthy changes in release 2.6 (????-??-??) [stable]
+- libtasn1: Simplified implementation of asn1_check_version.
+- tests: Improved self-checks.
 
 * Noteworthy changes in release 2.5 (2010-03-15) [stable]
 - doc: Improve GTK-DOC comments.
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fa54d1a..b508c8c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -67,7 +67,6 @@ gdoc_MANS += man/asn1_strerror.3
 gdoc_MANS += man/libtasn1_perror.3
 gdoc_MANS += man/libtasn1_strerror.3
 gdoc_MANS += man/asn1_find_node.3
-gdoc_MANS += man/asn1_check_version.3
 gdoc_MANS += man/asn1_length_der.3
 gdoc_MANS += man/asn1_octet_der.3
 gdoc_MANS += man/asn1_bit_der.3
@@ -85,6 +84,7 @@ gdoc_MANS += man/asn1_find_structure_from_oid.3
 gdoc_MANS += man/asn1_copy_node.3
 gdoc_MANS += man/asn1_parser2tree.3
 gdoc_MANS += man/asn1_parser2array.3
+gdoc_MANS += man/asn1_check_version.3
 gdoc_TEXINFOS =
 gdoc_TEXINFOS += texi/decoding.c.texi
 gdoc_TEXINFOS += texi/errors.c.texi
@@ -94,6 +94,7 @@ gdoc_TEXINFOS += texi/element.c.texi
 gdoc_TEXINFOS += texi/gstr.c.texi
 gdoc_TEXINFOS += texi/structure.c.texi
 gdoc_TEXINFOS += texi/ASN1.c.texi
+gdoc_TEXINFOS += texi/version.c.texi
 gdoc_TEXINFOS += texi/asn1_get_length_der.texi
 gdoc_TEXINFOS += texi/asn1_get_tag_der.texi
 gdoc_TEXINFOS += texi/asn1_get_length_ber.texi
@@ -109,7 +110,6 @@ gdoc_TEXINFOS += texi/asn1_strerror.texi
 gdoc_TEXINFOS += texi/libtasn1_perror.texi
 gdoc_TEXINFOS += texi/libtasn1_strerror.texi
 gdoc_TEXINFOS += texi/asn1_find_node.texi
-gdoc_TEXINFOS += texi/asn1_check_version.texi
 gdoc_TEXINFOS += texi/asn1_length_der.texi
 gdoc_TEXINFOS += texi/asn1_octet_der.texi
 gdoc_TEXINFOS += texi/asn1_bit_der.texi
@@ -127,6 +127,7 @@ gdoc_TEXINFOS += texi/asn1_find_structure_from_oid.texi
 gdoc_TEXINFOS += texi/asn1_copy_node.texi
 gdoc_TEXINFOS += texi/asn1_parser2tree.texi
 gdoc_TEXINFOS += texi/asn1_parser2array.texi
+gdoc_TEXINFOS += texi/asn1_check_version.texi
 
 $(gdoc_MANS) $(gdoc_TEXINFOS):
        make update-makefile
@@ -136,7 +137,8 @@ $(gdoc_MANS) $(gdoc_TEXINFOS):
 GDOC_SRC = $(top_srcdir)/lib/decoding.c $(top_srcdir)/lib/errors.c     \
        $(top_srcdir)/lib/parser_aux.c $(top_srcdir)/lib/coding.c       \
        $(top_srcdir)/lib/element.c $(top_srcdir)/lib/gstr.c            \
-       $(top_srcdir)/lib/structure.c $(top_builddir)/lib/ASN1.c
+       $(top_srcdir)/lib/structure.c $(top_builddir)/lib/ASN1.c        \
+       $(top_builddir)/lib/version.c
 
 update-makefile:
        @MANS=""; \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2abc669..9dc2d14 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,9 +31,11 @@ dist_check_SCRIPTS = crlf
 
 MOSTLYCLEANFILES = Test_parser_ERROR.asn
 
-check_PROGRAMS = Test_parser Test_tree Test_encoding Test_indefinite
+check_PROGRAMS = Test_parser Test_tree Test_encoding Test_indefinite   \
+       Test_errors
 
-TESTS = Test_parser Test_tree Test_encoding Test_indefinite crlf
+TESTS = Test_parser Test_tree Test_encoding Test_indefinite    \
+       Test_errors crlf
 
 TESTS_ENVIRONMENT = \
        ASN1PARSER=$(srcdir)/Test_parser.asn \
diff --git a/tests/Test_errors.c b/tests/Test_errors.c
new file mode 100644
index 0000000..6ddcf33
--- /dev/null
+++ b/tests/Test_errors.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2010 Free Software Foundation, Inc.
+ *
+ * This file is part of LIBTASN1.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include "libtasn1.h"
+
+int
+main (int argc, char *argv[])
+{
+  asn1_retCode ec = 0;
+  const char *errstr;
+
+  do {
+    errstr = asn1_strerror (ec);
+    asn1_perror (ec);
+#ifndef ASN1_DISABLE_DEPRECATED
+    errstr = libtasn1_strerror (ec);
+    libtasn1_perror (ec);
+#endif
+    ec++;
+  } while (errstr);
+
+  return 0;
+}


hooks/post-receive
-- 
GNU libtasn1




reply via email to

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