From MAILER-DAEMON Wed Sep 12 16:20:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TBtQ7-0001tV-5A
	for mharc-libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:20:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47077)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtPt-0001rc-PM
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:20:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtPh-0000hB-1s
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:20:09 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:39102)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtPg-0000h7-PP
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:19:56 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtPf-0006vs-Tf
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 20:19:56 +0000
Date: Wed, 12 Sep 2012 20:19:56 +0000
Message-Id: <E1TBtPf-0006vs-Tf@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-12-gb86e75d
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: c5226f57807bf53fd3aff5ce2f36d62f2e9b7553
X-Git-Newrev: b86e75de8bc3a35620f069b7b00d680284d86eb5
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Sep 2012 20:20:21 -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=b86e75de8bc3a35620f069b7b00d680284d86eb5

The branch, master has been updated
       via  b86e75de8bc3a35620f069b7b00d680284d86eb5 (commit)
       via  7ddf0590e6310af489228f21fbf6c30de89c8c04 (commit)
       via  f21ac35f6ea131cef3ce3636aa6da7851c81762b (commit)
       via  fdd367e3222763cb810cb3a4dd4496c1cf9b65c7 (commit)
       via  447cf8fc1f670f17fe1e439a69af4d47555536e4 (commit)
       via  20700893c89d35b9b628a086d6465ed2f6a7a5b5 (commit)
       via  f46ad825895cc5f27a00bc0b763190fa330c4d78 (commit)
       via  124b8e37473e91253f4ea0b027cd5d508b4abca0 (commit)
      from  c5226f57807bf53fd3aff5ce2f36d62f2e9b7553 (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 b86e75de8bc3a35620f069b7b00d680284d86eb5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 22:19:43 2012 +0200

    small_value_size changed to 8. No visible difference in performance

commit 7ddf0590e6310af489228f21fbf6c30de89c8c04
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 22:19:08 2012 +0200

    name is now a statically allocated string and other optimizations.

commit f21ac35f6ea131cef3ce3636aa6da7851c81762b
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 21:59:14 2012 +0200

    internal structure removed

commit fdd367e3222763cb810cb3a4dd4496c1cf9b65c7
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 21:58:41 2012 +0200

    bumped version

commit 447cf8fc1f670f17fe1e439a69af4d47555536e4
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sun Sep 9 01:25:58 2012 +0200

    eliminates few leaks

commit 20700893c89d35b9b628a086d6465ed2f6a7a5b5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sat Sep 8 21:03:45 2012 +0200

    Added tool to benchmark X.509 structure decoding.

commit f46ad825895cc5f27a00bc0b763190fa330c4d78
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sat Sep 8 20:45:02 2012 +0200

    Updated to new gnulib and added gettime.

commit 124b8e37473e91253f4ea0b027cd5d508b4abca0
Author: Tim Ruehsen <tim.ruehsen@gmx.de>
Date:   Fri Aug 31 15:27:59 2012 +0200

    cleanup _asn1_copy_structure3
    
    Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>

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

Summary of changes:
 build-aux/gendocs.sh      |   35 ++++--
 build-aux/gnupload        |   28 ++++-
 configure.ac              |    8 +-
 gl/Makefile.am            |   62 +++++++++-
 gl/errno.in.h             |   48 +++++++-
 gl/fstat.c                |    2 +
 gl/gettext.h              |    9 +-
 gl/{ftell.c => gettime.c} |   45 +++++---
 gl/gettimeofday.c         |  154 ++++++++++++++++++++++++
 gl/m4/clock_time.m4       |   31 +++++
 gl/m4/errno_h.m4          |   11 ++-
 gl/m4/extensions.m4       |    4 +-
 gl/m4/extern-inline.m4    |   55 +++++++++
 gl/m4/getopt.m4           |  291 ++++++++++++++++++++++++--------------------
 gl/m4/gettime.m4          |   13 ++
 gl/m4/gettimeofday.m4     |  140 ++++++++++++++++++++++
 gl/m4/gnulib-cache.m4     |    5 +-
 gl/m4/gnulib-common.m4    |    4 +-
 gl/m4/gnulib-comp.m4      |  220 +++++++++++++++++++---------------
 gl/m4/largefile.m4        |    2 +-
 gl/m4/manywarnings.m4     |  153 ++++++++++++++----------
 gl/m4/multiarch.m4        |    4 +-
 gl/m4/nocrash.m4          |    4 +-
 gl/m4/stdio_h.m4          |    4 +-
 gl/m4/sys_socket_h.m4     |  177 +++++++++++++++++++++++++++
 gl/m4/sys_time_h.m4       |  110 +++++++++++++++++
 gl/m4/time_h.m4           |    4 +-
 gl/m4/timespec.m4         |   11 ++
 gl/stdint.in.h            |    2 +-
 gl/stdio-impl.h           |    4 +-
 gl/stdlib.in.h            |    4 +-
 gl/sys_time.in.h          |  205 +++++++++++++++++++++++++++++++
 gl/timespec.c             |    3 +
 gl/timespec.h             |   92 ++++++++++++++
 gl/unistd.in.h            |    2 +-
 lib/decoding.c            |    6 +-
 lib/element.c             |   10 +-
 lib/int.h                 |    4 +-
 lib/libtasn1.h            |   26 +---
 lib/parser_aux.c          |  110 +----------------
 lib/parser_aux.h          |   97 ++++++++++++++--
 lib/structure.c           |   51 +++-----
 maint.mk                  |  140 +++++++++++++++-------
 src/Makefile.am           |    2 +-
 src/asn1Decoding.c        |  110 +++++++++++------
 src/benchmark.c           |  157 ++++++++++++++++++++++++
 src/benchmark.h           |   52 ++++++++
 tests/Makefile.am         |    2 +-
 tests/{crlf => benchmark} |    2 +-
 49 files changed, 2095 insertions(+), 620 deletions(-)
 copy gl/{ftell.c => gettime.c} (54%)
 create mode 100644 gl/gettimeofday.c
 create mode 100644 gl/m4/clock_time.m4
 create mode 100644 gl/m4/extern-inline.m4
 create mode 100644 gl/m4/gettime.m4
 create mode 100644 gl/m4/gettimeofday.m4
 create mode 100644 gl/m4/sys_socket_h.m4
 create mode 100644 gl/m4/sys_time_h.m4
 create mode 100644 gl/m4/timespec.m4
 create mode 100644 gl/sys_time.in.h
 create mode 100644 gl/timespec.c
 create mode 100644 gl/timespec.h
 create mode 100644 src/benchmark.c
 create mode 100644 src/benchmark.h
 copy tests/{crlf => benchmark} (96%)

diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh
index c8abd55..c293f96 100755
--- a/build-aux/gendocs.sh
+++ b/build-aux/gendocs.sh
@@ -2,10 +2,10 @@
 # gendocs.sh -- generate a GNU manual in many formats.  This script is
 #   mentioned in maintain.texi.  See the help message below for usage details.
 
-scriptversion=2011-04-08.14
+scriptversion=2012-09-02.17
 
-# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
+# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+# Free Software Foundation, Inc.
 #
 # 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
@@ -51,15 +51,16 @@ unset use_texi2html
 
 version="gendocs.sh $scriptversion
 
-Copyright 2010 Free Software Foundation, Inc.
+Copyright 2012 Free Software Foundation, Inc.
 There is NO warranty.  You may redistribute this software
 under the terms of the GNU General Public License.
 For more information about these matters, see the files named COPYING."
 
 usage="Usage: $prog [OPTION]... PACKAGE MANUAL-TITLE
 
-Generate various output formats from PACKAGE.texinfo (or .texi or .txi) source.
-See the GNU Maintainers document for a more extensive discussion:
+Generate output in various formats from PACKAGE.texinfo (or .texi or
+.txi) source.  See the GNU Maintainers document for a more extensive
+discussion:
   http://www.gnu.org/prep/maintain_toc.html
 
 Options:
@@ -68,6 +69,7 @@ Options:
   --email ADR use ADR as contact in generated web pages.
   --docbook   convert to DocBook too (xml, txt, html, pdf and ps).
   --html ARG  pass indicated ARG to makeinfo or texi2html for HTML targets.
+  --info ARG  pass indicated ARG to makeinfo for Info, instead of --no-split.
   --texi2html use texi2html to generate HTML targets.
   --help      display this help and exit successfully.
   --version   display version information and exit successfully.
@@ -80,11 +82,11 @@ Typical sequence:
   wget \"$templateurl\"
   $prog --email BUGLIST MANUAL \"GNU MANUAL - One-line description\"
 
-Output will be in a new subdirectory \"manual\" (by default, use -o OUTDIR
-to override).  Move all the new files into your web CVS tree, as
-explained in the Web Pages node of maintain.texi.
+Output will be in a new subdirectory \"manual\" (by default;
+use -o OUTDIR to override).  Move all the new files into your web CVS
+tree, as explained in the Web Pages node of maintain.texi.
 
-Please use the --email ADDRESS option to specify your bug-reporting
+Please do use the --email ADDRESS option to specify your bug-reporting
 address in the generated HTML pages.
 
 MANUAL-TITLE is included as part of the HTML <title> of the overall
@@ -102,6 +104,9 @@ If a manual's Texinfo sources are spread across several directories,
 first copy or symlink all Texinfo sources into a single directory.
 (Part of the script's work is to make a tar.gz of the sources.)
 
+As implied above, by default monolithic Info files are generated.
+If you want split Info, or other Info options, use --info to override.
+
 You can set the environment variables MAKEINFO, TEXI2DVI, TEXI2HTML, and
 DVIPS to control the programs that get executed, and
 GENDOCS_TEMPLATE_DIR to control where the gendocs_template file is
@@ -126,6 +131,7 @@ MANUAL_TITLE=
 PACKAGE=
 EMAIL=webmasters@gnu.org  # please override with --email
 htmlarg=
+infoarg=--no-split
 outdir=manual
 srcfile=
 
@@ -138,6 +144,7 @@ while test $# -gt 0; do
     -o) shift; outdir=$1;;
     --docbook) docbook=yes;;
     --html) shift; htmlarg=$1;;
+    --info) shift; infoarg=$1;;
     --texi2html) use_texi2html=1;;
     -*)
       echo "$0: Unknown option \`$1'." >&2
@@ -188,10 +195,10 @@ case $outdir in
   *)  abs_outdir=$srcdir/$outdir;;
 esac
 
-echo Generating output formats for $srcfile
+echo "Generating output formats for $srcfile"
 
-cmd="$SETLANG $MAKEINFO -o $PACKAGE.info \"$srcfile\""
-echo "Generating info files... ($cmd)"
+cmd="$SETLANG $MAKEINFO -o $PACKAGE.info $infoarg \"$srcfile\""
+echo "Generating info file(s)... ($cmd)"
 eval "$cmd"
 mkdir -p "$outdir/"
 tar czf "$outdir/$PACKAGE.info.tar.gz" $PACKAGE.info*
@@ -204,7 +211,7 @@ echo "Generating dvi ... ($cmd)"
 eval "$cmd"
 
 # now, before we compress dvi:
-echo Generating postscript...
+echo "Generating postscript..."
 ${DVIPS} $PACKAGE -o
 gzip -f -9 $PACKAGE.ps
 ps_gz_size=`calcsize $PACKAGE.ps.gz`
diff --git a/build-aux/gnupload b/build-aux/gnupload
index 40a59d3..a0e5c7b 100755
--- a/build-aux/gnupload
+++ b/build-aux/gnupload
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Sign files and upload them.
 
-scriptversion=2012-01-15.15; # UTC
+scriptversion=2012-06-11.00; # UTC
 
 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
 #
@@ -28,6 +28,7 @@ GPG='gpg --batch --no-tty'
 conffile=.gnuploadrc
 to=
 dry_run=false
+replace=
 symlink_files=
 delete_files=
 delete_symlinks=
@@ -53,8 +54,10 @@ Options:
   --to DEST                specify one destination for FILES
                            (multiple --to options are allowed)
   --user NAME              sign with key NAME
+  --replace                allow replacements of existing files
   --symlink-regex[=EXPR]   use sed script EXPR to compute symbolic link names
   --dry-run                do nothing, show what would have been done
+                           (including the constructed directive file)
   --version                output version information and exit
 
 If --symlink-regex is given without EXPR, then the link target name
@@ -146,6 +149,9 @@ while test -n "$1"; do
     --delete)
       collect_var=delete_files
       ;;
+    --replace)
+      replace="replace: true"
+      ;;
     --rmsymlink)
       collect_var=delete_symlinks
       ;;
@@ -243,11 +249,13 @@ unset passphrase
 # listings with their arguments...).
 # Remember this script runs with 'set -e', so if echo is not built-in
 # it will exit now.
-PATH=/empty echo -n "Enter GPG passphrase: "
-stty -echo
-read -r passphrase
-stty echo
-echo
+if $dry_run; then :; else
+  PATH=/empty echo -n "Enter GPG passphrase: "
+  stty -echo
+  read -r passphrase
+  stty echo
+  echo
+fi
 
 if test $# -ne 0; then
   for file
@@ -270,7 +278,7 @@ filename: $3$stmt"
   fi
 
   cat >${2}.directive<<EOF
-version: 1.1
+version: 1.2
 directory: $1
 comment: gnupload v. $scriptversion$stmt
 EOF
@@ -393,6 +401,12 @@ do
   do
     echo "Uploading $file to $dest ..."
     stmt=
+    #
+    # allowing file replacement is all or nothing.
+    if test -n "$replace"; then stmt="$stmt
+$replace"
+    fi
+    #
     files="$file $file.sig"
     destdir=`echo $dest | sed 's/[^:]*://'`
     if test -n "$symlink_expr"; then
diff --git a/configure.ac b/configure.ac
index 3e5ddd0..5a691e6 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],[2.14],[help-libtasn1@gnu.org])
+AC_INIT([GNU Libtasn1],[3.0],[help-libtasn1@gnu.org])
 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, 4)
-AC_SUBST(LT_REVISION, 17)
-AC_SUBST(LT_AGE, 1)
+AC_SUBST(LT_CURRENT, 5)
+AC_SUBST(LT_REVISION, 0)
+AC_SUBST(LT_AGE, 2)
 
 AC_PROG_CC
 gl_EARLY
diff --git a/gl/Makefile.am b/gl/Makefile.am
index 46e6f8f..a0e4802 100644
--- a/gl/Makefile.am
+++ b/gl/Makefile.am
@@ -21,7 +21,7 @@
 # the same distribution terms as the rest of that program.
 #
 # Generated by gnulib-tool.
-# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files autobuild fdl-1.3 gendocs getopt-gnu gnupload maintainer-makefile manywarnings pmccabe2html progname read-file stdint update-copyright valgrind-tests version-etc-fsf warnings
+# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files autobuild fdl-1.3 gendocs getopt-gnu gettime gnupload maintainer-makefile manywarnings pmccabe2html progname read-file stdint update-copyright valgrind-tests version-etc-fsf warnings
 
 AUTOMAKE_OPTIONS = 1.5 gnits
 
@@ -50,6 +50,7 @@ libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
 EXTRA_libgnu_la_SOURCES =
 libgnu_la_LDFLAGS = $(AM_LDFLAGS)
 libgnu_la_LDFLAGS += -no-undefined
+libgnu_la_LDFLAGS += $(LIB_CLOCK_GETTIME)
 libgnu_la_LDFLAGS += $(LTLIBINTL)
 
 ## begin gnulib module errno
@@ -153,11 +154,26 @@ libgnu_la_SOURCES += gettext.h
 
 ## end   gnulib module gettext-h
 
+## begin gnulib module gettime
+
+libgnu_la_SOURCES += gettime.c
+
+## end   gnulib module gettime
+
+## begin gnulib module gettimeofday
+
+
+EXTRA_DIST += gettimeofday.c
+
+EXTRA_libgnu_la_SOURCES += gettimeofday.c
+
+## end   gnulib module gettimeofday
+
 ## begin gnulib module gnumakefile
 
 distclean-local: clean-GNUmakefile
 clean-GNUmakefile:
-	test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
+	test '$(srcdir)' = . || rm -f $(top_builddir)/GNUmakefile
 
 EXTRA_DIST += $(top_srcdir)/GNUmakefile
 
@@ -721,6 +737,40 @@ EXTRA_DIST += sys_stat.in.h
 
 ## end   gnulib module sys_stat
 
+## begin gnulib module sys_time
+
+BUILT_SOURCES += sys/time.h
+
+# We need the following in order to create <sys/time.h> when the system
+# doesn't have one that works with the given compiler.
+sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+	$(AM_V_at)$(MKDIR_P) sys
+	$(AM_V_GEN)rm -f $@-t $@ && \
+	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
+	      -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
+	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+	      -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
+	      -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
+	      -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
+	      -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
+	      -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
+	      -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
+	      -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
+	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+	      < $(srcdir)/sys_time.in.h; \
+	} > $@-t && \
+	mv $@-t $@
+MOSTLYCLEANFILES += sys/time.h sys/time.h-t
+
+EXTRA_DIST += sys_time.in.h
+
+## end   gnulib module sys_time
+
 ## begin gnulib module sys_types
 
 BUILT_SOURCES += sys/types.h
@@ -788,6 +838,14 @@ EXTRA_DIST += time.in.h
 
 ## end   gnulib module time
 
+## begin gnulib module timespec
+
+libgnu_la_SOURCES += timespec.c
+
+EXTRA_DIST += timespec.h
+
+## end   gnulib module timespec
+
 ## begin gnulib module unistd
 
 BUILT_SOURCES += unistd.h
diff --git a/gl/errno.in.h b/gl/errno.in.h
index 2f42612..5e5af92 100644
--- a/gl/errno.in.h
+++ b/gl/errno.in.h
@@ -84,6 +84,16 @@
 #   define GNULIB_defined_ECANCELED 1
 #  endif
 
+#  ifndef EOWNERDEAD
+#   define EOWNERDEAD 133
+#   define GNULIB_defined_EOWNERDEAD 1
+#  endif
+
+#  ifndef ENOTRECOVERABLE
+#   define ENOTRECOVERABLE 127
+#   define GNULIB_defined_ENOTRECOVERABLE 1
+#  endif
+
 #  ifndef EINPROGRESS
 #   define EINPROGRESS     112
 #   define EALREADY        103
@@ -108,15 +118,17 @@
 #   define ELOOP           114
 #   define EHOSTUNREACH    110
 #   define EWOULDBLOCK     140
+#   define GNULIB_defined_ESOCK 1
+#  endif
+
+#  ifndef ETXTBSY
 #   define ETXTBSY         139
 #   define ENODATA         120  /* not required by POSIX */
 #   define ENOSR           124  /* not required by POSIX */
 #   define ENOSTR          125  /* not required by POSIX */
-#   define ENOTRECOVERABLE 127  /* not required by POSIX */
-#   define EOWNERDEAD      133  /* not required by POSIX */
 #   define ETIME           137  /* not required by POSIX */
 #   define EOTHER          131  /* not required by POSIX */
-#   define GNULIB_defined_ESOCK 1
+#   define GNULIB_defined_ESTREAMS 1
 #  endif
 
 /* These are intentionally the same values as the WSA* error numbers, defined
@@ -227,6 +239,36 @@
 #  define GNULIB_defined_ECANCELED 1
 # endif
 
+/* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
+   defined.  */
+
+# ifndef EOWNERDEAD
+#  if defined __sun
+    /* Use the same values as defined for Solaris >= 8, for
+       interoperability.  */
+#   define EOWNERDEAD      58
+#   define ENOTRECOVERABLE 59
+#  elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+    /* We have a conflict here: pthreads-win32 defines these values
+       differently than MSVC 10.  It's hairy to decide which one to use.  */
+#   if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
+     /* Use the same values as defined by pthreads-win32, for
+        interoperability.  */
+#    define EOWNERDEAD      43
+#    define ENOTRECOVERABLE 44
+#   else
+     /* Use the same values as defined by MSVC 10, for
+        interoperability.  */
+#    define EOWNERDEAD      133
+#    define ENOTRECOVERABLE 127
+#   endif
+#  else
+#   define EOWNERDEAD      2013
+#   define ENOTRECOVERABLE 2014
+#  endif
+#  define GNULIB_defined_EOWNERDEAD 1
+#  define GNULIB_defined_ENOTRECOVERABLE 1
+# endif
 
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
diff --git a/gl/fstat.c b/gl/fstat.c
index ac2b1ef..6d5f5c2 100644
--- a/gl/fstat.c
+++ b/gl/fstat.c
@@ -24,7 +24,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #if _GL_WINDOWS_64_BIT_ST_SIZE
+# undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
 # define stat _stati64
+# undef fstat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
 # define fstat _fstati64
 #endif
 #undef __need_system_sys_stat_h
diff --git a/gl/gettext.h b/gl/gettext.h
index 75875cd..65ca1e6 100644
--- a/gl/gettext.h
+++ b/gl/gettext.h
@@ -183,9 +183,12 @@ npgettext_aux (const char *domain,
 
 #include <string.h>
 
-#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
-  (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
-   /* || __STDC_VERSION__ >= 199901L */ )
+#if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
+     /* || __STDC_VERSION__ >= 199901L */ )
+# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1
+#else
+# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0
+#endif
 
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
 #include <stdlib.h>
diff --git a/gl/ftell.c b/gl/gettime.c
similarity index 54%
copy from gl/ftell.c
copy to gl/gettime.c
index 817e9ff..8075bfa 100644
--- a/gl/ftell.c
+++ b/gl/gettime.c
@@ -1,5 +1,6 @@
-/* An ftell() function that works around platform bugs.
-   Copyright (C) 2007-2012 Free Software Foundation, Inc.
+/* gettime -- get the system clock
+
+   Copyright (C) 2002, 2004-2007, 2009-2012 Free Software Foundation, Inc.
 
    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
@@ -14,24 +15,34 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+/* Written by Paul Eggert.  */
+
 #include <config.h>
 
-/* Specification.  */
-#include <stdio.h>
+#include "timespec.h"
+
+#include <sys/time.h>
 
-#include <errno.h>
-#include <limits.h>
+/* Get the system time into *TS.  */
 
-long
-ftell (FILE *fp)
+void
+gettime (struct timespec *ts)
 {
-  /* Use the replacement ftello function with all its workarounds.  */
-  off_t offset = ftello (fp);
-  if (LONG_MIN <= offset && offset <= LONG_MAX)
-    return /* (long) */ offset;
-  else
-    {
-      errno = EOVERFLOW;
-      return -1;
-    }
+#if HAVE_NANOTIME
+  nanotime (ts);
+#else
+
+# if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME
+  if (clock_gettime (CLOCK_REALTIME, ts) == 0)
+    return;
+# endif
+
+  {
+    struct timeval tv;
+    gettimeofday (&tv, NULL);
+    ts->tv_sec = tv.tv_sec;
+    ts->tv_nsec = tv.tv_usec * 1000;
+  }
+
+#endif
 }
diff --git a/gl/gettimeofday.c b/gl/gettimeofday.c
new file mode 100644
index 0000000..5d35060
--- /dev/null
+++ b/gl/gettimeofday.c
@@ -0,0 +1,154 @@
+/* Provide gettimeofday for systems that don't have it or for which it's broken.
+
+   Copyright (C) 2001-2003, 2005-2007, 2009-2012 Free Software Foundation, Inc.
+
+   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, 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/>.  */
+
+/* written by Jim Meyering */
+
+#include <config.h>
+
+/* Specification.  */
+#include <sys/time.h>
+
+#include <time.h>
+
+#if HAVE_SYS_TIMEB_H
+# include <sys/timeb.h>
+#endif
+
+#if GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME
+
+/* Work around the bug in some systems whereby gettimeofday clobbers
+   the static buffer that localtime uses for its return value.  The
+   gettimeofday function from Mac OS X 10.0.4 (i.e., Darwin 1.3.7) has
+   this problem.  The tzset replacement is necessary for at least
+   Solaris 2.5, 2.5.1, and 2.6.  */
+
+static struct tm tm_zero_buffer;
+static struct tm *localtime_buffer_addr = &tm_zero_buffer;
+
+# undef localtime
+extern struct tm *localtime (time_t const *);
+
+# undef gmtime
+extern struct tm *gmtime (time_t const *);
+
+/* This is a wrapper for localtime.  It is used only on systems for which
+   gettimeofday clobbers the static buffer used for localtime's result.
+
+   On the first call, record the address of the static buffer that
+   localtime uses for its result.  */
+
+struct tm *
+rpl_localtime (time_t const *timep)
+{
+  struct tm *tm = localtime (timep);
+
+  if (localtime_buffer_addr == &tm_zero_buffer)
+    localtime_buffer_addr = tm;
+
+  return tm;
+}
+
+/* Same as above, since gmtime and localtime use the same buffer.  */
+struct tm *
+rpl_gmtime (time_t const *timep)
+{
+  struct tm *tm = gmtime (timep);
+
+  if (localtime_buffer_addr == &tm_zero_buffer)
+    localtime_buffer_addr = tm;
+
+  return tm;
+}
+
+#endif /* GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME */
+
+#if TZSET_CLOBBERS_LOCALTIME
+
+# undef tzset
+extern void tzset (void);
+
+/* This is a wrapper for tzset, for systems on which tzset may clobber
+   the static buffer used for localtime's result.  */
+void
+rpl_tzset (void)
+{
+  /* Save and restore the contents of the buffer used for localtime's
+     result around the call to tzset.  */
+  struct tm save = *localtime_buffer_addr;
+  tzset ();
+  *localtime_buffer_addr = save;
+}
+#endif
+
+/* This is a wrapper for gettimeofday.  It is used only on systems
+   that lack this function, or whose implementation of this function
+   causes problems.  */
+
+int
+gettimeofday (struct timeval *restrict tv, void *restrict tz)
+{
+#undef gettimeofday
+#if HAVE_GETTIMEOFDAY
+# if GETTIMEOFDAY_CLOBBERS_LOCALTIME
+  /* Save and restore the contents of the buffer used for localtime's
+     result around the call to gettimeofday.  */
+  struct tm save = *localtime_buffer_addr;
+# endif
+
+# if defined timeval /* 'struct timeval' overridden by gnulib?  */
+#  undef timeval
+  struct timeval otv;
+  int result = gettimeofday (&otv, (struct timezone *) tz);
+  if (result == 0)
+    {
+      tv->tv_sec = otv.tv_sec;
+      tv->tv_usec = otv.tv_usec;
+    }
+# else
+  int result = gettimeofday (tv, (struct timezone *) tz);
+# endif
+
+# if GETTIMEOFDAY_CLOBBERS_LOCALTIME
+  *localtime_buffer_addr = save;
+# endif
+
+  return result;
+
+#else
+
+# if HAVE__FTIME
+
+  struct _timeb timebuf;
+  _ftime (&timebuf);
+  tv->tv_sec = timebuf.time;
+  tv->tv_usec = timebuf.millitm * 1000;
+
+# else
+
+#  if !defined OK_TO_USE_1S_CLOCK
+#   error "Only 1-second nominal clock resolution found.  Is that intended?" \
+          "If so, compile with the -DOK_TO_USE_1S_CLOCK option."
+#  endif
+  tv->tv_sec = time (NULL);
+  tv->tv_usec = 0;
+
+# endif
+
+  return 0;
+
+#endif
+}
diff --git a/gl/m4/clock_time.m4 b/gl/m4/clock_time.m4
new file mode 100644
index 0000000..0bec0ef
--- /dev/null
+++ b/gl/m4/clock_time.m4
@@ -0,0 +1,31 @@
+# clock_time.m4 serial 10
+dnl Copyright (C) 2002-2006, 2009-2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Check for clock_gettime and clock_settime, and set LIB_CLOCK_GETTIME.
+# For a program named, say foo, you should add a line like the following
+# in the corresponding Makefile.am file:
+# foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+
+AC_DEFUN([gl_CLOCK_TIME],
+[
+  dnl Persuade glibc and Solaris <time.h> to declare these functions.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
+  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
+  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
+
+  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
+  # programs in the package would end up linked with that potentially-shared
+  # library, inducing unnecessary run-time overhead.
+  LIB_CLOCK_GETTIME=
+  AC_SUBST([LIB_CLOCK_GETTIME])
+  gl_saved_libs=$LIBS
+    AC_SEARCH_LIBS([clock_gettime], [rt posix4],
+                   [test "$ac_cv_search_clock_gettime" = "none required" ||
+                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
+    AC_CHECK_FUNCS([clock_gettime clock_settime])
+  LIBS=$gl_saved_libs
+])
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4
index 4f0bb83..1e76ba2 100644
--- a/gl/m4/errno_h.m4
+++ b/gl/m4/errno_h.m4
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 10
+# errno_h.m4 serial 11
 dnl Copyright (C) 2004, 2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,6 +10,9 @@ AC_DEFUN_ONCE([gl_HEADER_ERRNO_H],
   AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [
     AC_EGREP_CPP([booboo],[
 #include <errno.h>
+#if !defined ETXTBSY
+booboo
+#endif
 #if !defined ENOMSG
 booboo
 #endif
@@ -49,6 +52,12 @@ booboo
 #if !defined ECANCELED
 booboo
 #endif
+#if !defined EOWNERDEAD
+booboo
+#endif
+#if !defined ENOTRECOVERABLE
+booboo
+#endif
       ],
       [gl_cv_header_errno_h_complete=no],
       [gl_cv_header_errno_h_complete=yes])
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 0bfaef6..6d17d8a 100644
--- a/gl/m4/extensions.m4
+++ b/gl/m4/extensions.m4
@@ -1,4 +1,4 @@
-# serial 11  -*- Autoconf -*-
+# serial 12  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc.
@@ -67,7 +67,7 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
-/* Enable general extensions on MacOS X.  */
+/* Enable general extensions on Mac OS X.  */
 #ifndef _DARWIN_C_SOURCE
 # undef _DARWIN_C_SOURCE
 #endif
diff --git a/gl/m4/extern-inline.m4 b/gl/m4/extern-inline.m4
new file mode 100644
index 0000000..12f24fa
--- /dev/null
+++ b/gl/m4/extern-inline.m4
@@ -0,0 +1,55 @@
+dnl 'extern inline' a la ISO C99.
+
+dnl Copyright 2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_EXTERN_INLINE],
+[
+  AC_REQUIRE([AC_C_INLINE])
+  AH_VERBATIM([extern_inline],
+[/* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'.
+   _GL_EXTERN_INLINE is a portable alternative to 'extern inline'.
+   _GL_INLINE_HEADER_BEGIN contains useful stuff to put
+     in an include file, before uses of _GL_INLINE.
+     It suppresses GCC's bogus "no previous prototype for 'FOO'" diagnostic,
+     when FOO is an inline function in the header; see
+     <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>.
+   _GL_INLINE_HEADER_END contains useful stuff to put
+     in the same include file, after uses of _GL_INLINE.  */
+#if __GNUC__ ? __GNUC_STDC_INLINE__ : 199901L <= __STDC_VERSION__
+# define _GL_INLINE inline
+# define _GL_EXTERN_INLINE extern inline
+#elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
+# if __GNUC_GNU_INLINE__
+   /* __gnu_inline__ suppresses a GCC 4.2 diagnostic.  */
+#  define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
+# else
+#  define _GL_INLINE extern inline
+# endif
+# define _GL_EXTERN_INLINE extern
+#else
+# define _GL_INLINE static inline
+# define _GL_EXTERN_INLINE static inline
+#endif
+
+#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
+# if __GNUC_STDC_INLINE__
+#  define _GL_INLINE_HEADER_CONST_PRAGMA
+# else
+#  define _GL_INLINE_HEADER_CONST_PRAGMA \
+     _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
+# endif
+# define _GL_INLINE_HEADER_BEGIN \
+    _Pragma ("GCC diagnostic push") \
+    _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
+    _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
+    _GL_INLINE_HEADER_CONST_PRAGMA
+# define _GL_INLINE_HEADER_END \
+    _Pragma ("GCC diagnostic pop")
+#else
+# define _GL_INLINE_HEADER_BEGIN
+# define _GL_INLINE_HEADER_END
+#endif])
+])
diff --git a/gl/m4/getopt.m4 b/gl/m4/getopt.m4
index 2aea895..f6902b5 100644
--- a/gl/m4/getopt.m4
+++ b/gl/m4/getopt.m4
@@ -1,4 +1,4 @@
-# getopt.m4 serial 39
+# getopt.m4 serial 44
 dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,18 +9,17 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
 [
   m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX])
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+  AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
   dnl Other modules can request the gnulib implementation of the getopt
   dnl functions unconditionally, by defining gl_REPLACE_GETOPT_ALWAYS.
   dnl argp.m4 does this.
   m4_ifdef([gl_REPLACE_GETOPT_ALWAYS], [
-    gl_GETOPT_IFELSE([], [])
     REPLACE_GETOPT=1
   ], [
     REPLACE_GETOPT=0
-    gl_GETOPT_IFELSE([
+    if test -n "$gl_replace_getopt"; then
       REPLACE_GETOPT=1
-    ],
-    [])
+    fi
   ])
   if test $REPLACE_GETOPT = 1; then
     dnl Arrange for getopt.h to be created.
@@ -38,13 +37,6 @@ AC_DEFUN([gl_FUNC_GETOPT_GNU],
   AC_REQUIRE([gl_FUNC_GETOPT_POSIX])
 ])
 
-# emacs' configure.in uses this.
-AC_DEFUN([gl_GETOPT_IFELSE],
-[
-  AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
-  AS_IF([test -n "$gl_replace_getopt"], [$1], [$2])
-])
-
 # Determine whether to replace the entire getopt facility.
 AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
 [
@@ -74,11 +66,6 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
     AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes])
   fi
 
-  dnl mingw's getopt (in libmingwex.a) does weird things when the options
-  dnl strings starts with '+' and it's not the first call.  Some internal state
-  dnl is left over from earlier calls, and neither setting optind = 0 nor
-  dnl setting optreset = 1 get rid of this internal state.
-  dnl POSIX is silent on optind vs. optreset, so we allow either behavior.
   dnl POSIX 2008 does not specify leading '+' behavior, but see
   dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on
   dnl the next version of POSIX.  For now, we only guarantee leading '+'
@@ -87,30 +74,16 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
     AC_CACHE_CHECK([whether getopt is POSIX compatible],
       [gl_cv_func_getopt_posix],
       [
-        dnl BSD getopt_long uses an incompatible method to reset option
-        dnl processing.  Existence of the optreset variable, in and of
-        dnl itself, is not a reason to replace getopt, but knowledge
-        dnl of the variable is needed to determine how to reset and
-        dnl whether a reset reparses the environment.  Solaris
-        dnl supports neither optreset nor optind=0, but keeps no state
-        dnl that needs a reset beyond setting optind=1; detect Solaris
-        dnl by getopt_clip.
-        AC_LINK_IFELSE(
-          [AC_LANG_PROGRAM(
-             [[#include <unistd.h>]],
-             [[int *p = &optreset; return optreset;]])],
-          [gl_optind_min=1],
-          [AC_COMPILE_IFELSE(
-             [AC_LANG_PROGRAM(
-                [[#include <getopt.h>]],
-                [[return !getopt_clip;]])],
-             [gl_optind_min=1],
-             [gl_optind_min=0])])
-
-        dnl This test fails on mingw and succeeds on many other platforms.
-        gl_save_CPPFLAGS=$CPPFLAGS
-        CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
-        AC_RUN_IFELSE([AC_LANG_SOURCE([[
+        dnl Merging these three different test programs into a single one
+        dnl would require a reset mechanism. On BSD systems, it can be done
+        dnl through 'optreset'; on some others (glibc), it can be done by
+        dnl setting 'optind' to 0; on others again (HP-UX, IRIX, OSF/1,
+        dnl Solaris 9, musl libc), there is no such mechanism.
+        if test $cross_compiling = no; then
+          dnl Sanity check. Succeeds everywhere (except on MSVC,
+          dnl which lacks <unistd.h> and getopt() entirely).
+          AC_RUN_IFELSE(
+            [AC_LANG_SOURCE([[
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
@@ -118,89 +91,107 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
 int
 main ()
 {
-  {
-    static char program[] = "program";
-    static char a[] = "-a";
-    static char foo[] = "foo";
-    static char bar[] = "bar";
-    char *argv[] = { program, a, foo, bar, NULL };
-    int c;
+  static char program[] = "program";
+  static char a[] = "-a";
+  static char foo[] = "foo";
+  static char bar[] = "bar";
+  char *argv[] = { program, a, foo, bar, NULL };
+  int c;
 
-    optind = OPTIND_MIN;
-    opterr = 0;
-
-    c = getopt (4, argv, "ab");
-    if (!(c == 'a'))
-      return 1;
-    c = getopt (4, argv, "ab");
-    if (!(c == -1))
-      return 2;
-    if (!(optind == 2))
-      return 3;
-  }
-  /* Some internal state exists at this point.  */
-  {
-    static char program[] = "program";
-    static char donald[] = "donald";
-    static char p[] = "-p";
-    static char billy[] = "billy";
-    static char duck[] = "duck";
-    static char a[] = "-a";
-    static char bar[] = "bar";
-    char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
-    int c;
+  c = getopt (4, argv, "ab");
+  if (!(c == 'a'))
+    return 1;
+  c = getopt (4, argv, "ab");
+  if (!(c == -1))
+    return 2;
+  if (!(optind == 2))
+    return 3;
+  return 0;
+}
+]])],
+            [gl_cv_func_getopt_posix=maybe],
+            [gl_cv_func_getopt_posix=no])
+          if test $gl_cv_func_getopt_posix = maybe; then
+            dnl Sanity check with '+'. Succeeds everywhere (except on MSVC,
+            dnl which lacks <unistd.h> and getopt() entirely).
+            AC_RUN_IFELSE(
+              [AC_LANG_SOURCE([[
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 
-    optind = OPTIND_MIN;
-    opterr = 0;
+int
+main ()
+{
+  static char program[] = "program";
+  static char donald[] = "donald";
+  static char p[] = "-p";
+  static char billy[] = "billy";
+  static char duck[] = "duck";
+  static char a[] = "-a";
+  static char bar[] = "bar";
+  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
+  int c;
 
-    c = getopt (7, argv, "+abp:q:");
-    if (!(c == -1))
-      return 4;
-    if (!(strcmp (argv[0], "program") == 0))
-      return 5;
-    if (!(strcmp (argv[1], "donald") == 0))
-      return 6;
-    if (!(strcmp (argv[2], "-p") == 0))
-      return 7;
-    if (!(strcmp (argv[3], "billy") == 0))
-      return 8;
-    if (!(strcmp (argv[4], "duck") == 0))
-      return 9;
-    if (!(strcmp (argv[5], "-a") == 0))
-      return 10;
-    if (!(strcmp (argv[6], "bar") == 0))
-      return 11;
-    if (!(optind == 1))
-      return 12;
-  }
-  /* Detect MacOS 10.5, AIX 7.1 bug.  */
-  {
-    static char program[] = "program";
-    static char ab[] = "-ab";
-    char *argv[3] = { program, ab, NULL };
-    optind = OPTIND_MIN;
-    opterr = 0;
-    if (getopt (2, argv, "ab:") != 'a')
-      return 13;
-    if (getopt (2, argv, "ab:") != '?')
-      return 14;
-    if (optopt != 'b')
-      return 15;
-    if (optind != 2)
-      return 16;
-  }
+  c = getopt (7, argv, "+abp:q:");
+  if (!(c == -1))
+    return 4;
+  if (!(strcmp (argv[0], "program") == 0))
+    return 5;
+  if (!(strcmp (argv[1], "donald") == 0))
+    return 6;
+  if (!(strcmp (argv[2], "-p") == 0))
+    return 7;
+  if (!(strcmp (argv[3], "billy") == 0))
+    return 8;
+  if (!(strcmp (argv[4], "duck") == 0))
+    return 9;
+  if (!(strcmp (argv[5], "-a") == 0))
+    return 10;
+  if (!(strcmp (argv[6], "bar") == 0))
+    return 11;
+  if (!(optind == 1))
+    return 12;
+  return 0;
+}
+]])],
+              [gl_cv_func_getopt_posix=maybe],
+              [gl_cv_func_getopt_posix=no])
+          fi
+          if test $gl_cv_func_getopt_posix = maybe; then
+            dnl Detect Mac OS X 10.5, AIX 7.1, mingw bug.
+            AC_RUN_IFELSE(
+              [AC_LANG_SOURCE([[
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 
+int
+main ()
+{
+  static char program[] = "program";
+  static char ab[] = "-ab";
+  char *argv[3] = { program, ab, NULL };
+  if (getopt (2, argv, "ab:") != 'a')
+    return 13;
+  if (getopt (2, argv, "ab:") != '?')
+    return 14;
+  if (optopt != 'b')
+    return 15;
+  if (optind != 2)
+    return 16;
   return 0;
 }
 ]])],
-          [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no],
-          [case "$host_os" in
-             mingw*)         gl_cv_func_getopt_posix="guessing no";;
-             darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
-             *)              gl_cv_func_getopt_posix="guessing yes";;
-           esac
-          ])
-        CPPFLAGS=$gl_save_CPPFLAGS
+              [gl_cv_func_getopt_posix=yes],
+              [gl_cv_func_getopt_posix=no])
+          fi
+        else
+          case "$host_os" in
+            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
+            *)                       gl_cv_func_getopt_posix="guessing yes";;
+          esac
+        fi
       ])
     case "$gl_cv_func_getopt_posix" in
       *no) gl_replace_getopt=yes ;;
@@ -236,7 +227,7 @@ dnl is ambiguous with environment values that contain newlines.
              nocrash_init();
 
              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
-                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
+                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
                 OSF/1 5.1, Solaris 10.  */
              {
                static char conftest[] = "conftest";
@@ -247,7 +238,7 @@ dnl is ambiguous with environment values that contain newlines.
                  result |= 1;
              }
              /* This code succeeds on glibc 2.8, mingw,
-                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
+                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
              {
                static char program[] = "program";
@@ -276,7 +267,7 @@ dnl is ambiguous with environment values that contain newlines.
                if (getopt (3, argv, "-p") != 1)
                  result |= 16;
                else if (getopt (3, argv, "-p") != 'p')
-                 result |= 32;
+                 result |= 16;
              }
              /* This code fails on glibc 2.11.  */
              {
@@ -286,9 +277,9 @@ dnl is ambiguous with environment values that contain newlines.
                char *argv[] = { program, b, a, NULL };
                optind = opterr = 0;
                if (getopt (3, argv, "+:a:b") != 'b')
-                 result |= 64;
+                 result |= 32;
                else if (getopt (3, argv, "+:a:b") != ':')
-                 result |= 64;
+                 result |= 32;
              }
              /* This code dumps core on glibc 2.14.  */
              {
@@ -298,18 +289,14 @@ dnl is ambiguous with environment values that contain newlines.
                char *argv[] = { program, w, dummy, NULL };
                optind = opterr = 1;
                if (getopt (3, argv, "W;") != 'W')
-                 result |= 128;
+                 result |= 64;
              }
              return result;
            ]])],
         [gl_cv_func_getopt_gnu=yes],
         [gl_cv_func_getopt_gnu=no],
-        [dnl Cross compiling. Guess based on host and declarations.
-         case $host_os:$ac_cv_have_decl_optreset in
-           *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
-           *:yes)               gl_cv_func_getopt_gnu=no;;
-           *)                   gl_cv_func_getopt_gnu=yes;;
-         esac
+        [dnl Cross compiling. Assume the worst, even on glibc platforms.
+         gl_cv_func_getopt_gnu="guessing no"
         ])
        case $gl_had_POSIXLY_CORRECT in
          exported) ;;
@@ -317,13 +304,54 @@ dnl is ambiguous with environment values that contain newlines.
          *) AS_UNSET([POSIXLY_CORRECT]) ;;
        esac
       ])
-    if test "$gl_cv_func_getopt_gnu" = "no"; then
+    if test "$gl_cv_func_getopt_gnu" != yes; then
       gl_replace_getopt=yes
+    else
+      AC_CACHE_CHECK([for working GNU getopt_long function],
+        [gl_cv_func_getopt_long_gnu],
+        [AC_RUN_IFELSE(
+           [AC_LANG_PROGRAM(
+              [[#include <getopt.h>
+                #include <stddef.h>
+                #include <string.h>
+              ]],
+              [[static const struct option long_options[] =
+                  {
+                    { "xtremely-",no_argument,       NULL, 1003 },
+                    { "xtra",     no_argument,       NULL, 1001 },
+                    { "xtreme",   no_argument,       NULL, 1002 },
+                    { "xtremely", no_argument,       NULL, 1003 },
+                    { NULL,       0,                 NULL, 0 }
+                  };
+                /* This code fails on OpenBSD 5.0.  */
+                {
+                  static char program[] = "program";
+                  static char xtremel[] = "--xtremel";
+                  char *argv[] = { program, xtremel, NULL };
+                  int option_index;
+                  optind = 1; opterr = 0;
+                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
+                    return 1;
+                }
+                return 0;
+              ]])],
+           [gl_cv_func_getopt_long_gnu=yes],
+           [gl_cv_func_getopt_long_gnu=no],
+           [dnl Cross compiling. Guess no on OpenBSD, yes otherwise.
+            case "$host_os" in
+              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
+              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
+            esac
+           ])
+        ])
+      case "$gl_cv_func_getopt_long_gnu" in
+        *yes) ;;
+        *) gl_replace_getopt=yes ;;
+      esac
     fi
   fi
 ])
 
-# emacs' configure.in uses this.
 AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
 [
   GETOPT_H=getopt.h
@@ -334,7 +362,6 @@ AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
 ])
 
 # Prerequisites of lib/getopt*.
-# emacs' configure.in uses this.
 AC_DEFUN([gl_PREREQ_GETOPT],
 [
   AC_CHECK_DECLS_ONCE([getenv])
diff --git a/gl/m4/gettime.m4 b/gl/m4/gettime.m4
new file mode 100644
index 0000000..7d03d12
--- /dev/null
+++ b/gl/m4/gettime.m4
@@ -0,0 +1,13 @@
+# gettime.m4 serial 8
+dnl Copyright (C) 2002, 2004-2006, 2009-2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_GETTIME],
+[
+  dnl Prerequisites of lib/gettime.c.
+  AC_REQUIRE([gl_CLOCK_TIME])
+  AC_REQUIRE([gl_TIMESPEC])
+  AC_CHECK_FUNCS_ONCE([gettimeofday nanotime])
+])
diff --git a/gl/m4/gettimeofday.m4 b/gl/m4/gettimeofday.m4
new file mode 100644
index 0000000..eda9702
--- /dev/null
+++ b/gl/m4/gettimeofday.m4
@@ -0,0 +1,140 @@
+# serial 20
+
+# Copyright (C) 2001-2003, 2005, 2007, 2009-2012 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+dnl From Jim Meyering.
+
+AC_DEFUN([gl_FUNC_GETTIMEOFDAY],
+[
+  AC_REQUIRE([AC_C_RESTRICT])
+  AC_REQUIRE([gl_HEADER_SYS_TIME_H])
+  AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
+  AC_CHECK_FUNCS_ONCE([gettimeofday])
+
+  gl_gettimeofday_timezone=void
+  if test $ac_cv_func_gettimeofday != yes; then
+    HAVE_GETTIMEOFDAY=0
+  else
+    gl_FUNC_GETTIMEOFDAY_CLOBBER
+    AC_CACHE_CHECK([for gettimeofday with POSIX signature],
+      [gl_cv_func_gettimeofday_posix_signature],
+      [AC_COMPILE_IFELSE(
+         [AC_LANG_PROGRAM(
+            [[#include <sys/time.h>
+              struct timeval c;
+              int gettimeofday (struct timeval *restrict, void *restrict);
+            ]],
+            [[/* glibc uses struct timezone * rather than the POSIX void *
+                 if _GNU_SOURCE is defined.  However, since the only portable
+                 use of gettimeofday uses NULL as the second parameter, and
+                 since the glibc definition is actually more typesafe, it is
+                 not worth wrapping this to get a compliant signature.  */
+              int (*f) (struct timeval *restrict, void *restrict)
+                = gettimeofday;
+              int x = f (&c, 0);
+              return !(x | c.tv_sec | c.tv_usec);
+            ]])],
+          [gl_cv_func_gettimeofday_posix_signature=yes],
+          [AC_COMPILE_IFELSE(
+            [AC_LANG_PROGRAM(
+              [[#include <sys/time.h>
+int gettimeofday (struct timeval *restrict, struct timezone *restrict);
+              ]])],
+            [gl_cv_func_gettimeofday_posix_signature=almost],
+            [gl_cv_func_gettimeofday_posix_signature=no])])])
+    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
+      gl_gettimeofday_timezone='struct timezone'
+    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
+      REPLACE_GETTIMEOFDAY=1
+    fi
+    dnl If we override 'struct timeval', we also have to override gettimeofday.
+    if test $REPLACE_STRUCT_TIMEVAL = 1; then
+      REPLACE_GETTIMEOFDAY=1
+    fi
+    m4_ifdef([gl_FUNC_TZSET_CLOBBER], [
+      gl_FUNC_TZSET_CLOBBER
+      case "$gl_cv_func_tzset_clobber" in
+        *yes)
+          REPLACE_GETTIMEOFDAY=1
+          gl_GETTIMEOFDAY_REPLACE_LOCALTIME
+          AC_DEFINE([tzset], [rpl_tzset],
+            [Define to rpl_tzset if the wrapper function should be used.])
+          AC_DEFINE([TZSET_CLOBBERS_LOCALTIME], [1],
+            [Define if tzset clobbers localtime's static buffer.])
+          ;;
+      esac
+    ])
+  fi
+  AC_DEFINE_UNQUOTED([GETTIMEOFDAY_TIMEZONE], [$gl_gettimeofday_timezone],
+    [Define this to 'void' or 'struct timezone' to match the system's
+     declaration of the second argument to gettimeofday.])
+])
+
+
+dnl See if gettimeofday clobbers the static buffer that localtime uses
+dnl for its return value.  The gettimeofday function from Mac OS X 10.0.4
+dnl (i.e., Darwin 1.3.7) has this problem.
+dnl
+dnl If it does, then arrange to use gettimeofday and localtime only via
+dnl the wrapper functions that work around the problem.
+
+AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
+[
+ AC_REQUIRE([gl_HEADER_SYS_TIME_H])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
+
+ AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer],
+  [gl_cv_func_gettimeofday_clobber],
+  [AC_RUN_IFELSE(
+     [AC_LANG_PROGRAM(
+        [[#include <string.h>
+          #include <sys/time.h>
+          #include <time.h>
+          #include <stdlib.h>
+        ]],
+        [[
+          time_t t = 0;
+          struct tm *lt;
+          struct tm saved_lt;
+          struct timeval tv;
+          lt = localtime (&t);
+          saved_lt = *lt;
+          gettimeofday (&tv, NULL);
+          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
+        ]])],
+     [gl_cv_func_gettimeofday_clobber=no],
+     [gl_cv_func_gettimeofday_clobber=yes],
+     [# When cross-compiling:
+      case "$host_os" in
+                # Guess all is fine on glibc systems.
+        *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+                # If we don't know, assume the worst.
+        *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
+      esac
+     ])])
+
+ case "$gl_cv_func_gettimeofday_clobber" in
+   *yes)
+     REPLACE_GETTIMEOFDAY=1
+     gl_GETTIMEOFDAY_REPLACE_LOCALTIME
+     AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], [1],
+       [Define if gettimeofday clobbers the localtime buffer.])
+     ;;
+ esac
+])
+
+AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [
+  AC_DEFINE([gmtime], [rpl_gmtime],
+    [Define to rpl_gmtime if the replacement function should be used.])
+  AC_DEFINE([localtime], [rpl_localtime],
+    [Define to rpl_localtime if the replacement function should be used.])
+])
+
+# Prerequisites of lib/gettimeofday.c.
+AC_DEFUN([gl_PREREQ_GETTIMEOFDAY], [
+  AC_CHECK_HEADERS([sys/timeb.h])
+  AC_CHECK_FUNCS([_ftime])
+])
diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4
index f9a6d3e..6bea3f6 100644
--- a/gl/m4/gnulib-cache.m4
+++ b/gl/m4/gnulib-cache.m4
@@ -27,7 +27,7 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files autobuild fdl-1.3 gendocs getopt-gnu gnupload maintainer-makefile manywarnings pmccabe2html progname read-file stdint update-copyright valgrind-tests version-etc-fsf warnings
+#   gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files autobuild fdl-1.3 gendocs getopt-gnu gettime gnupload maintainer-makefile manywarnings pmccabe2html progname read-file stdint update-copyright valgrind-tests version-etc-fsf warnings
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([gl/override])
@@ -36,6 +36,7 @@ gl_MODULES([
   fdl-1.3
   gendocs
   getopt-gnu
+  gettime
   gnupload
   maintainer-makefile
   manywarnings
@@ -59,5 +60,5 @@ gl_MAKEFILE_NAME([])
 gl_LIBTOOL
 gl_MACRO_PREFIX([gl])
 gl_PO_DOMAIN([])
-gl_WITNESS_C_DOMAIN([])
+gl_WITNESS_C_MACRO([])
 gl_VC_FILES([false])
diff --git a/gl/m4/gnulib-common.m4 b/gl/m4/gnulib-common.m4
index d62b767..15d2b2b 100644
--- a/gl/m4/gnulib-common.m4
+++ b/gl/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 32
+# gnulib-common.m4 serial 33
 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -30,7 +30,7 @@ AC_DEFUN([gl_COMMON_BODY], [
 [/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
    the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
    earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
-   __APPLE__ && __MACH__ test for MacOS X.
+   __APPLE__ && __MACH__ test for Mac OS X.
    __APPLE_CC__ tests for the Apple compiler and its version.
    __STDC_VERSION__ tests for the C99 mode.  */
 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 1b4254e..afaabe3 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -40,9 +40,11 @@ AC_DEFUN([gl_EARLY],
   AC_REQUIRE([gl_PROG_AR_RANLIB])
   # Code from module autobuild:
   AB_INIT
+  # Code from module clock-time:
   # Code from module errno:
   # Code from module extensions:
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+  # Code from module extern-inline:
   # Code from module fdl-1.3:
   # Code from module fstat:
   # Code from module ftell:
@@ -52,6 +54,8 @@ AC_DEFUN([gl_EARLY],
   # Code from module getopt-gnu:
   # Code from module getopt-posix:
   # Code from module gettext-h:
+  # Code from module gettime:
+  # Code from module gettimeofday:
   # Code from module gnumakefile:
   # Code from module gnupload:
   # Code from module include_next:
@@ -85,8 +89,10 @@ AC_DEFUN([gl_EARLY],
   # Code from module stdio:
   # Code from module stdlib:
   # Code from module sys_stat:
+  # Code from module sys_time:
   # Code from module sys_types:
   # Code from module time:
+  # Code from module timespec:
   # Code from module unistd:
   # Code from module update-copyright:
   # Code from module useless-if-before-free:
@@ -111,100 +117,112 @@ AC_DEFUN([gl_INIT],
   m4_pushdef([gl_LIBSOURCES_DIR], [])
   gl_COMMON
   gl_source_base='gl'
-gl_HEADER_ERRNO_H
-gl_FUNC_FSTAT
-if test $REPLACE_FSTAT = 1; then
-  AC_LIBOBJ([fstat])
-  gl_PREREQ_FSTAT
-fi
-gl_SYS_STAT_MODULE_INDICATOR([fstat])
-gl_FUNC_FTELL
-if test $REPLACE_FTELL = 1; then
-  AC_LIBOBJ([ftell])
-fi
-gl_STDIO_MODULE_INDICATOR([ftell])
-gl_FUNC_FTELLO
-if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
-  AC_LIBOBJ([ftello])
-  gl_PREREQ_FTELLO
-fi
-gl_STDIO_MODULE_INDICATOR([ftello])
-gl_FUNC_GETOPT_GNU
-if test $REPLACE_GETOPT = 1; then
-  AC_LIBOBJ([getopt])
-  AC_LIBOBJ([getopt1])
-  gl_PREREQ_GETOPT
-  dnl Arrange for unistd.h to include getopt.h.
-  GNULIB_GL_UNISTD_H_GETOPT=1
-fi
-AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
-gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
-gl_FUNC_GETOPT_POSIX
-if test $REPLACE_GETOPT = 1; then
-  AC_LIBOBJ([getopt])
-  AC_LIBOBJ([getopt1])
-  gl_PREREQ_GETOPT
-  dnl Arrange for unistd.h to include getopt.h.
-  GNULIB_GL_UNISTD_H_GETOPT=1
-fi
-AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
-AC_SUBST([LIBINTL])
-AC_SUBST([LTLIBINTL])
-# Autoconf 2.61a.99 and earlier don't support linking a file only
-# in VPATH builds.  But since GNUmakefile is for maintainer use
-# only, it does not matter if we skip the link with older autoconf.
-# Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
-# builds, so use a shell variable to bypass this.
-GNUmakefile=GNUmakefile
-m4_if(m4_version_compare([2.61a.100],
-        m4_defn([m4_PACKAGE_VERSION])), [1], [],
-      [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
-        [GNUmakefile=$GNUmakefile])])
-AC_REQUIRE([gl_LARGEFILE])
-gl_FUNC_LSEEK
-if test $REPLACE_LSEEK = 1; then
-  AC_LIBOBJ([lseek])
-fi
-gl_UNISTD_MODULE_INDICATOR([lseek])
-AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
-  [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
-gl_FUNC_MALLOC_POSIX
-if test $REPLACE_MALLOC = 1; then
-  AC_LIBOBJ([malloc])
-fi
-gl_STDLIB_MODULE_INDICATOR([malloc-posix])
-gl_MSVC_INVAL
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
-  AC_LIBOBJ([msvc-inval])
-fi
-gl_MSVC_NOTHROW
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
-  AC_LIBOBJ([msvc-nothrow])
-fi
-gl_MULTIARCH
-AC_PATH_PROG([PMCCABE], [pmccabe], [false])
-AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
-AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
-gl_PREREQ_READ_FILE
-gl_FUNC_REALLOC_POSIX
-if test $REPLACE_REALLOC = 1; then
-  AC_LIBOBJ([realloc])
-fi
-gl_STDLIB_MODULE_INDICATOR([realloc-posix])
-gt_TYPE_SSIZE_T
-gl_STDARG_H
-gl_STDDEF_H
-gl_STDINT_H
-gl_STDIO_H
-gl_STDLIB_H
-gl_HEADER_SYS_STAT_H
-AC_PROG_MKDIR_P
-gl_SYS_TYPES_H
-AC_PROG_MKDIR_P
-gl_HEADER_TIME_H
-gl_UNISTD_H
-gl_VALGRIND_TESTS
-gl_VERSION_ETC
+  gl_CLOCK_TIME
+  gl_HEADER_ERRNO_H
+  AC_REQUIRE([gl_EXTERN_INLINE])
+  gl_FUNC_FSTAT
+  if test $REPLACE_FSTAT = 1; then
+    AC_LIBOBJ([fstat])
+    gl_PREREQ_FSTAT
+  fi
+  gl_SYS_STAT_MODULE_INDICATOR([fstat])
+  gl_FUNC_FTELL
+  if test $REPLACE_FTELL = 1; then
+    AC_LIBOBJ([ftell])
+  fi
+  gl_STDIO_MODULE_INDICATOR([ftell])
+  gl_FUNC_FTELLO
+  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
+    AC_LIBOBJ([ftello])
+    gl_PREREQ_FTELLO
+  fi
+  gl_STDIO_MODULE_INDICATOR([ftello])
+  gl_FUNC_GETOPT_GNU
+  if test $REPLACE_GETOPT = 1; then
+    AC_LIBOBJ([getopt])
+    AC_LIBOBJ([getopt1])
+    gl_PREREQ_GETOPT
+    dnl Arrange for unistd.h to include getopt.h.
+    GNULIB_GL_UNISTD_H_GETOPT=1
+  fi
+  AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
+  gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
+  gl_FUNC_GETOPT_POSIX
+  if test $REPLACE_GETOPT = 1; then
+    AC_LIBOBJ([getopt])
+    AC_LIBOBJ([getopt1])
+    gl_PREREQ_GETOPT
+    dnl Arrange for unistd.h to include getopt.h.
+    GNULIB_GL_UNISTD_H_GETOPT=1
+  fi
+  AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
+  AC_SUBST([LIBINTL])
+  AC_SUBST([LTLIBINTL])
+  gl_GETTIME
+  gl_FUNC_GETTIMEOFDAY
+  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
+    AC_LIBOBJ([gettimeofday])
+    gl_PREREQ_GETTIMEOFDAY
+  fi
+  gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
+  # Autoconf 2.61a.99 and earlier don't support linking a file only
+  # in VPATH builds.  But since GNUmakefile is for maintainer use
+  # only, it does not matter if we skip the link with older autoconf.
+  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
+  # builds, so use a shell variable to bypass this.
+  GNUmakefile=GNUmakefile
+  m4_if(m4_version_compare([2.61a.100],
+          m4_defn([m4_PACKAGE_VERSION])), [1], [],
+        [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
+          [GNUmakefile=$GNUmakefile])])
+  AC_REQUIRE([gl_LARGEFILE])
+  gl_FUNC_LSEEK
+  if test $REPLACE_LSEEK = 1; then
+    AC_LIBOBJ([lseek])
+  fi
+  gl_UNISTD_MODULE_INDICATOR([lseek])
+  AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
+    [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
+  gl_FUNC_MALLOC_POSIX
+  if test $REPLACE_MALLOC = 1; then
+    AC_LIBOBJ([malloc])
+  fi
+  gl_STDLIB_MODULE_INDICATOR([malloc-posix])
+  gl_MSVC_INVAL
+  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+    AC_LIBOBJ([msvc-inval])
+  fi
+  gl_MSVC_NOTHROW
+  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+    AC_LIBOBJ([msvc-nothrow])
+  fi
+  gl_MULTIARCH
+  AC_PATH_PROG([PMCCABE], [pmccabe], [false])
+  AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
+  AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
+  gl_PREREQ_READ_FILE
+  gl_FUNC_REALLOC_POSIX
+  if test $REPLACE_REALLOC = 1; then
+    AC_LIBOBJ([realloc])
+  fi
+  gl_STDLIB_MODULE_INDICATOR([realloc-posix])
+  gt_TYPE_SSIZE_T
+  gl_STDARG_H
+  gl_STDDEF_H
+  gl_STDINT_H
+  gl_STDIO_H
+  gl_STDLIB_H
+  gl_HEADER_SYS_STAT_H
+  AC_PROG_MKDIR_P
+  gl_HEADER_SYS_TIME_H
+  AC_PROG_MKDIR_P
+  gl_SYS_TYPES_H
+  AC_PROG_MKDIR_P
+  gl_HEADER_TIME_H
+  gl_TIMESPEC
+  gl_UNISTD_H
+  gl_VALGRIND_TESTS
+  gl_VERSION_ETC
   # End of code from modules
   m4_ifval(gl_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
@@ -251,7 +269,7 @@ changequote([, ])dnl
   AC_SUBST([gltests_WITNESS])
   gl_module_indicator_condition=$gltests_WITNESS
   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
-gl_VALGRIND_TESTS
+  gl_VALGRIND_TESTS
   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
   m4_ifval(gltests_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
@@ -364,6 +382,8 @@ AC_DEFUN([gl_FILE_LIST], [
   lib/getopt1.c
   lib/getopt_int.h
   lib/gettext.h
+  lib/gettime.c
+  lib/gettimeofday.c
   lib/lseek.c
   lib/malloc.c
   lib/msvc-inval.c
@@ -382,21 +402,28 @@ AC_DEFUN([gl_FILE_LIST], [
   lib/stdio.in.h
   lib/stdlib.in.h
   lib/sys_stat.in.h
+  lib/sys_time.in.h
   lib/sys_types.in.h
   lib/time.in.h
+  lib/timespec.c
+  lib/timespec.h
   lib/unistd.in.h
   lib/version-etc-fsf.c
   lib/version-etc.c
   lib/version-etc.h
   m4/00gnulib.m4
   m4/autobuild.m4
+  m4/clock_time.m4
   m4/errno_h.m4
   m4/extensions.m4
+  m4/extern-inline.m4
   m4/fseeko.m4
   m4/fstat.m4
   m4/ftell.m4
   m4/ftello.m4
   m4/getopt.m4
+  m4/gettime.m4
+  m4/gettimeofday.m4
   m4/gnulib-common.m4
   m4/include_next.m4
   m4/largefile.m4
@@ -417,9 +444,12 @@ AC_DEFUN([gl_FILE_LIST], [
   m4/stdint.m4
   m4/stdio_h.m4
   m4/stdlib_h.m4
+  m4/sys_socket_h.m4
   m4/sys_stat_h.m4
+  m4/sys_time_h.m4
   m4/sys_types_h.m4
   m4/time_h.m4
+  m4/timespec.m4
   m4/unistd_h.m4
   m4/valgrind-tests.m4
   m4/version-etc.m4
diff --git a/gl/m4/largefile.m4 b/gl/m4/largefile.m4
index a159f4a..a88850a 100644
--- a/gl/m4/largefile.m4
+++ b/gl/m4/largefile.m4
@@ -136,7 +136,7 @@ AC_DEFUN([gl_LARGEFILE],
     *)
       dnl Nothing to do on gnulib's side.
       dnl A 64-bit off_t is
-      dnl   - already the default on MacOS X, FreeBSD, NetBSD, OpenBSD, IRIX,
+      dnl   - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX,
       dnl     OSF/1, Cygwin,
       dnl   - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on
       dnl     glibc, HP-UX, Solaris,
diff --git a/gl/m4/manywarnings.m4 b/gl/m4/manywarnings.m4
index 864fc85..2760efb 100644
--- a/gl/m4/manywarnings.m4
+++ b/gl/m4/manywarnings.m4
@@ -81,95 +81,118 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
 
   gl_manywarn_set=
   for gl_manywarn_item in \
-    -Wall \
     -W \
-    -Wformat-y2k \
-    -Wformat-nonliteral \
-    -Wformat-security \
-    -Winit-self \
-    -Wmissing-include-dirs \
-    -Wswitch-default \
-    -Wswitch-enum \
-    -Wunused \
-    -Wunknown-pragmas \
-    -Wstrict-aliasing \
-    -Wstrict-overflow \
-    -Wsystem-headers \
-    -Wfloat-equal \
-    -Wtraditional \
-    -Wtraditional-conversion \
-    -Wdeclaration-after-statement \
-    -Wundef \
-    -Wshadow \
-    -Wunsafe-loop-optimizations \
-    -Wpointer-arith \
+    -Wabi \
+    -Waddress \
+    -Wall \
+    -Warray-bounds \
+    -Wattributes \
     -Wbad-function-cast \
-    -Wc++-compat \
-    -Wcast-qual \
-    -Wcast-align \
-    -Wwrite-strings \
-    -Wconversion \
-    -Wsign-conversion \
-    -Wlogical-op \
-    -Waggregate-return \
-    -Wstrict-prototypes \
-    -Wold-style-definition \
-    -Wmissing-prototypes \
-    -Wmissing-declarations \
-    -Wmissing-noreturn \
-    -Wmissing-format-attribute \
-    -Wpacked \
-    -Wpadded \
-    -Wredundant-decls \
-    -Wnested-externs \
-    -Wunreachable-code \
-    -Winline \
-    -Winvalid-pch \
-    -Wlong-long \
-    -Wvla \
-    -Wvolatile-register-var \
-    -Wdisabled-optimization \
-    -Wstack-protector \
-    -Woverlength-strings \
     -Wbuiltin-macro-redefined \
-    -Wmudflap \
-    -Wpacked-bitfield-compat \
-    -Wsync-nand \
-    ; do
-    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
-  done
-  # The following are not documented in the manual but are included in
-  # output from gcc --help=warnings.
-  for gl_manywarn_item in \
-    -Wattributes \
+    -Wcast-align \
+    -Wchar-subscripts \
+    -Wclobbered \
+    -Wcomment \
+    -Wcomments \
     -Wcoverage-mismatch \
-    -Wunused-macros \
-    ; do
-    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
-  done
-  # More warnings from gcc 4.6.2 --help=warnings.
-  for gl_manywarn_item in \
-    -Wabi \
     -Wcpp \
     -Wdeprecated \
     -Wdeprecated-declarations \
+    -Wdisabled-optimization \
     -Wdiv-by-zero \
     -Wdouble-promotion \
+    -Wempty-body \
     -Wendif-labels \
+    -Wenum-compare \
     -Wextra \
     -Wformat-contains-nul \
     -Wformat-extra-args \
+    -Wformat-nonliteral \
+    -Wformat-security \
+    -Wformat-y2k \
     -Wformat-zero-length \
     -Wformat=2 \
+    -Wfree-nonheap-object \
+    -Wignored-qualifiers \
+    -Wimplicit \
+    -Wimplicit-function-declaration \
+    -Wimplicit-int \
+    -Winit-self \
+    -Winline \
+    -Wint-to-pointer-cast \
+    -Winvalid-memory-model \
+    -Winvalid-pch \
+    -Wjump-misses-init \
+    -Wlogical-op \
+    -Wmain \
+    -Wmaybe-uninitialized \
+    -Wmissing-braces \
+    -Wmissing-declarations \
+    -Wmissing-field-initializers \
+    -Wmissing-format-attribute \
+    -Wmissing-include-dirs \
+    -Wmissing-noreturn \
+    -Wmissing-parameter-type \
+    -Wmissing-prototypes \
+    -Wmudflap \
     -Wmultichar \
+    -Wnarrowing \
+    -Wnested-externs \
+    -Wnonnull \
     -Wnormalized=nfc \
+    -Wold-style-declaration \
+    -Wold-style-definition \
     -Woverflow \
+    -Woverlength-strings \
+    -Woverride-init \
+    -Wpacked \
+    -Wpacked-bitfield-compat \
+    -Wparentheses \
+    -Wpointer-arith \
+    -Wpointer-sign \
     -Wpointer-to-int-cast \
     -Wpragmas \
+    -Wreturn-type \
+    -Wsequence-point \
+    -Wshadow \
+    -Wsizeof-pointer-memaccess \
+    -Wstack-protector \
+    -Wstrict-aliasing \
+    -Wstrict-overflow \
+    -Wstrict-prototypes \
     -Wsuggest-attribute=const \
+    -Wsuggest-attribute=format \
     -Wsuggest-attribute=noreturn \
     -Wsuggest-attribute=pure \
+    -Wswitch \
+    -Wswitch-default \
+    -Wsync-nand \
+    -Wsystem-headers \
     -Wtrampolines \
+    -Wtrigraphs \
+    -Wtype-limits \
+    -Wuninitialized \
+    -Wunknown-pragmas \
+    -Wunreachable-code \
+    -Wunsafe-loop-optimizations \
+    -Wunused \
+    -Wunused-but-set-parameter \
+    -Wunused-but-set-variable \
+    -Wunused-function \
+    -Wunused-label \
+    -Wunused-local-typedefs \
+    -Wunused-macros \
+    -Wunused-parameter \
+    -Wunused-result \
+    -Wunused-value \
+    -Wunused-variable \
+    -Wvarargs \
+    -Wvariadic-macros \
+    -Wvector-operation-performance \
+    -Wvla \
+    -Wvolatile-register-var \
+    -Wwrite-strings \
+    \
     ; do
     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
   done
diff --git a/gl/m4/multiarch.m4 b/gl/m4/multiarch.m4
index b424dce..0c288b8 100644
--- a/gl/m4/multiarch.m4
+++ b/gl/m4/multiarch.m4
@@ -1,4 +1,4 @@
-# multiarch.m4 serial 6
+# multiarch.m4 serial 7
 dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 # Determine whether the compiler is or may be producing universal binaries.
 #
-# On MacOS X 10.5 and later systems, the user can create libraries and
+# On Mac OS X 10.5 and later systems, the user can create libraries and
 # executables that work on multiple system types--known as "fat" or
 # "universal" binaries--by specifying multiple '-arch' options to the
 # compiler but only a single '-arch' option to the preprocessor.  Like
diff --git a/gl/m4/nocrash.m4 b/gl/m4/nocrash.m4
index 08ef825..c2638df 100644
--- a/gl/m4/nocrash.m4
+++ b/gl/m4/nocrash.m4
@@ -1,4 +1,4 @@
-# nocrash.m4 serial 3
+# nocrash.m4 serial 4
 dnl Copyright (C) 2005, 2009-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,7 @@ dnl          int main() { nocrash_init(); ... }
 AC_DEFUN([GL_NOCRASH],[[
 #include <stdlib.h>
 #if defined __MACH__ && defined __APPLE__
-/* Avoid a crash on MacOS X.  */
+/* Avoid a crash on Mac OS X.  */
 #include <mach/mach.h>
 #include <mach/mach_error.h>
 #include <mach/thread_status.h>
diff --git a/gl/m4/stdio_h.m4 b/gl/m4/stdio_h.m4
index b03393b..5298dd6 100644
--- a/gl/m4/stdio_h.m4
+++ b/gl/m4/stdio_h.m4
@@ -1,4 +1,4 @@
-# stdio_h.m4 serial 41
+# stdio_h.m4 serial 42
 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,9 @@ AC_DEFUN([gl_STDIO_H],
   dnl No need to create extra modules for these functions. Everyone who uses
   dnl <stdio.h> likely needs them.
   GNULIB_FSCANF=1
+  gl_MODULE_INDICATOR([fscanf])
   GNULIB_SCANF=1
+  gl_MODULE_INDICATOR([scanf])
   GNULIB_FGETC=1
   GNULIB_GETC=1
   GNULIB_GETCHAR=1
diff --git a/gl/m4/sys_socket_h.m4 b/gl/m4/sys_socket_h.m4
new file mode 100644
index 0000000..8d4e7e1
--- /dev/null
+++ b/gl/m4/sys_socket_h.m4
@@ -0,0 +1,177 @@
+# sys_socket_h.m4 serial 22
+dnl Copyright (C) 2005-2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Simon Josefsson.
+
+AC_DEFUN([gl_HEADER_SYS_SOCKET],
+[
+  AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST])
+  AC_REQUIRE([AC_C_INLINE])
+
+  dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have
+  dnl old-style declarations (with return type 'int' instead of 'ssize_t')
+  dnl unless _POSIX_PII_SOCKET is defined.
+  case "$host_os" in
+    osf*)
+      AC_DEFINE([_POSIX_PII_SOCKET], [1],
+        [Define to 1 in order to get the POSIX compatible declarations
+         of socket functions.])
+      ;;
+  esac
+
+  AC_CACHE_CHECK([whether <sys/socket.h> is self-contained],
+    [gl_cv_header_sys_socket_h_selfcontained],
+    [
+      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], [[]])],
+        [gl_cv_header_sys_socket_h_selfcontained=yes],
+        [gl_cv_header_sys_socket_h_selfcontained=no])
+    ])
+  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
+    dnl If the shutdown function exists, <sys/socket.h> should define
+    dnl SHUT_RD, SHUT_WR, SHUT_RDWR.
+    AC_CHECK_FUNCS([shutdown])
+    if test $ac_cv_func_shutdown = yes; then
+      AC_CACHE_CHECK([whether <sys/socket.h> defines the SHUT_* macros],
+        [gl_cv_header_sys_socket_h_shut],
+        [
+          AC_COMPILE_IFELSE(
+            [AC_LANG_PROGRAM([[#include <sys/socket.h>]],
+               [[int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };]])],
+            [gl_cv_header_sys_socket_h_shut=yes],
+            [gl_cv_header_sys_socket_h_shut=no])
+        ])
+      if test $gl_cv_header_sys_socket_h_shut = no; then
+        SYS_SOCKET_H='sys/socket.h'
+      fi
+    fi
+  fi
+  # We need to check for ws2tcpip.h now.
+  gl_PREREQ_SYS_H_SOCKET
+  AC_CHECK_TYPES([struct sockaddr_storage, sa_family_t],,,[
+  /* sys/types.h is not needed according to POSIX, but the
+     sys/socket.h in i386-unknown-freebsd4.10 and
+     powerpc-apple-darwin5.5 required it. */
+#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+])
+  if test $ac_cv_type_struct_sockaddr_storage = no; then
+    HAVE_STRUCT_SOCKADDR_STORAGE=0
+  fi
+  if test $ac_cv_type_sa_family_t = no; then
+    HAVE_SA_FAMILY_T=0
+  fi
+  if test $ac_cv_type_struct_sockaddr_storage != no; then
+    AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family],
+      [],
+      [HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0],
+      [#include <sys/types.h>
+       #ifdef HAVE_SYS_SOCKET_H
+       #include <sys/socket.h>
+       #endif
+       #ifdef HAVE_WS2TCPIP_H
+       #include <ws2tcpip.h>
+       #endif
+      ])
+  fi
+  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
+     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
+    SYS_SOCKET_H='sys/socket.h'
+  fi
+  gl_PREREQ_SYS_H_WINSOCK2
+
+  dnl Check for declarations of anything we want to poison if the
+  dnl corresponding gnulib module is not in use.
+  gl_WARN_ON_USE_PREPARE([[
+/* Some systems require prerequisite headers.  */
+#include <sys/types.h>
+#include <sys/socket.h>
+    ]], [socket connect accept bind getpeername getsockname getsockopt
+    listen recv send recvfrom sendto setsockopt shutdown accept4])
+])
+
+AC_DEFUN([gl_PREREQ_SYS_H_SOCKET],
+[
+  dnl Check prerequisites of the <sys/socket.h> replacement.
+  AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])
+  gl_CHECK_NEXT_HEADERS([sys/socket.h])
+  if test $ac_cv_header_sys_socket_h = yes; then
+    HAVE_SYS_SOCKET_H=1
+    HAVE_WS2TCPIP_H=0
+  else
+    HAVE_SYS_SOCKET_H=0
+    if test $ac_cv_header_ws2tcpip_h = yes; then
+      HAVE_WS2TCPIP_H=1
+    else
+      HAVE_WS2TCPIP_H=0
+    fi
+  fi
+  AC_SUBST([HAVE_SYS_SOCKET_H])
+  AC_SUBST([HAVE_WS2TCPIP_H])
+])
+
+# Common prerequisites of the <sys/socket.h> replacement and of the
+# <sys/select.h> replacement.
+# Sets and substitutes HAVE_WINSOCK2_H.
+AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2],
+[
+  m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
+  m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
+  AC_CHECK_HEADERS_ONCE([sys/socket.h])
+  if test $ac_cv_header_sys_socket_h != yes; then
+    dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make
+    dnl the check for those headers unconditional; yet cygwin reports
+    dnl that the headers are present but cannot be compiled (since on
+    dnl cygwin, all socket information should come from sys/socket.h).
+    AC_CHECK_HEADERS([winsock2.h])
+  fi
+  if test "$ac_cv_header_winsock2_h" = yes; then
+    HAVE_WINSOCK2_H=1
+    UNISTD_H_HAVE_WINSOCK2_H=1
+    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+  else
+    HAVE_WINSOCK2_H=0
+  fi
+  AC_SUBST([HAVE_WINSOCK2_H])
+])
+
+AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR],
+[
+  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
+  AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
+  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
+  dnl Define it also as a C macro, for the benefit of the unit tests.
+  gl_MODULE_INDICATOR_FOR_TESTS([$1])
+])
+
+AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS],
+[
+  GNULIB_SOCKET=0;      AC_SUBST([GNULIB_SOCKET])
+  GNULIB_CONNECT=0;     AC_SUBST([GNULIB_CONNECT])
+  GNULIB_ACCEPT=0;      AC_SUBST([GNULIB_ACCEPT])
+  GNULIB_BIND=0;        AC_SUBST([GNULIB_BIND])
+  GNULIB_GETPEERNAME=0; AC_SUBST([GNULIB_GETPEERNAME])
+  GNULIB_GETSOCKNAME=0; AC_SUBST([GNULIB_GETSOCKNAME])
+  GNULIB_GETSOCKOPT=0;  AC_SUBST([GNULIB_GETSOCKOPT])
+  GNULIB_LISTEN=0;      AC_SUBST([GNULIB_LISTEN])
+  GNULIB_RECV=0;        AC_SUBST([GNULIB_RECV])
+  GNULIB_SEND=0;        AC_SUBST([GNULIB_SEND])
+  GNULIB_RECVFROM=0;    AC_SUBST([GNULIB_RECVFROM])
+  GNULIB_SENDTO=0;      AC_SUBST([GNULIB_SENDTO])
+  GNULIB_SETSOCKOPT=0;  AC_SUBST([GNULIB_SETSOCKOPT])
+  GNULIB_SHUTDOWN=0;    AC_SUBST([GNULIB_SHUTDOWN])
+  GNULIB_ACCEPT4=0;     AC_SUBST([GNULIB_ACCEPT4])
+  HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE])
+  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
+                        AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY])
+  HAVE_SA_FAMILY_T=1;   AC_SUBST([HAVE_SA_FAMILY_T])
+  HAVE_ACCEPT4=1;       AC_SUBST([HAVE_ACCEPT4])
+])
diff --git a/gl/m4/sys_time_h.m4 b/gl/m4/sys_time_h.m4
new file mode 100644
index 0000000..c4a30cd
--- /dev/null
+++ b/gl/m4/sys_time_h.m4
@@ -0,0 +1,110 @@
+# Configure a replacement for <sys/time.h>.
+# serial 8
+
+# Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# Written by Paul Eggert and Martin Lambers.
+
+AC_DEFUN([gl_HEADER_SYS_TIME_H],
+[
+  dnl Use AC_REQUIRE here, so that the REPLACE_GETTIMEOFDAY=0 statement
+  dnl below is expanded once only, before all REPLACE_GETTIMEOFDAY=1
+  dnl statements that occur in other macros.
+  AC_REQUIRE([gl_HEADER_SYS_TIME_H_BODY])
+])
+
+AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY],
+[
+  AC_REQUIRE([AC_C_RESTRICT])
+  AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
+  AC_CHECK_HEADERS_ONCE([sys/time.h])
+  gl_CHECK_NEXT_HEADERS([sys/time.h])
+
+  if test $ac_cv_header_sys_time_h != yes; then
+    HAVE_SYS_TIME_H=0
+  fi
+
+  dnl On native Windows with MSVC, 'struct timeval' is defined in <winsock2.h>
+  dnl only. So include that header in the list.
+  gl_PREREQ_SYS_H_WINSOCK2
+  AC_CACHE_CHECK([for struct timeval], [gl_cv_sys_struct_timeval],
+    [AC_COMPILE_IFELSE(
+       [AC_LANG_PROGRAM(
+          [[#if HAVE_SYS_TIME_H
+             #include <sys/time.h>
+            #endif
+            #include <time.h>
+            #if HAVE_WINSOCK2_H
+            # include <winsock2.h>
+            #endif
+          ]],
+          [[static struct timeval x; x.tv_sec = x.tv_usec;]])],
+       [gl_cv_sys_struct_timeval=yes],
+       [gl_cv_sys_struct_timeval=no])
+    ])
+  if test $gl_cv_sys_struct_timeval != yes; then
+    HAVE_STRUCT_TIMEVAL=0
+  else
+    dnl On native Windows with a 64-bit 'time_t', 'struct timeval' is defined
+    dnl (in <sys/time.h> and <winsock2.h> for mingw64, in <winsock2.h> only
+    dnl for MSVC) with a tv_sec field of type 'long' (32-bit!), which is
+    dnl smaller than the 'time_t' type mandated by POSIX.
+    dnl On OpenBSD 5.1 amd64, tv_sec is 64 bits and time_t 32 bits, but
+    dnl that is good enough.
+    AC_CACHE_CHECK([for wide-enough struct timeval.tv_sec member],
+      [gl_cv_sys_struct_timeval_tv_sec],
+      [AC_COMPILE_IFELSE(
+         [AC_LANG_PROGRAM(
+            [[#if HAVE_SYS_TIME_H
+               #include <sys/time.h>
+              #endif
+              #include <time.h>
+              #if HAVE_WINSOCK2_H
+              # include <winsock2.h>
+              #endif
+            ]],
+            [[static struct timeval x;
+              typedef int verify_tv_sec_type[
+                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
+              ];
+            ]])],
+         [gl_cv_sys_struct_timeval_tv_sec=yes],
+         [gl_cv_sys_struct_timeval_tv_sec=no])
+      ])
+    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
+      REPLACE_STRUCT_TIMEVAL=1
+    fi
+  fi
+
+  dnl Check for declarations of anything we want to poison if the
+  dnl corresponding gnulib module is not in use.
+  gl_WARN_ON_USE_PREPARE([[
+#if HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#include <time.h>
+    ]], [gettimeofday])
+])
+
+AC_DEFUN([gl_SYS_TIME_MODULE_INDICATOR],
+[
+  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
+  AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
+  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
+  dnl Define it also as a C macro, for the benefit of the unit tests.
+  gl_MODULE_INDICATOR_FOR_TESTS([$1])
+])
+
+AC_DEFUN([gl_HEADER_SYS_TIME_H_DEFAULTS],
+[
+  GNULIB_GETTIMEOFDAY=0;     AC_SUBST([GNULIB_GETTIMEOFDAY])
+  dnl Assume POSIX behavior unless another module says otherwise.
+  HAVE_GETTIMEOFDAY=1;       AC_SUBST([HAVE_GETTIMEOFDAY])
+  HAVE_STRUCT_TIMEVAL=1;     AC_SUBST([HAVE_STRUCT_TIMEVAL])
+  HAVE_SYS_TIME_H=1;         AC_SUBST([HAVE_SYS_TIME_H])
+  REPLACE_GETTIMEOFDAY=0;    AC_SUBST([REPLACE_GETTIMEOFDAY])
+  REPLACE_STRUCT_TIMEVAL=0;  AC_SUBST([REPLACE_STRUCT_TIMEVAL])
+])
diff --git a/gl/m4/time_h.m4 b/gl/m4/time_h.m4
index b88da76..6415bfb 100644
--- a/gl/m4/time_h.m4
+++ b/gl/m4/time_h.m4
@@ -2,7 +2,7 @@
 
 # Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
 
-# serial 6
+# serial 7
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -25,7 +25,7 @@ AC_DEFUN([gl_HEADER_TIME_H_BODY],
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
 ])
 
-dnl Define HAVE_STRUCT_TIMESPEC if 'struct timespec' is declared
+dnl Check whether 'struct timespec' is declared
 dnl in time.h, sys/time.h, or pthread.h.
 
 AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC],
diff --git a/gl/m4/timespec.m4 b/gl/m4/timespec.m4
new file mode 100644
index 0000000..63c00e8
--- /dev/null
+++ b/gl/m4/timespec.m4
@@ -0,0 +1,11 @@
+#serial 15
+
+# Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
+
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+dnl From Jim Meyering
+
+AC_DEFUN([gl_TIMESPEC], [:])
diff --git a/gl/stdint.in.h b/gl/stdint.in.h
index 59c00d5..e2a0eb1 100644
--- a/gl/stdint.in.h
+++ b/gl/stdint.in.h
@@ -83,7 +83,7 @@
 /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
    IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
    AIX 5.2 <sys/types.h> isn't needed and causes troubles.
-   MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
+   Mac OS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
    relies on the system <stdint.h> definitions, so include
    <sys/types.h> after @NEXT_STDINT_H@.  */
 #if @HAVE_SYS_TYPES_H@ && ! defined _AIX
diff --git a/gl/stdio-impl.h b/gl/stdio-impl.h
index 4935795..920b4d4 100644
--- a/gl/stdio-impl.h
+++ b/gl/stdio-impl.h
@@ -28,7 +28,7 @@
 
 #include <errno.h>                             /* For detecting Plan9.  */
 
-#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
+#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
 
 # if defined __DragonFly__          /* DragonFly */
   /* See <http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/priv_stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>.  */
@@ -66,7 +66,7 @@
       /* More fields, not relevant here.  */
     };
 #  define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub
-# else                                         /* FreeBSD, NetBSD <= 1.5Z, DragonFly, MacOS X, Cygwin */
+# else                                         /* FreeBSD, NetBSD <= 1.5Z, DragonFly, Mac OS X, Cygwin */
 #  define fp_ub fp_->_ub
 # endif
 
diff --git a/gl/stdlib.in.h b/gl/stdlib.in.h
index b546133..1d67ec6 100644
--- a/gl/stdlib.in.h
+++ b/gl/stdlib.in.h
@@ -87,8 +87,8 @@ struct random_data
 #endif
 
 #if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
-/* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
-/* On MacOS X 10.5, only <unistd.h> declares mkstemps.  */
+/* On Mac OS X 10.3, only <unistd.h> declares mkstemp.  */
+/* On Mac OS X 10.5, only <unistd.h> declares mkstemps.  */
 /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt.  */
 /* But avoid namespace pollution on glibc systems and native Windows.  */
 # include <unistd.h>
diff --git a/gl/sys_time.in.h b/gl/sys_time.in.h
new file mode 100644
index 0000000..d915cee
--- /dev/null
+++ b/gl/sys_time.in.h
@@ -0,0 +1,205 @@
+/* Provide a more complete sys/time.h.
+
+   Copyright (C) 2007-2012 Free Software Foundation, Inc.
+
+   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, 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/>.  */
+
+/* Written by Paul Eggert.  */
+
+#if __GNUC__ >= 3
+@PRAGMA_SYSTEM_HEADER@
+#endif
+@PRAGMA_COLUMNS@
+
+#if defined _@GUARD_PREFIX@_SYS_TIME_H
+
+/* Simply delegate to the system's header, without adding anything.  */
+# if @HAVE_SYS_TIME_H@
+#  @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@
+# endif
+
+#else
+
+# define _@GUARD_PREFIX@_SYS_TIME_H
+
+# if @HAVE_SYS_TIME_H@
+#  @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@
+# else
+#  include <time.h>
+# endif
+
+/* On native Windows with MSVC, get the 'struct timeval' type.
+   Also, on native Windows with a 64-bit time_t, where we are overriding the
+   'struct timeval' type, get all declarations of system functions whose
+   signature contains 'struct timeval'.  */
+# if (defined _MSC_VER || @REPLACE_STRUCT_TIMEVAL@) && @HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H
+#  define _GL_INCLUDING_WINSOCK2_H
+#  include <winsock2.h>
+#  undef _GL_INCLUDING_WINSOCK2_H
+# endif
+
+/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
+
+/* The definition of _GL_ARG_NONNULL is copied here.  */
+
+/* The definition of _GL_WARN_ON_USE is copied here.  */
+
+# ifdef __cplusplus
+extern "C" {
+# endif
+
+# if !@HAVE_STRUCT_TIMEVAL@ || @REPLACE_STRUCT_TIMEVAL@
+
+#  if @REPLACE_STRUCT_TIMEVAL@
+#   define timeval rpl_timeval
+#  endif
+
+#  if !GNULIB_defined_struct_timeval
+struct timeval
+{
+  time_t tv_sec;
+  long int tv_usec;
+};
+#   define GNULIB_defined_struct_timeval 1
+#  endif
+
+# endif
+
+# ifdef __cplusplus
+}
+# endif
+
+# if @GNULIB_GETTIMEOFDAY@
+#  if @REPLACE_GETTIMEOFDAY@
+#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#    undef gettimeofday
+#    define gettimeofday rpl_gettimeofday
+#   endif
+_GL_FUNCDECL_RPL (gettimeofday, int,
+                  (struct timeval *restrict, void *restrict)
+                  _GL_ARG_NONNULL ((1)));
+_GL_CXXALIAS_RPL (gettimeofday, int,
+                  (struct timeval *restrict, void *restrict));
+#  else
+#   if !@HAVE_GETTIMEOFDAY@
+_GL_FUNCDECL_SYS (gettimeofday, int,
+                  (struct timeval *restrict, void *restrict)
+                  _GL_ARG_NONNULL ((1)));
+#   endif
+/* Need to cast, because on glibc systems, by default, the second argument is
+                                                  struct timezone *.  */
+_GL_CXXALIAS_SYS_CAST (gettimeofday, int,
+                       (struct timeval *restrict, void *restrict));
+#  endif
+_GL_CXXALIASWARN (gettimeofday);
+# elif defined GNULIB_POSIXCHECK
+#  undef gettimeofday
+#  if HAVE_RAW_DECL_GETTIMEOFDAY
+_GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - "
+                 "use gnulib module gettimeofday for portability");
+#  endif
+# endif
+
+/* Hide some function declarations from <winsock2.h>.  */
+
+# if defined _MSC_VER && @HAVE_WINSOCK2_H@
+#  if !defined _@GUARD_PREFIX@_UNISTD_H
+#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#    undef close
+#    define close close_used_without_including_unistd_h
+#   else
+     _GL_WARN_ON_USE (close,
+                      "close() used without including <unistd.h>");
+#   endif
+#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#    undef gethostname
+#    define gethostname gethostname_used_without_including_unistd_h
+#   else
+     _GL_WARN_ON_USE (gethostname,
+                      "gethostname() used without including <unistd.h>");
+#   endif
+#  endif
+#  if !defined _@GUARD_PREFIX@_SYS_SOCKET_H
+#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#    undef socket
+#    define socket              socket_used_without_including_sys_socket_h
+#    undef connect
+#    define connect             connect_used_without_including_sys_socket_h
+#    undef accept
+#    define accept              accept_used_without_including_sys_socket_h
+#    undef bind
+#    define bind                bind_used_without_including_sys_socket_h
+#    undef getpeername
+#    define getpeername         getpeername_used_without_including_sys_socket_h
+#    undef getsockname
+#    define getsockname         getsockname_used_without_including_sys_socket_h
+#    undef getsockopt
+#    define getsockopt          getsockopt_used_without_including_sys_socket_h
+#    undef listen
+#    define listen              listen_used_without_including_sys_socket_h
+#    undef recv
+#    define recv                recv_used_without_including_sys_socket_h
+#    undef send
+#    define send                send_used_without_including_sys_socket_h
+#    undef recvfrom
+#    define recvfrom            recvfrom_used_without_including_sys_socket_h
+#    undef sendto
+#    define sendto              sendto_used_without_including_sys_socket_h
+#    undef setsockopt
+#    define setsockopt          setsockopt_used_without_including_sys_socket_h
+#    undef shutdown
+#    define shutdown            shutdown_used_without_including_sys_socket_h
+#   else
+     _GL_WARN_ON_USE (socket,
+                      "socket() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (connect,
+                      "connect() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (accept,
+                      "accept() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (bind,
+                      "bind() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (getpeername,
+                      "getpeername() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (getsockname,
+                      "getsockname() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (getsockopt,
+                      "getsockopt() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (listen,
+                      "listen() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (recv,
+                      "recv() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (send,
+                      "send() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (recvfrom,
+                      "recvfrom() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (sendto,
+                      "sendto() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (setsockopt,
+                      "setsockopt() used without including <sys/socket.h>");
+     _GL_WARN_ON_USE (shutdown,
+                      "shutdown() used without including <sys/socket.h>");
+#   endif
+#  endif
+#  if !defined _@GUARD_PREFIX@_SYS_SELECT_H
+#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#    undef select
+#    define select select_used_without_including_sys_select_h
+#   else
+     _GL_WARN_ON_USE (select,
+                      "select() used without including <sys/select.h>");
+#   endif
+#  endif
+# endif
+
+#endif /* _@GUARD_PREFIX@_SYS_TIME_H */
diff --git a/gl/timespec.c b/gl/timespec.c
new file mode 100644
index 0000000..2b6098e
--- /dev/null
+++ b/gl/timespec.c
@@ -0,0 +1,3 @@
+#include <config.h>
+#define _GL_TIMESPEC_INLINE _GL_EXTERN_INLINE
+#include "timespec.h"
diff --git a/gl/timespec.h b/gl/timespec.h
new file mode 100644
index 0000000..d0a2194
--- /dev/null
+++ b/gl/timespec.h
@@ -0,0 +1,92 @@
+/* timespec -- System time interface
+
+   Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2012 Free Software
+   Foundation, Inc.
+
+   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/>.  */
+
+#if ! defined TIMESPEC_H
+# define TIMESPEC_H
+
+# include <time.h>
+
+_GL_INLINE_HEADER_BEGIN
+#ifndef _GL_TIMESPEC_INLINE
+# define _GL_TIMESPEC_INLINE _GL_INLINE
+#endif
+
+/* Return negative, zero, positive if A < B, A == B, A > B, respectively.
+
+   For each time stamp T, this code assumes that either:
+
+     * T.tv_nsec is in the range 0..999999999; or
+     * T.tv_sec corresponds to a valid leap second on a host that supports
+       leap seconds, and T.tv_nsec is in the range 1000000000..1999999999; or
+     * T.tv_sec is the minimum time_t value and T.tv_nsec is -1; or
+       T.tv_sec is the maximum time_t value and T.tv_nsec is 2000000000.
+       This allows for special struct timespec values that are less or
+       greater than all possible valid time stamps.
+
+   In all these cases, it is safe to subtract two tv_nsec values and
+   convert the result to integer without worrying about overflow on
+   any platform of interest to the GNU project, since all such
+   platforms have 32-bit int or wider.
+
+   Replacing "(int) (a.tv_nsec - b.tv_nsec)" with something like
+   "a.tv_nsec < b.tv_nsec ? -1 : a.tv_nsec > b.tv_nsec" would cause
+   this function to work in some cases where the above assumption is
+   violated, but not in all cases (e.g., a.tv_sec==1, a.tv_nsec==-2,
+   b.tv_sec==0, b.tv_nsec==999999999) and is arguably not worth the
+   extra instructions.  Using a subtraction has the advantage of
+   detecting some invalid cases on platforms that detect integer
+   overflow.
+
+   The (int) cast avoids a gcc -Wconversion warning.  */
+
+_GL_TIMESPEC_INLINE int
+timespec_cmp (struct timespec a, struct timespec b)
+{
+  return (a.tv_sec < b.tv_sec ? -1
+          : a.tv_sec > b.tv_sec ? 1
+          : (int) (a.tv_nsec - b.tv_nsec));
+}
+
+/* Return -1, 0, 1, depending on the sign of A.  A.tv_nsec must be
+   nonnegative.  */
+_GL_TIMESPEC_INLINE int
+timespec_sign (struct timespec a)
+{
+  return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec;
+}
+
+struct timespec timespec_add (struct timespec, struct timespec)
+  _GL_ATTRIBUTE_CONST;
+struct timespec timespec_sub (struct timespec, struct timespec)
+  _GL_ATTRIBUTE_CONST;
+struct timespec dtotimespec (double)
+  _GL_ATTRIBUTE_CONST;
+
+/* Return an approximation to A, of type 'double'.  */
+_GL_TIMESPEC_INLINE double
+timespectod (struct timespec a)
+{
+  return a.tv_sec + a.tv_nsec / 1e9;
+}
+
+void gettime (struct timespec *);
+int settime (struct timespec const *);
+
+_GL_INLINE_HEADER_END
+
+#endif
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 9115486..e904e51 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -1318,7 +1318,7 @@ _GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
 _GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len)
                                     _GL_ARG_NONNULL ((1)));
 # endif
-/* Need to cast, because on Solaris 11 2011-10, MacOS X 10.5, IRIX 6.5
+/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5
    and FreeBSD 6.4 the second parameter is int.  On Solaris 11
    2011-10, the first parameter is not const.  */
 _GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len));
diff --git a/lib/decoding.c b/lib/decoding.c
index e6cdb98..4f21d24 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -1428,7 +1428,7 @@ asn1_der_decoding_element (ASN1_TYPE * structure, const char *elementName,
       goto cleanup;
     }
 
-  if ((*structure)->name)
+  if ((*structure)->name[0] != 0)
     {				/* Has *structure got a name? */
       nameLen -= strlen ((*structure)->name);
       if (nameLen > 0)
@@ -2596,7 +2596,7 @@ asn1_expand_any_defined_by (ASN1_TYPE definitions, ASN1_TYPE * element)
 	      p3 = p3->down;
 	      while (p3)
 		{
-		  if ((p3->name) && !(strcmp (p3->name, p2->name)))
+		  if (!(strcmp (p3->name, p2->name)))
 		    break;
 		  p3 = p3->right;
 		}
@@ -2618,7 +2618,7 @@ asn1_expand_any_defined_by (ASN1_TYPE definitions, ASN1_TYPE * element)
 
 		  while (p3)
 		    {
-		      if ((p3->name) && !(strcmp (p3->name, p2->name)))
+		      if (!(strcmp (p3->name, p2->name)))
 			break;
 		      p3 = p3->right;
 		    }
diff --git a/lib/element.c b/lib/element.c
index ead899c..70b272b 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -45,7 +45,7 @@ _asn1_hierarchical_name (ASN1_TYPE node, char *name, int name_size)
 
   while (p != NULL)
     {
-      if (p->name != NULL)
+      if (p->name[0] != 0)
 	{
 	  _asn1_str_cpy (tmp_name, sizeof (tmp_name), name),
 	    _asn1_str_cpy (name, name_size, p->name);
@@ -145,7 +145,7 @@ _asn1_append_sequence_set (ASN1_TYPE node)
     p = p->right;
   _asn1_set_right (p, p2);
 
-  if (p->name == NULL)
+  if (p->name[0] == 0)
     _asn1_str_cpy (temp, sizeof (temp), "?1");
   else
     {
@@ -360,7 +360,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 		{
 		  if (type_field (p->type) == TYPE_CONSTANT)
 		    {
-		      if ((p->name) && (!_asn1_strcmp (p->name, value)))
+		      if (!_asn1_strcmp (p->name, value))
 			{
 			  value_temp =
 			    (unsigned char *)
@@ -443,7 +443,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 		{
 		  if (type_field (p2->type) == TYPE_CONSTANT)
 		    {
-		      if ((p2->name) && (!_asn1_strcmp (p2->name, p->value)))
+		      if (!_asn1_strcmp (p2->name, p->value))
 			{
 			  default_temp =
 			    (unsigned char *)
@@ -767,7 +767,7 @@ asn1_read_value (ASN1_TYPE root, const char *name, void *ivalue, int *len)
 		{
 		  if (type_field (p2->type) == TYPE_CONSTANT)
 		    {
-		      if ((p2->name) && (!_asn1_strcmp (p2->name, p->value)))
+		      if (!_asn1_strcmp (p2->name, p->value))
 			{
 			  if (_asn1_convert_integer
 			      (p2->value, value, value_size,
diff --git a/lib/int.h b/lib/int.h
index 82de579..f01cb4d 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -38,7 +38,7 @@
 
 #include <libtasn1.h>
 
-#define ASN1_SMALL_VALUE_SIZE 16
+#define ASN1_SMALL_VALUE_SIZE 8
 
 /* This structure is also in libtasn1.h, but then contains less
    fields.  You cannot make any modifications to these first fields
@@ -46,7 +46,7 @@
 struct node_asn_struct
 {
   /* public fields: */
-  char *name;			/* Node name */
+  char name[ASN1_MAX_NAME_SIZE];			/* Node name */
   unsigned int type;		/* Node type */
   unsigned char *value;		/* Node value */
   int value_len;
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 784a67e..30154ae 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -44,7 +44,7 @@ extern "C"
 {
 #endif
 
-#define ASN1_VERSION "2.14"
+#define ASN1_VERSION "3.0"
 
   typedef int asn1_retCode;	/* type returned by libtasn1 functions */
 
@@ -108,26 +108,15 @@ extern "C"
   /* that represent an ASN.1 DEFINITION.                */
   /******************************************************/
 
-#if !defined ASN1_BUILDING
-  /* This structure is also in internal.h, but then contains more
-     fields.  You cannot make any modifications to these fields
-     without breaking ABI.  */
-  struct node_asn_struct
-  {
-    char *name;			/* Node name */
-    unsigned int type;		/* Node type */
-    unsigned char *value;	/* Node value */
-    int value_len;
-    struct node_asn_struct *down;	/* Pointer to the son node */
-    struct node_asn_struct *right;	/* Pointer to the brother node */
-    struct node_asn_struct *left;	/* Pointer to the next list element */
-  };
-#endif
-
   typedef struct node_asn_struct node_asn;
 
   typedef node_asn *ASN1_TYPE;
 
+
+  /* maximum number of characters of a name */
+  /* inside a file with ASN1 definitons     */
+#define ASN1_MAX_NAME_SIZE 128
+
 #define ASN1_TYPE_EMPTY  NULL
 
   /*****************************************/
@@ -145,9 +134,6 @@ extern "C"
   /*  Fixed constants                */
   /***********************************/
 
-  /* maximum number of characters of a name */
-  /* inside a file with ASN1 definitons     */
-#define ASN1_MAX_NAME_SIZE 128
 
   /* maximum number of characters */
   /* of a description message     */
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 2e1f7ee..83de603 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -105,7 +105,7 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
   p = pointer;
   n_start = name;
 
-  if (p->name != NULL)
+  if (p->name[0] != 0)
     {				/* has *pointer got a name ? */
       n_end = strchr (n_start, '.');	/* search the first dot */
       if (n_end)
@@ -172,7 +172,7 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
 	{			/* no "?LAST" */
 	  while (p)
 	    {
-	      if ((p->name) && (!strcmp (p->name, n)))
+	      if (!strcmp (p->name, n))
 		break;
 	      else
 		p = p->right;
@@ -349,23 +349,14 @@ _asn1_set_name (ASN1_TYPE node, const char *name)
   if (node == NULL)
     return node;
 
-  if (node->name)
+  if (name == NULL)
     {
-      _asn1_free (node->name);
-      node->name = NULL;
+      node->name[0] = 0;
+      return node;
     }
 
-  if (name == NULL)
-    return node;
+  _asn1_str_cpy (node->name, sizeof (node->name), name);
 
-  if (strlen (name))
-    {
-      node->name = (char *) _asn1_strdup (name);
-      if (node->name == NULL)
-	return NULL;
-    }
-  else
-    node->name = NULL;
   return node;
 }
 
@@ -389,21 +380,6 @@ _asn1_set_right (ASN1_TYPE node, ASN1_TYPE right)
   return node;
 }
 
-/******************************************************************/
-/* Function : _asn1_get_right                                     */
-/* Description: returns the element pointed by the RIGHT field of */
-/*              a NODE_ASN element.                               */
-/* Parameters:                                                    */
-/*   node: NODE_ASN element pointer.                              */
-/* Return: field RIGHT of NODE.                                   */
-/******************************************************************/
-ASN1_TYPE
-_asn1_get_right (ASN1_TYPE node)
-{
-  if (node == NULL)
-    return NULL;
-  return node->right;
-}
 
 /******************************************************************/
 /* Function : _asn1_get_last_right                                */
@@ -426,78 +402,6 @@ _asn1_get_last_right (ASN1_TYPE node)
 }
 
 /******************************************************************/
-/* Function : _asn1_set_down                                      */
-/* Description: sets the field DOWN in a NODE_ASN element.        */
-/* Parameters:                                                    */
-/*   node: element pointer.                                       */
-/*   down: pointer to a NODE_ASN element that you want be pointed */
-/*          by NODE.                                              */
-/* Return: pointer to *NODE.                                      */
-/******************************************************************/
-ASN1_TYPE
-_asn1_set_down (ASN1_TYPE node, ASN1_TYPE down)
-{
-  if (node == NULL)
-    return node;
-  node->down = down;
-  if (down)
-    down->left = node;
-  return node;
-}
-
-/******************************************************************/
-/* Function : _asn1_get_down                                      */
-/* Description: returns the element pointed by the DOWN field of  */
-/*              a NODE_ASN element.                               */
-/* Parameters:                                                    */
-/*   node: NODE_ASN element pointer.                              */
-/* Return: field DOWN of NODE.                                    */
-/******************************************************************/
-ASN1_TYPE
-_asn1_get_down (ASN1_TYPE node)
-{
-  if (node == NULL)
-    return NULL;
-  return node->down;
-}
-
-/******************************************************************/
-/* Function : _asn1_get_name                                      */
-/* Description: returns the name of a NODE_ASN element.           */
-/* Parameters:                                                    */
-/*   node: NODE_ASN element pointer.                              */
-/* Return: a null terminated string.                              */
-/******************************************************************/
-char *
-_asn1_get_name (ASN1_TYPE node)
-{
-  if (node == NULL)
-    return NULL;
-  return node->name;
-}
-
-/******************************************************************/
-/* Function : _asn1_mod_type                                      */
-/* Description: change the field TYPE of an NODE_ASN element.     */
-/*              The new value is the old one | (bitwise or) the   */
-/*              paramener VALUE.                                  */
-/* Parameters:                                                    */
-/*   node: NODE_ASN element pointer.                              */
-/*   value: the integer value that must be or-ed with the current */
-/*          value of field TYPE.                                  */
-/* Return: NODE pointer.                                          */
-/******************************************************************/
-ASN1_TYPE
-_asn1_mod_type (ASN1_TYPE node, unsigned int value)
-{
-  if (node == NULL)
-    return node;
-  node->type |= value;
-  return node;
-}
-
-
-/******************************************************************/
 /* Function : _asn1_remove_node                                   */
 /* Description: gets free the memory allocated for an NODE_ASN    */
 /*              element (not the elements pointed by it).         */
@@ -510,8 +414,6 @@ _asn1_remove_node (ASN1_TYPE node)
   if (node == NULL)
     return;
 
-  if (node->name != NULL)
-    _asn1_free (node->name);
   if (node->value != NULL && node->value != node->small_value)
     _asn1_free (node->value);
   _asn1_free (node);
diff --git a/lib/parser_aux.h b/lib/parser_aux.h
index 374f599..7156088 100644
--- a/lib/parser_aux.h
+++ b/lib/parser_aux.h
@@ -44,18 +44,8 @@ ASN1_TYPE _asn1_set_name (ASN1_TYPE node, const char *name);
 
 ASN1_TYPE _asn1_set_right (ASN1_TYPE node, ASN1_TYPE right);
 
-ASN1_TYPE _asn1_get_right (ASN1_TYPE node);
-
 ASN1_TYPE _asn1_get_last_right (ASN1_TYPE node);
 
-ASN1_TYPE _asn1_set_down (ASN1_TYPE node, ASN1_TYPE down);
-
-char *_asn1_get_name (ASN1_TYPE node);
-
-ASN1_TYPE _asn1_get_down (ASN1_TYPE node);
-
-ASN1_TYPE _asn1_mod_type (ASN1_TYPE node, unsigned int value);
-
 void _asn1_remove_node (ASN1_TYPE node);
 
 void _asn1_delete_list (void);
@@ -76,4 +66,91 @@ asn1_retCode _asn1_check_identifier (ASN1_TYPE node);
 
 asn1_retCode _asn1_set_default_tag (ASN1_TYPE node);
 
+/******************************************************************/
+/* Function : _asn1_get_right                                     */
+/* Description: returns the element pointed by the RIGHT field of */
+/*              a NODE_ASN element.                               */
+/* Parameters:                                                    */
+/*   node: NODE_ASN element pointer.                              */
+/* Return: field RIGHT of NODE.                                   */
+/******************************************************************/
+inline static ASN1_TYPE
+_asn1_get_right (ASN1_TYPE node)
+{
+  if (node == NULL)
+    return NULL;
+  return node->right;
+}
+
+/******************************************************************/
+/* Function : _asn1_set_down                                      */
+/* Description: sets the field DOWN in a NODE_ASN element.        */
+/* Parameters:                                                    */
+/*   node: element pointer.                                       */
+/*   down: pointer to a NODE_ASN element that you want be pointed */
+/*          by NODE.                                              */
+/* Return: pointer to *NODE.                                      */
+/******************************************************************/
+inline static ASN1_TYPE
+_asn1_set_down (ASN1_TYPE node, ASN1_TYPE down)
+{
+  if (node == NULL)
+    return node;
+  node->down = down;
+  if (down)
+    down->left = node;
+  return node;
+}
+
+/******************************************************************/
+/* Function : _asn1_get_down                                      */
+/* Description: returns the element pointed by the DOWN field of  */
+/*              a NODE_ASN element.                               */
+/* Parameters:                                                    */
+/*   node: NODE_ASN element pointer.                              */
+/* Return: field DOWN of NODE.                                    */
+/******************************************************************/
+inline static ASN1_TYPE
+_asn1_get_down (ASN1_TYPE node)
+{
+  if (node == NULL)
+    return NULL;
+  return node->down;
+}
+
+/******************************************************************/
+/* Function : _asn1_get_name                                      */
+/* Description: returns the name of a NODE_ASN element.           */
+/* Parameters:                                                    */
+/*   node: NODE_ASN element pointer.                              */
+/* Return: a null terminated string.                              */
+/******************************************************************/
+inline static char *
+_asn1_get_name (ASN1_TYPE node)
+{
+  if (node == NULL)
+    return NULL;
+  return node->name;
+}
+
+/******************************************************************/
+/* Function : _asn1_mod_type                                      */
+/* Description: change the field TYPE of an NODE_ASN element.     */
+/*              The new value is the old one | (bitwise or) the   */
+/*              paramener VALUE.                                  */
+/* Parameters:                                                    */
+/*   node: NODE_ASN element pointer.                              */
+/*   value: the integer value that must be or-ed with the current */
+/*          value of field TYPE.                                  */
+/* Return: NODE pointer.                                          */
+/******************************************************************/
+inline static ASN1_TYPE
+_asn1_mod_type (ASN1_TYPE node, unsigned int value)
+{
+  if (node == NULL)
+    return node;
+  node->type |= value;
+  return node;
+}
+
 #endif
diff --git a/lib/structure.c b/lib/structure.c
index 41cebe4..93da56c 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -104,7 +104,7 @@ _asn1_create_static_structure (ASN1_TYPE pointer, char *output_file_name,
     {
       fprintf (file, "  { ");
 
-      if (p->name)
+      if (p->name[0] != 0)
 	fprintf (file, "\"%s\", ", p->name);
       else
 	fprintf (file, "NULL, ");
@@ -391,48 +391,37 @@ _asn1_copy_structure3 (ASN1_TYPE source_node)
     {
       if (move != UP)
 	{
-	  if (p_s->name)
+	  if (p_s->name[0] != 0)
 	    _asn1_set_name (p_d, p_s->name);
 	  if (p_s->value)
 	    _asn1_set_value (p_d, p_s->value, p_s->value_len);
-	  move = DOWN;
-	}
-      else
-	move = RIGHT;
-
-      if (move == DOWN)
-	{
 	  if (p_s->down)
 	    {
 	      p_s = p_s->down;
 	      p_d_prev = p_d;
 	      p_d = _asn1_add_node_only (p_s->type);
 	      _asn1_set_down (p_d_prev, p_d);
+	      continue;
 	    }
-	  else
-	    move = RIGHT;
 	}
 
       if (p_s == source_node)
-	break;
+        break;
 
-      if (move == RIGHT)
-	{
-	  if (p_s->right)
-	    {
-	      p_s = p_s->right;
-	      p_d_prev = p_d;
-	      p_d = _asn1_add_node_only (p_s->type);
-	      _asn1_set_right (p_d_prev, p_d);
-	    }
-	  else
+      if (p_s->right)
+        {
+	    move = RIGHT;
+	    p_s = p_s->right;
+	    p_d_prev = p_d;
+	    p_d = _asn1_add_node_only (p_s->type);
+	    _asn1_set_right (p_d_prev, p_d);
+        }
+      else
+        {
 	    move = UP;
-	}
-      if (move == UP)
-	{
-	  p_s = _asn1_find_up (p_s);
-	  p_d = _asn1_find_up (p_d);
-	}
+	    p_s = _asn1_find_up (p_s);
+	    p_d = _asn1_find_up (p_d);
+        }
     }
   while (p_s != source_node);
 
@@ -719,7 +708,7 @@ asn1_print_structure (FILE * out, ASN1_TYPE structure, const char *name,
 	  for (k = 0; k < indent; k++)
 	    fprintf (out, " ");
 	  fprintf (out, "name:");
-	  if (p->name)
+	  if (p->name[0] != 0)
 	    fprintf (out, "%s  ", p->name);
 	  else
 	    fprintf (out, "NULL  ");
@@ -736,7 +725,7 @@ asn1_print_structure (FILE * out, ASN1_TYPE structure, const char *name,
 	      for (k = 0; k < indent; k++)
 		fprintf (out, " ");
 	      fprintf (out, "name:");
-	      if (p->name)
+	      if (p->name[0] != 0)
 		fprintf (out, "%s  ", p->name);
 	      else
 		fprintf (out, "NULL  ");
@@ -1078,7 +1067,7 @@ asn1_number_of_elements (ASN1_TYPE element, const char *name, int *num)
 
   while (p)
     {
-      if ((p->name) && (p->name[0] == '?'))
+      if (p->name[0] == '?')
 	(*num)++;
       p = p->right;
     }
diff --git a/maint.mk b/maint.mk
index 11cb6a6..4627bc5 100644
--- a/maint.mk
+++ b/maint.mk
@@ -61,7 +61,7 @@ endif
 # (i.e., with no $(srcdir) prefix), this definition is careful to
 # remove any $(srcdir) prefix, and to restore what it removes.
 _sc_excl = \
-  $(if $(exclude_file_name_regexp--$@),$(exclude_file_name_regexp--$@),^$$)
+  $(or $(exclude_file_name_regexp--$@),^$$)
 VC_LIST_EXCEPT = \
   $(VC_LIST) | sed 's|^$(_dot_escaped_srcdir)/||' \
 	| if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \
@@ -187,9 +187,11 @@ syntax-check: $(local-check)
 #
 #  in_vc_files | in_files
 #
-#     grep-E-style regexp denoting the files to check.  If no files
-#     are specified the default are all the files that are under
-#     version control.
+#     grep-E-style regexp selecting the files to check.  For in_vc_files,
+#     the regexp is used to select matching files from the list of all
+#     version-controlled files; for in_files, it's from the names printed
+#     by "find $(srcdir)".  When neither is specified, use all files that
+#     are under version control.
 #
 #  containing | non_containing
 #
@@ -261,7 +263,7 @@ define _sc_search_regexp
    : Filter by file name;						\
    if test -n "$$in_files"; then					\
      files=$$(find $(srcdir) | grep -E "$$in_files"			\
-              | grep -Ev '$(exclude_file_name_regexp--$@)');		\
+              | grep -Ev '$(_sc_excl)');				\
    else									\
      files=$$($(VC_LIST_EXCEPT));					\
      if test -n "$$in_vc_files"; then					\
@@ -329,7 +331,7 @@ sp_ = strcmp *\(.+\)
 sc_prohibit_strcmp:
 	@prohibit='! *strcmp *\(|\<$(sp_) *[!=]=|[!=]= *$(sp_)'		\
 	exclude=':# *define STRN?EQ\('					\
-	halt='$(ME): replace strcmp calls above with STREQ/STRNEQ'	\
+	halt='replace strcmp calls above with STREQ/STRNEQ'		\
 	  $(_sc_search_regexp)
 
 # Really.  You don't want to use this function.
@@ -351,8 +353,9 @@ sc_prohibit_strncpy:
 #  | xargs --no-run-if-empty \
 #      perl -pi -e 's/(^|[^.])\b(exit ?)\(0\)/$1$2(EXIT_SUCCESS)/'
 sc_prohibit_magic_number_exit:
-	@prohibit='(^|[^.])\<(usage|exit) ?\([0-9]|\<error ?\([1-9][0-9]*,'	\
-	halt='use EXIT_* values rather than magic number'			\
+	@prohibit='(^|[^.])\<(usage|exit|error) ?\(-?[0-9]+[,)]'	\
+	exclude='error ?\((0,|[^,]*)'					\
+	halt='use EXIT_* values rather than magic number'		\
 	  $(_sc_search_regexp)
 
 # Using EXIT_SUCCESS as the first argument to error is misleading,
@@ -741,7 +744,7 @@ _gl_translatable_diag_func_re ?= error
 sc_unmarked_diagnostics:
 	@prohibit='\<$(_gl_translatable_diag_func_re) *\([^"]*"[^"]*[a-z]{3}' \
 	exclude='(_|ngettext ?)\('					\
-	halt='$(ME): found unmarked diagnostic(s)'			\
+	halt='found unmarked diagnostic(s)'				\
 	  $(_sc_search_regexp)
 
 # Avoid useless parentheses like those in this example:
@@ -775,6 +778,11 @@ sc_prohibit_always_true_header_tests:
 	'  with the corresponding gnulib module, they are always true')	\
 	  $(_sc_search_regexp)
 
+sc_prohibit_defined_have_decl_tests:
+	@prohibit='#[	 ]*if(n?def|.*\<defined)\>[	 (]+HAVE_DECL_'	\
+	halt='HAVE_DECL macros are always defined'			\
+	  $(_sc_search_regexp)
+
 # ==================================================================
 gl_other_headers_ ?= \
   intprops.h	\
@@ -1012,7 +1020,7 @@ sc_redundant_const:
 sc_const_long_option:
 	@prohibit='^ *static.*struct option '				\
 	exclude='const struct option|struct option const'		\
-	halt='$(ME): add "const" to the above declarations'		\
+	halt='add "const" to the above declarations'			\
 	  $(_sc_search_regexp)
 
 NEWS_hash =								\
@@ -1059,7 +1067,7 @@ sc_makefile_at_at_check:
 	  && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || :
 
 news-check: NEWS
-	if sed -n $(news-check-lines-spec)p $(srcdir)/NEWS		\
+	$(AM_V_GEN)if sed -n $(news-check-lines-spec)p $<		\
 	    | grep -E $(news-check-regexp) >/dev/null; then		\
 	  :;								\
 	else								\
@@ -1115,7 +1123,7 @@ sc_po_check:
 # Sometimes it is useful to change the PATH environment variable
 # in Makefiles.  When doing so, it's better not to use the Unix-centric
 # path separator of ':', but rather the automake-provided '$(PATH_SEPARATOR)'.
-msg = '$(ME): Do not use ":" above; use $$(PATH_SEPARATOR) instead'
+msg = 'Do not use ":" above; use $$(PATH_SEPARATOR) instead'
 sc_makefile_path_separator_check:
 	@prohibit='PATH[=].*:'						\
 	in_vc_files='akefile|\.mk$$'					\
@@ -1214,16 +1222,25 @@ sc_prohibit_path_max_allocation:
 
 sc_vulnerable_makefile_CVE-2009-4029:
 	@prohibit='perm -777 -exec chmod a\+rwx|chmod 777 \$$\(distdir\)' \
-	in_files=$$(find $(srcdir) -name Makefile.in)			\
+	in_files='(^|/)Makefile\.in$$'					\
 	halt=$$(printf '%s\n'						\
 	  'the above files are vulnerable; beware of running'		\
 	  '  "make dist*" rules, and upgrade to fixed automake'		\
 	  '  see http://bugzilla.redhat.com/542609 for details')	\
 	  $(_sc_search_regexp)
 
+sc_vulnerable_makefile_CVE-2012-3386:
+	@prohibit='chmod a\+w \$$\(distdir\)'				\
+	in_files='(^|/)Makefile\.in$$'					\
+	halt=$$(printf '%s\n'						\
+	  'the above files are vulnerable; beware of running'		\
+	  '  "make distcheck", and upgrade to fixed automake'		\
+	  '  see http://bugzilla.redhat.com/CVE-2012-3386 for details')	\
+	  $(_sc_search_regexp)
+
 vc-diff-check:
-	(unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || :
-	if test -s vc-diffs; then				\
+	$(AM_V_GEN)(unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || :
+	$(AM_V_at)if test -s vc-diffs; then			\
 	  cat vc-diffs;						\
 	  echo "Some files are locally modified:" 1>&2;		\
 	  exit 1;						\
@@ -1239,10 +1256,11 @@ bootstrap-tools ?= autoconf,automake,gnulib
 
 # If it's not already specified, derive the GPG key ID from
 # the signed tag we've just applied to mark this release.
-gpg_key_ID ?= \
-  $$(git cat-file tag v$(VERSION) \
-     | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
-     | awk '/^\[GNUPG:\] ERRSIG / {print $3; exit}')
+gpg_key_ID ?=								\
+  $$(cd $(srcdir)							\
+     && git cat-file tag v$(VERSION)					\
+        | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null	\
+        | awk '/^\[GNUPG:\] ERRSIG / {print $$3; exit}')
 
 translation_project_ ?= coordinator@translationproject.org
 
@@ -1261,13 +1279,14 @@ else
 endif
 
 announcement: NEWS ChangeLog $(rel-files)
-	@$(srcdir)/$(_build-aux)/announce-gen				\
+	$(AM_V_GEN)$(srcdir)/$(_build-aux)/announce-gen			\
 	    --mail-headers='$(announcement_mail_headers_)'		\
 	    --release-type=$(RELEASE_TYPE)				\
 	    --package=$(PACKAGE)					\
 	    --prev=$(PREV_VERSION)					\
 	    --curr=$(VERSION)						\
 	    --gpg-key-id=$(gpg_key_ID)					\
+	    --srcdir=$(srcdir)						\
 	    --news=$(srcdir)/NEWS					\
 	    --bootstrap-tools=$(bootstrap-tools)			\
 	    $$(case ,$(bootstrap-tools), in (*,gnulib,*)		\
@@ -1275,6 +1294,12 @@ announcement: NEWS ChangeLog $(rel-files)
 	    --no-print-checksums					\
 	    $(addprefix --url-dir=, $(url_dir_list))
 
+.PHONY: release-commit
+release-commit:
+	$(AM_V_GEN)cd $(srcdir)				\
+	  && $(_build-aux)/do-release-commit-and-tag	\
+	       -C $(abs_builddir) $(RELEASE)
+
 ## ---------------- ##
 ## Updating files.  ##
 ## ---------------- ##
@@ -1302,7 +1327,7 @@ endef
 
 .PHONY: no-submodule-changes
 no-submodule-changes:
-	if test -d $(srcdir)/.git; then					\
+	$(AM_V_GEN)if test -d $(srcdir)/.git; then			\
 	  diff=$$(cd $(srcdir) && git submodule -q foreach		\
 		  git diff-index --name-only HEAD)			\
 	    || exit 1;							\
@@ -1341,16 +1366,16 @@ check: $(gl_public_submodule_commit)
 .PHONY: alpha beta stable
 ALL_RECURSIVE_TARGETS += alpha beta stable
 alpha beta stable: $(local-check) writable-files $(submodule-checks)
-	test $@ = stable						\
+	$(AM_V_GEN)test $@ = stable					\
 	  && { echo $(VERSION) | grep -E '^[0-9]+(\.[0-9]+)+$$'		\
 	       || { echo "invalid version string: $(VERSION)" 1>&2; exit 1;};}\
 	  || :
-	$(MAKE) vc-diff-check
-	$(MAKE) news-check
-	$(MAKE) distcheck
-	$(MAKE) dist
-	$(MAKE) $(release-prep-hook) RELEASE_TYPE=$@
-	$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
+	$(AM_V_at)$(MAKE) vc-diff-check
+	$(AM_V_at)$(MAKE) news-check
+	$(AM_V_at)$(MAKE) distcheck
+	$(AM_V_at)$(MAKE) dist
+	$(AM_V_at)$(MAKE) $(release-prep-hook) RELEASE_TYPE=$@
+	$(AM_V_at)$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
 
 # Override this in cfg.mk if you follow different procedures.
 release-prep-hook ?= release-prep
@@ -1358,19 +1383,21 @@ release-prep-hook ?= release-prep
 gl_noteworthy_news_ = * Noteworthy changes in release ?.? (????-??-??) [?]
 .PHONY: release-prep
 release-prep:
-	case $$RELEASE_TYPE in alpha|beta|stable) ;; \
+	$(AM_V_GEN)case $$RELEASE_TYPE in alpha|beta|stable) ;; \
 	  *) echo "invalid RELEASE_TYPE: $$RELEASE_TYPE" 1>&2; exit 1;; esac
-	$(MAKE) --no-print-directory -s announcement > ~/announce-$(my_distdir)
-	if test -d $(release_archive_dir); then			\
+	$(AM_V_at)$(MAKE) --no-print-directory -s announcement \
+	  > ~/announce-$(my_distdir)
+	$(AM_V_at)if test -d $(release_archive_dir); then	\
 	  ln $(rel-files) $(release_archive_dir);		\
 	  chmod a-w $(rel-files);				\
 	fi
-	echo $(VERSION) > $(prev_version_file)
-	$(MAKE) update-NEWS-hash
-	perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' NEWS
-	$(emit-commit-log) > .ci-msg
-	$(VC) commit -F .ci-msg -a
-	rm .ci-msg
+	$(AM_V_at)echo $(VERSION) > $(prev_version_file)
+	$(AM_V_at)$(MAKE) update-NEWS-hash
+	$(AM_V_at)perl -pi						\
+	  -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"'	\
+	  $(srcdir)/NEWS
+	$(AM_V_at)msg=$$($(emit-commit-log)) || exit 1;		\
+	cd $(srcdir) && $(VC) commit -m "$$msg" -a
 
 # Override this with e.g., -s $(srcdir)/some_other_name.texi
 # if the default $(PACKAGE)-derived name doesn't apply.
@@ -1378,14 +1405,20 @@ gendocs_options_ ?=
 
 .PHONY: web-manual
 web-manual:
-	@test -z "$(manual_title)" \
+	$(AM_V_GEN)test -z "$(manual_title)" \
 	  && { echo define manual_title in cfg.mk 1>&2; exit 1; } || :
-	@cd '$(srcdir)/doc'; \
+	$(AM_V_at)cd '$(srcdir)/doc'; \
 	  $(SHELL) ../$(_build-aux)/gendocs.sh $(gendocs_options_) \
 	     -o '$(abs_builddir)/doc/manual' \
 	     --email $(PACKAGE_BUGREPORT) $(PACKAGE) \
 	    "$(PACKAGE_NAME) - $(manual_title)"
-	@echo " *** Upload the doc/manual directory to web-cvs."
+	$(AM_V_at)echo " *** Upload the doc/manual directory to web-cvs."
+
+.PHONY: web-manual-update
+web-manual-update:
+	$(AM_V_GEN)cd $(srcdir) \
+	  && $(_build-aux)/gnu-web-doc-update -C $(abs_builddir)
+
 
 # Code Coverage
 
@@ -1411,6 +1444,31 @@ gen-coverage:
 
 coverage: init-coverage build-coverage gen-coverage
 
+# Some projects carry local adjustments for gnulib modules via patches in
+# a gnulib patch directory whose default name is gl/ (defined in bootstrap
+# via local_gl_dir=gl).  Those patches become stale as the originals evolve
+# in gnulib.  Use this rule to refresh any stale patches.  It applies each
+# patch to the original in $(gnulib_dir) and uses the temporary result to
+# generate a fuzz-free .diff file.  If you customize the name of your local
+# gnulib patch directory via bootstrap.conf, this rule detects that name.
+# Run this from a non-VPATH (i.e., srcdir) build directory.
+.PHONY: refresh-gnulib-patches
+refresh-gnulib-patches:
+	gl=gl;								\
+	if test -f bootstrap.conf; then					\
+	  t=$$(perl -lne '/^\s*local_gl_dir=(\S+)/ and $$d=$$1;'	\
+	       -e 'END{defined $$d and print $$d}' bootstrap.conf);	\
+	  test -n "$$t" && gl=$$t;					\
+	fi;								\
+	for diff in $$(cd $$gl; git ls-files | grep '\.diff$$'); do	\
+	  b=$$(printf %s "$$diff"|sed 's/\.diff$$//');			\
+	  VERSION_CONTROL=none						\
+	    patch "$(gnulib_dir)/$$b" "$$gl/$$diff" || exit 1;		\
+	  ( cd $(gnulib_dir) || exit 1;					\
+	    git diff "$$b" > "../$$gl/$$diff";				\
+	    git checkout $$b ) || exit 1;				\
+	done
+
 # Update gettext files.
 PACKAGE ?= $(shell basename $(PWD))
 PO_DOMAIN ?= $(PACKAGE)
@@ -1444,7 +1502,7 @@ update-copyright-env ?=
 # in the file .x-update-copyright.
 .PHONY: update-copyright
 update-copyright:
-	grep -l -w Copyright                                             \
+	$(AM_V_GEN)grep -l -w Copyright                                  \
 	  $$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \
 	  | $(update-copyright-env) xargs $(srcdir)/$(_build-aux)/$@
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 3080c40..b0ed06e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,4 +27,4 @@ asn1Parser_SOURCES = asn1Parser.c
 
 asn1Coding_SOURCES = asn1Coding.c
 
-asn1Decoding_SOURCES = asn1Decoding.c
+asn1Decoding_SOURCES = asn1Decoding.c benchmark.c benchmark.h
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
index 2fa97a9..c46e43b 100644
--- a/src/asn1Decoding.c
+++ b/src/asn1Decoding.c
@@ -31,6 +31,9 @@
 #include <progname.h>
 #include <version-etc.h>
 #include <read-file.h>
+#include "benchmark.h"
+
+static int decode(ASN1_TYPE definitions, const char* typeName, void* der, int der_len, int benchmark);
 
 /* This feature is available in gcc versions 2.5 and later.  */
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
@@ -74,11 +77,10 @@ main (int argc, char *argv[])
   char *inputFileDerName = NULL;
   char *typeName = NULL;
   ASN1_TYPE definitions = ASN1_TYPE_EMPTY;
-  ASN1_TYPE structure = ASN1_TYPE_EMPTY;
   char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
   int asn1_result = ASN1_SUCCESS;
   unsigned char *der;
-  int der_len = 0;
+  int der_len = 0, benchmark = 0;
   /* FILE *outputFile; */
 
   set_program_name (argv[0]);
@@ -89,7 +91,7 @@ main (int argc, char *argv[])
     {
 
       option_result =
-	getopt_long (argc, argv, "hvc", long_options, &option_index);
+	getopt_long (argc, argv, "hbvc", long_options, &option_index);
 
       if (option_result == -1)
 	break;
@@ -99,6 +101,9 @@ main (int argc, char *argv[])
 	case 'h':		/* HELP */
 	  usage (EXIT_SUCCESS);
 	  break;
+        case 'b':
+          benchmark = 1;
+          break;
 	case 'v':		/* VERSION */
 	  version_etc (stdout, program_name, PACKAGE, VERSION,
 		       "Fabio Fiorina", NULL);
@@ -195,50 +200,17 @@ main (int argc, char *argv[])
      fclose(inputFile);
    */
 
-  asn1_result = asn1_create_element (definitions, typeName, &structure);
-
-  /* asn1_print_structure(stdout,structure,"",ASN1_PRINT_ALL); */
-
-
-  if (asn1_result != ASN1_SUCCESS)
+  if (decode( definitions, typeName, der, der_len, benchmark) != ASN1_SUCCESS)
     {
-      printf ("Structure creation: %s\n", asn1_strerror (asn1_result));
       asn1_delete_structure (&definitions);
-
       free (inputFileAsnName);
       free (inputFileDerName);
       free (typeName);
       free (der);
       exit (1);
     }
-
-  asn1_result =
-    asn1_der_decoding (&structure, der, der_len, errorDescription);
-  printf ("\nDecoding: %s\n", asn1_strerror (asn1_result));
-  if (asn1_result != ASN1_SUCCESS)
-    printf ("asn1Decoding: %s\n", errorDescription);
-
-  printf ("\nDECODING RESULT:\n");
-  asn1_print_structure (stdout, structure, "", ASN1_PRINT_NAME_TYPE_VALUE);
-
- /*****************************************/
-  /* ONLY FOR TEST                         */
- /*****************************************/
-  /*
-     der_len=10000;
-     option_index=0;
-     asn1_result=asn1_read_value(structure,"?2.content",der,&der_len);
-     outputFile=fopen("encryptedData.p12","w");
-     while(der_len>0){
-     fprintf(outputFile,"%c",der[option_index]);
-     der_len--;
-     option_index++;
-     }
-     fclose(outputFile);
-   */
-
+  
   asn1_delete_structure (&definitions);
-  asn1_delete_structure (&structure);
 
   free (der);
 
@@ -251,3 +223,65 @@ main (int argc, char *argv[])
 
   exit (0);
 }
+
+static int simple_decode(ASN1_TYPE definitions, const char* typeName, void* der, int der_len, int benchmark)
+{
+  
+int asn1_result;
+ASN1_TYPE structure = ASN1_TYPE_EMPTY;
+char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
+
+  asn1_result = asn1_create_element (definitions, typeName, &structure);
+
+  /* asn1_print_structure(stdout,structure,"",ASN1_PRINT_ALL); */
+
+
+  if (asn1_result != ASN1_SUCCESS)
+    {
+      printf ("Structure creation: %s\n", asn1_strerror (asn1_result));
+      asn1_delete_structure (&structure);
+      return asn1_result;
+    }
+
+  asn1_result =
+    asn1_der_decoding (&structure, der, der_len, errorDescription);
+
+  if (!benchmark) printf ("\nDecoding: %s\n", asn1_strerror (asn1_result));
+  if (asn1_result != ASN1_SUCCESS)
+    {
+      printf ("asn1Decoding: %s\n", errorDescription);
+      asn1_delete_structure (&structure);
+      return asn1_result;
+    }
+
+  if (!benchmark)
+    {
+      printf ("\nDECODING RESULT:\n");
+      asn1_print_structure (stdout, structure, "", ASN1_PRINT_NAME_TYPE_VALUE);
+    }
+  asn1_delete_structure (&structure);
+  return ASN1_SUCCESS;
+}
+
+static int decode(ASN1_TYPE definitions, const char* typeName, void* der, int der_len, int benchmark)
+{
+struct benchmark_st st;
+
+  if (benchmark == 0) return simple_decode(definitions, typeName, der, der_len, benchmark);
+  else
+    {
+      start_benchmark(&st);
+      
+      do
+        {
+          simple_decode(definitions, typeName, der, der_len, benchmark);
+          st.size++;
+        }
+      while(benchmark_must_finish == 0);
+      
+      stop_benchmark(&st, "structures");
+      fprintf(stdout, "\n");
+    
+    }
+  return ASN1_SUCCESS;
+}
diff --git a/src/benchmark.c b/src/benchmark.c
new file mode 100644
index 0000000..8ab3f8c
--- /dev/null
+++ b/src/benchmark.c
@@ -0,0 +1,157 @@
+/*
+ * Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ *
+ * This file is part of GnuTLS.
+ *
+ * GnuTLS 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.
+ *
+ * GnuTLS 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 <config.h>
+#include <stdio.h>
+#include <string.h>
+#include <signal.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+#include "benchmark.h"
+
+int benchmark_must_finish = 0;
+
+#if defined(_WIN32)
+#include <windows.h>
+DWORD WINAPI
+alarm_handler (LPVOID lpParameter)
+{
+  HANDLE wtimer = *((HANDLE *) lpParameter);
+  WaitForSingleObject (wtimer, INFINITE);
+  benchmark_must_finish = 1;
+  return 0;
+}
+#else
+static void
+alarm_handler (int signo)
+{
+  benchmark_must_finish = 1;
+}
+#endif
+
+static void
+value2human (unsigned long bytes, double time, double *data, double *speed,
+             char *metric)
+{
+  if (bytes > 1000 && bytes < 1000 * 1000)
+    {
+      *data = ((double) bytes) / 1000;
+      *speed = *data / time;
+      strcpy (metric, "KB");
+      return;
+    }
+  else if (bytes >= 1000 * 1000 && bytes < 1000 * 1000 * 1000)
+    {
+      *data = ((double) bytes) / (1000 * 1000);
+      *speed = *data / time;
+      strcpy (metric, "MB");
+      return;
+    }
+  else if (bytes >= 1000 * 1000 * 1000)
+    {
+      *data = ((double) bytes) / (1000 * 1000 * 1000);
+      *speed = *data / time;
+      strcpy (metric, "GB");
+      return;
+    }
+  else
+    {
+      *data = (double) bytes;
+      *speed = *data / time;
+      strcpy (metric, "bytes");
+      return;
+    }
+}
+
+void start_benchmark(struct benchmark_st * st)
+{
+  memset(st, 0, sizeof(*st));
+#ifndef _WIN32
+  st->old_handler = signal (SIGALRM, alarm_handler);
+#endif
+  gettime (&st->start);
+  benchmark_must_finish = 0;
+
+#if defined(_WIN32)
+  st->wtimer = CreateWaitableTimer (NULL, TRUE, NULL);
+  if (st->wtimer == NULL)
+    {
+      fprintf (stderr, "error: CreateWaitableTimer %u\n", GetLastError ());
+      exit(1);
+    }
+  st->wthread = CreateThread (NULL, 0, alarm_handler, &st->wtimer, 0, NULL);
+  if (st->wthread == NULL)
+    {
+      fprintf (stderr, "error: CreateThread %u\n", GetLastError ());
+      exit(1);
+    }
+  st->alarm_timeout.QuadPart = (2) * 10000000;
+  if (SetWaitableTimer (st->wtimer, &st->alarm_timeout, 0, NULL, NULL, FALSE) == 0)
+    {
+      fprintf (stderr, "error: SetWaitableTimer %u\n", GetLastError ());
+      exit(1);
+    }
+#else
+  alarm (2);
+#endif
+  
+}
+
+/* returns the elapsed time */
+double stop_benchmark(struct benchmark_st * st, const char* metric)
+{
+  double secs;
+  unsigned long lsecs;
+  struct timespec stop;
+  double dspeed, ddata;
+  char imetric[16];
+
+#if defined(_WIN32)
+  if (st->wtimer != NULL)
+    CloseHandle (st->wtimer);
+  if (st->wthread != NULL)
+    CloseHandle (st->wthread);
+#else
+  signal(SIGALRM, st->old_handler);
+#endif
+
+  gettime (&stop);
+
+  lsecs = (stop.tv_sec * 1000 + stop.tv_nsec / (1000 * 1000) -
+          (st->start.tv_sec * 1000 + st->start.tv_nsec / (1000 * 1000)));
+  secs = lsecs;
+  secs /= 1000;
+
+  if (metric == NULL)
+    { /* assume bytes/sec */
+      value2human (st->size, secs, &ddata, &dspeed, imetric);
+      printf ("  Processed %.2f %s in %.2f secs: ", ddata, imetric, secs);
+      printf ("%.2f %s/sec\n", dspeed, imetric);
+    }
+  else
+    {
+      ddata = (double) st->size;
+      dspeed = ddata / secs;
+      printf ("  Processed %.2f %s in %.2f secs: ", ddata, metric, secs);
+      printf ("%.2f %s/sec\n", dspeed, metric);
+    }
+
+  return secs;
+}
diff --git a/src/benchmark.h b/src/benchmark.h
new file mode 100644
index 0000000..e7d3386
--- /dev/null
+++ b/src/benchmark.h
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ *
+ * This file is part of GnuTLS.
+ *
+ * GnuTLS 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.
+ *
+ * GnuTLS 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 <sys/time.h>
+#include <time.h>
+#include <signal.h>
+#if defined(_WIN32)
+# include <windows.h>
+#endif
+#include "timespec.h"           /* gnulib gettime */
+
+typedef void (*sighandler_t)(int);
+
+struct benchmark_st
+{
+  struct timespec start;
+  unsigned long size;
+  sighandler_t old_handler;
+#if defined(_WIN32)
+  HANDLE wtimer;
+  HANDLE wthread;
+  LARGE_INTEGER alarm_timeout;
+#endif
+};
+
+extern int benchmark_must_finish;
+
+void start_benchmark(struct benchmark_st * st);
+double stop_benchmark(struct benchmark_st * st, const char* metric);
+
+inline static unsigned int
+timespec_sub_ms (struct timespec *a, struct timespec *b)
+{
+  return (a->tv_sec * 1000 + a->tv_nsec / (1000 * 1000) -
+          (b->tv_sec * 1000 + b->tv_nsec / (1000 * 1000)));
+}
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 61c8737..a7f8336 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -27,7 +27,7 @@ EXTRA_DIST = Test_parser.asn Test_tree.asn Test_tree_asn1_tab.c	\
 
 # For crlf.
 EXTRA_DIST += crlf.cer
-dist_check_SCRIPTS = crlf
+dist_check_SCRIPTS = crlf benchmark
 
 dist_check_SCRIPTS += threadsafety
 
diff --git a/tests/crlf b/tests/benchmark
similarity index 96%
copy from tests/crlf
copy to tests/benchmark
index be92dcf..17a006a 100755
--- a/tests/crlf
+++ b/tests/benchmark
@@ -30,6 +30,6 @@ ASN1DECODING=../src/asn1Decoding${EXEEXT}
 # Windows).
 
 $ASN1DECODING \
-    $srcdir/../examples/pkix.asn \
+    -b $srcdir/../examples/pkix.asn \
     $srcdir/crlf.cer \
     PKIX1Implicit88.Certificate


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Wed Sep 12 16:45:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TBtoe-0001ET-HL
	for mharc-libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:45:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51367)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtob-00015z-Hz
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:45:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtoa-0001uA-1k
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:45:41 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:50411)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtoZ-0001u4-UT
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 16:45:39 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBtoZ-0000PC-ER
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 20:45:39 +0000
Date: Wed, 12 Sep 2012 20:45:39 +0000
Message-Id: <E1TBtoZ-0000PC-ER@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-13-g92abf0c
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: b86e75de8bc3a35620f069b7b00d680284d86eb5
X-Git-Newrev: 92abf0cd89b512514a18754f913fb8d828ed5c8b
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Sep 2012 20:45:43 -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=92abf0cd89b512514a18754f913fb8d828ed5c8b

The branch, master has been updated
       via  92abf0cd89b512514a18754f913fb8d828ed5c8b (commit)
      from  b86e75de8bc3a35620f069b7b00d680284d86eb5 (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 92abf0cd89b512514a18754f913fb8d828ed5c8b
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 22:32:20 2012 +0200

    Added asn1_read_node_value()

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

Summary of changes:
 NEWS             |    3 ++-
 lib/element.c    |   19 +++++++++++++++++++
 lib/libtasn1.h   |   13 ++++++++++++-
 lib/libtasn1.map |    7 +++++++
 4 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 7cc4a10..cb4dfd9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
-* Noteworthy changes in release 2.14 (unreleased) [stable]
+* Noteworthy changes in release 3.0 (unreleased) [stable]
+- Added asn1_read_node_value() to obtain a node's value.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
 - Updated fix for DER decoding issue to not depend on specific compilers.
diff --git a/lib/element.c b/lib/element.c
index 70b272b..a0f841f 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -976,3 +976,22 @@ asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
 
   return ASN1_SUCCESS;
 }
+
+/**
+ * asn1_read_node_value:
+ * @node: pointer to a node.
+ * @data: a point to a node_data_struct
+ *
+ * Returns the value a data node inside a ASN1_TYPE structure.
+ * The data returned should be handled as constant values.
+ *
+ * Returns: %ASN1_SUCCESS if the node exists.
+ **/
+asn1_retCode asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
+{
+  data->name = node->name;
+  data->value = node->value;
+  data->value_len = node->value_len;
+  
+  return ASN1_SUCCESS;
+}
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 30154ae..01030df 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -112,7 +112,6 @@ extern "C"
 
   typedef node_asn *ASN1_TYPE;
 
-
   /* maximum number of characters of a name */
   /* inside a file with ASN1 definitons     */
 #define ASN1_MAX_NAME_SIZE 128
@@ -130,6 +129,15 @@ extern "C"
   };
   typedef struct static_struct_asn ASN1_ARRAY_TYPE;
 
+  struct node_data_struct
+  {
+    const char *name;		/* Node name */
+    const void *value;		/* Node value */
+    unsigned int value_len;     /* Node value size */
+    unsigned int vals[4];	/* reserved for future use */
+  };
+  typedef struct node_data_struct ASN1_DATA_NODE;
+
   /***********************************/
   /*  Fixed constants                */
   /***********************************/
@@ -179,6 +187,9 @@ extern "C"
 		     void *ivalue, int *len);
 
   extern ASN1_API asn1_retCode
+    asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data);
+
+  extern ASN1_API asn1_retCode
     asn1_number_of_elements (ASN1_TYPE element, const char *name, int *num);
 
   extern ASN1_API asn1_retCode
diff --git a/lib/libtasn1.map b/lib/libtasn1.map
index 1906cd5..f4c3253 100644
--- a/lib/libtasn1.map
+++ b/lib/libtasn1.map
@@ -57,3 +57,10 @@ LIBTASN1_0_3
   local:
     *;
 };
+
+LIBTASN1_0_4
+{
+  global:
+    asn1_read_node_value;
+} LIBTASN1_0_3;
+


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Wed Sep 12 17:15:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TBuHK-0008Vp-De
	for mharc-libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:15:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44642)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuHG-0008UI-Uw
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:15:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuHB-00035F-VI
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:15:18 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:55940)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuHB-000335-Fk
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:15:13 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuHB-0002hr-4F
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 21:15:13 +0000
Date: Wed, 12 Sep 2012 21:15:13 +0000
Message-Id: <E1TBuHB-0002hr-4F@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-14-ge80a9f2
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 92abf0cd89b512514a18754f913fb8d828ed5c8b
X-Git-Newrev: e80a9f2df71640e988f02cac76e2a2e7ae79d9c9
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Sep 2012 21:15:21 -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=e80a9f2df71640e988f02cac76e2a2e7ae79d9c9

The branch, master has been updated
       via  e80a9f2df71640e988f02cac76e2a2e7ae79d9c9 (commit)
      from  92abf0cd89b512514a18754f913fb8d828ed5c8b (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 e80a9f2df71640e988f02cac76e2a2e7ae79d9c9
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 23:15:02 2012 +0200

    Node type field is now included in ASN1_DATA_NODE.

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

Summary of changes:
 lib/element.c  |    1 +
 lib/int.h      |   44 ++++++++++++++++++++++----------------------
 lib/libtasn1.h |   27 ++++++++++++++++++++++++++-
 3 files changed, 49 insertions(+), 23 deletions(-)

diff --git a/lib/element.c b/lib/element.c
index a0f841f..ea8eb48 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -992,6 +992,7 @@ asn1_retCode asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
   data->name = node->name;
   data->value = node->value;
   data->value_len = node->value_len;
+  data->type = type_field(node->type);
   
   return ASN1_SUCCESS;
 }
diff --git a/lib/int.h b/lib/int.h
index f01cb4d..4d13d12 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -83,28 +83,28 @@ struct node_asn_struct
 #define type_field(x)     (x&0xFF)
 
 /* List of constants for field type of typedef node_asn  */
-#define TYPE_CONSTANT       1
-#define TYPE_IDENTIFIER     2
-#define TYPE_INTEGER        3
-#define TYPE_BOOLEAN        4
-#define TYPE_SEQUENCE       5
-#define TYPE_BIT_STRING     6
-#define TYPE_OCTET_STRING   7
-#define TYPE_TAG            8
-#define TYPE_DEFAULT        9
-#define TYPE_SIZE          10
-#define TYPE_SEQUENCE_OF   11
-#define TYPE_OBJECT_ID     12
-#define TYPE_ANY           13
-#define TYPE_SET           14
-#define TYPE_SET_OF        15
-#define TYPE_DEFINITIONS   16
-#define TYPE_TIME          17
-#define TYPE_CHOICE        18
-#define TYPE_IMPORTS       19
-#define TYPE_NULL          20
-#define TYPE_ENUMERATED    21
-#define TYPE_GENERALSTRING 27
+#define TYPE_CONSTANT      ASN1_ETYPE_CONSTANT
+#define TYPE_IDENTIFIER    ASN1_ETYPE_IDENTIFIER
+#define TYPE_INTEGER       ASN1_ETYPE_INTEGER
+#define TYPE_BOOLEAN       ASN1_ETYPE_BOOLEAN
+#define TYPE_SEQUENCE      ASN1_ETYPE_SEQUENCE
+#define TYPE_BIT_STRING    ASN1_ETYPE_BIT_STRING
+#define TYPE_OCTET_STRING  ASN1_ETYPE_OCTET_STRING
+#define TYPE_TAG           ASN1_ETYPE_TAG
+#define TYPE_DEFAULT       ASN1_ETYPE_DEFAULT
+#define TYPE_SIZE          ASN1_ETYPE_SIZE
+#define TYPE_SEQUENCE_OF   ASN1_ETYPE_SEQUENCE_OF
+#define TYPE_OBJECT_ID     ASN1_ETYPE_OBJECT_ID
+#define TYPE_ANY           ASN1_ETYPE_ANY
+#define TYPE_SET           ASN1_ETYPE_SET
+#define TYPE_SET_OF        ASN1_ETYPE_SET_OF
+#define TYPE_DEFINITIONS   ASN1_ETYPE_DEFINITIONS
+#define TYPE_TIME          ASN1_ETYPE_TIME
+#define TYPE_CHOICE        ASN1_ETYPE_CHOICE
+#define TYPE_IMPORTS       ASN1_ETYPE_IMPORTS
+#define TYPE_NULL          ASN1_ETYPE_NULL
+#define TYPE_ENUMERATED    ASN1_ETYPE_ENUMERATED
+#define TYPE_GENERALSTRING ASN1_ETYPE_GENERALSTRING
 
 
 /***********************************************************************/
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 01030df..3373828 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -129,12 +129,37 @@ extern "C"
   };
   typedef struct static_struct_asn ASN1_ARRAY_TYPE;
 
+/* List of constants for field type of typedef node_asn  */
+#define ASN1_ETYPE_CONSTANT       1
+#define ASN1_ETYPE_IDENTIFIER     2
+#define ASN1_ETYPE_INTEGER        3
+#define ASN1_ETYPE_BOOLEAN        4
+#define ASN1_ETYPE_SEQUENCE       5
+#define ASN1_ETYPE_BIT_STRING     6
+#define ASN1_ETYPE_OCTET_STRING   7
+#define ASN1_ETYPE_TAG            8
+#define ASN1_ETYPE_DEFAULT        9
+#define ASN1_ETYPE_SIZE          10
+#define ASN1_ETYPE_SEQUENCE_OF   11
+#define ASN1_ETYPE_OBJECT_ID     12
+#define ASN1_ETYPE_ANY           13
+#define ASN1_ETYPE_SET           14
+#define ASN1_ETYPE_SET_OF        15
+#define ASN1_ETYPE_DEFINITIONS   16
+#define ASN1_ETYPE_TIME          17
+#define ASN1_ETYPE_CHOICE        18
+#define ASN1_ETYPE_IMPORTS       19
+#define ASN1_ETYPE_NULL          20
+#define ASN1_ETYPE_ENUMERATED    21
+#define ASN1_ETYPE_GENERALSTRING 27
+
   struct node_data_struct
   {
     const char *name;		/* Node name */
     const void *value;		/* Node value */
     unsigned int value_len;     /* Node value size */
-    unsigned int vals[4];	/* reserved for future use */
+    unsigned int type;		/* Node value type (ASN1_ETYPE_*) */
+    unsigned int vals[3];	/* reserved for future use */
   };
   typedef struct node_data_struct ASN1_DATA_NODE;
 


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Wed Sep 12 17:23:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TBuOs-0002Ks-0x
	for mharc-libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:23:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38620)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuOp-0002Kd-I6
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:23:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuOn-0005hH-W3
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:23:07 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:51558)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuOn-0005hC-SO
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 17:23:05 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TBuOm-00030B-RB
	for libtasn1-commit@gnu.org; Wed, 12 Sep 2012 21:23:05 +0000
Date: Wed, 12 Sep 2012 21:23:04 +0000
Message-Id: <E1TBuOm-00030B-RB@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-16-g55f4c0d
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e80a9f2df71640e988f02cac76e2a2e7ae79d9c9
X-Git-Newrev: 55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Sep 2012 21:23:08 -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=55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54

The branch, master has been updated
       via  55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54 (commit)
       via  204ce1d9a909d46c9bad2f6462f952b2edf9cefe (commit)
      from  e80a9f2df71640e988f02cac76e2a2e7ae79d9c9 (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 55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 12 23:21:33 2012 +0200

    Drop long-time deprecated functions.

commit 204ce1d9a909d46c9bad2f6462f952b2edf9cefe
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 12 23:20:33 2012 +0200

    Bump years.

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

Summary of changes:
 doc/Makefile.am           |    2 +-
 doc/reference/Makefile.am |    3 +--
 lib/errors.c              |   41 -----------------------------------------
 lib/libtasn1.h            |   31 -------------------------------
 4 files changed, 2 insertions(+), 75 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 90c7ae1..4cba357 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -167,7 +167,7 @@ doit:
 			-sourceversion $(VERSION) \
 			-include libtasn1.h \
 			-seeinfo $(PACKAGE) -verbatimcopying \
-			-copyright "2006-2011 Free Software Foundation, Inc." \
+			-copyright "2006-2012 Free Software Foundation, Inc." \
 			-function $$i \
 			$(GDOC_SRC) > man/$$i.3 && \
 		$(srcdir)/gdoc -texinfo -function $$i \
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
index f1e0bce..c3a1def 100644
--- a/doc/reference/Makefile.am
+++ b/doc/reference/Makefile.am
@@ -29,8 +29,7 @@ SCANGOBJ_OPTIONS=
 
 # Extra options to supply to gtkdoc-scan.
 # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
-SCAN_OPTIONS=--ignore-decorators=ASN1_API \
-	--deprecated-guards=ASN1_DISABLE_DEPRECATED
+SCAN_OPTIONS=--ignore-decorators=ASN1_API
 
 # Extra options to supply to gtkdoc-mkdb.
 # e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
diff --git a/lib/errors.c b/lib/errors.c
index 76611d8..8b6e5e4 100644
--- a/lib/errors.c
+++ b/lib/errors.c
@@ -100,44 +100,3 @@ asn1_strerror (asn1_retCode error)
 
   return NULL;
 }
-
-#ifndef ASN1_DISABLE_DEPRECATED
-
-/* Compatibility mappings to preserve ABI. */
-
-/**
- * libtasn1_perror:
- * @error: is an error returned by a libtasn1 function.
- *
- * Prints a string to stderr with a description of an error.  This
- * function is like perror(). The only difference is that it accepts
- * an error returned by a libtasn1 function.
- *
- * Deprecated: Use asn1_perror() instead.
- **/
-void
-libtasn1_perror (asn1_retCode error)
-{
-  asn1_perror (error);
-}
-
-/**
- * libtasn1_strerror:
- * @error: is an error returned by a libtasn1 function.
- *
- * Returns a string with a description of an error.  This function is
- * similar to strerror.  The only difference is that it accepts an
- * error (number) returned by a libtasn1 function.
- *
- * Returns: Pointer to static zero-terminated string describing error
- *   code.
- *
- * Deprecated: Use asn1_strerror() instead.
- **/
-const char *
-libtasn1_strerror (asn1_retCode error)
-{
-  return asn1_strerror (error);
-}
-
-#endif
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 3373828..e67fdfe 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -301,37 +301,6 @@ extern "C"
     asn1_copy_node (ASN1_TYPE dst, const char *dst_name,
 		    ASN1_TYPE src, const char *src_name);
 
-  /* Deprecated stuff. */
-
-#ifndef ASN1_DISABLE_DEPRECATED
-
-#define LIBTASN1_VERSION ASN1_VERSION
-
-#ifndef MAX_NAME_SIZE
-# define MAX_NAME_SIZE ASN1_MAX_NAME_SIZE
-#endif
-
-#ifndef MAX_ERROR_DESCRIPTION_SIZE
-# define MAX_ERROR_DESCRIPTION_SIZE ASN1_MAX_ERROR_DESCRIPTION_SIZE
-#endif
-
-#ifndef __attribute__
-  /* This feature is available in gcc versions 2.5 and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
-#  define __attribute__(Spec)	/* empty */
-# endif
-#endif
-
-  /* Use asn1_strerror instead. */
-  extern ASN1_API const char *libtasn1_strerror (asn1_retCode error)
-    __attribute__ ((deprecated));
-
-  /* Use asn1_perror instead. */
-  extern ASN1_API void
-    libtasn1_perror (asn1_retCode error) __attribute__ ((deprecated));
-
-#endif
-
 #ifdef __cplusplus
 }
 #endif


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 02:14:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TC2hB-0004km-JW
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 02:14:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58448)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TC2h6-0004jS-MW
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 02:14:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TC2h2-000215-RV
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 02:14:32 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:38992)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TC2h2-000211-O5
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 02:14:28 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TC2h2-0007qC-9k
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 06:14:28 +0000
Date: Thu, 13 Sep 2012 06:14:28 +0000
Message-Id: <E1TC2h2-0007qC-9k@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	created. libtasn1_2_13-4-gc5226f5
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: 0000000000000000000000000000000000000000
X-Git-Newrev: c5226f57807bf53fd3aff5ce2f36d62f2e9b7553
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2012 06:14:36 -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=c5226f57807bf53fd3aff5ce2f36d62f2e9b7553

The branch, libtasn1_2_x has been created
        at  c5226f57807bf53fd3aff5ce2f36d62f2e9b7553 (commit)

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 16:20:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCFtp-0004ja-PK
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:20:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55422)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFtk-0004iN-58
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:20:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFtf-0005zd-Ow
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:20:28 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:44272)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFtf-0005z0-JH
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:20:23 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFtc-0001yU-7Q
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:20:21 +0000
Date: Thu, 13 Sep 2012 20:20:20 +0000
Message-Id: <E1TCFtc-0001yU-7Q@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-21-g95da366
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54
X-Git-Newrev: 95da3661c7e758352893636508d776652aa5a991
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2012 20:20: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=95da3661c7e758352893636508d776652aa5a991

The branch, master has been updated
       via  95da3661c7e758352893636508d776652aa5a991 (commit)
       via  3a85aab40b2a866b8ba7d0b32c74e4f3fe13ba7e (commit)
       via  4b8b8ccb3e96c4de1409f9ce701b870a53a2b720 (commit)
       via  94976d02fb6f3205ae2a05dfa6069bedfe1b547a (commit)
       via  580e59b33c1db66523210406fa3d9d0e0733013d (commit)
      from  55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54 (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 95da3661c7e758352893636508d776652aa5a991
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:38:49 2012 +0200

    _asn1_add_node_only -> _asn1_add_single_node

commit 3a85aab40b2a866b8ba7d0b32c74e4f3fe13ba7e
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:34:46 2012 +0200

    _asn1_add_node -> _asn1_add_static_node

commit 4b8b8ccb3e96c4de1409f9ce701b870a53a2b720
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:30:33 2012 +0200

    Eliminated _asn1_malloc, _asn1_free and _asn_calloc.

commit 94976d02fb6f3205ae2a05dfa6069bedfe1b547a
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:11:19 2012 +0200

    reduced maximum name size

commit 580e59b33c1db66523210406fa3d9d0e0733013d
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:10:35 2012 +0200

    no need to reserve.

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

Summary of changes:
 lib/ASN1.c       |   96 +++++++++++++++++++++++++-------------------------
 lib/ASN1.y       |  104 +++++++++++++++++++++++++++---------------------------
 lib/coding.c     |   20 +++++-----
 lib/element.c    |   32 +++++++----------
 lib/int.h        |    5 ---
 lib/libtasn1.h   |    3 +-
 lib/parser_aux.c |   32 ++++++++--------
 lib/parser_aux.h |    2 +-
 lib/structure.c  |   28 +++++++--------
 lib/structure.h  |    2 +-
 10 files changed, 155 insertions(+), 169 deletions(-)

diff --git a/lib/ASN1.c b/lib/ASN1.c
index d9b9133..5289e6a 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -1669,7 +1669,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 121 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_DEFINITIONS|(yyvsp[(3) - (8)].constant));
+    {(yyval.node)=_asn1_add_static_node(TYPE_DEFINITIONS|(yyvsp[(3) - (8)].constant));
                     _asn1_set_name((yyval.node),_asn1_get_name((yyvsp[(1) - (8)].node)));
                     _asn1_set_name((yyvsp[(1) - (8)].node),"");
                     _asn1_set_right((yyvsp[(1) - (8)].node),(yyvsp[(7) - (8)].node));
@@ -1747,7 +1747,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 151 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CONSTANT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CONSTANT);
                                        _asn1_set_value((yyval.node),(yyvsp[(2) - (3)].str),strlen((yyvsp[(2) - (3)].str))+1);}
     break;
 
@@ -1755,7 +1755,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 153 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CONSTANT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CONSTANT);
 	                               _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
                                        _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
     break;
@@ -1779,7 +1779,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 163 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CONSTANT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CONSTANT);
                                    _asn1_set_value((yyval.node),(yyvsp[(1) - (1)].str),strlen((yyvsp[(1) - (1)].str))+1);}
     break;
 
@@ -1787,7 +1787,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 165 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CONSTANT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CONSTANT);
 	                            _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
                                     _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
     break;
@@ -1832,7 +1832,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 180 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_TAG);
+    {(yyval.node)=_asn1_add_static_node(TYPE_TAG);
                             _asn1_set_value((yyval.node),(yyvsp[(2) - (3)].str),strlen((yyvsp[(2) - (3)].str))+1);}
     break;
 
@@ -1840,7 +1840,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 182 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_TAG | (yyvsp[(2) - (4)].constant));
+    {(yyval.node)=_asn1_add_static_node(TYPE_TAG | (yyvsp[(2) - (4)].constant));
                                 _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
     break;
 
@@ -1869,7 +1869,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 191 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_DEFAULT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_DEFAULT);
                                        _asn1_set_value((yyval.node),(yyvsp[(2) - (2)].str),strlen((yyvsp[(2) - (2)].str))+1);}
     break;
 
@@ -1877,28 +1877,28 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 193 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_DEFAULT|CONST_TRUE);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_DEFAULT|CONST_TRUE);}
     break;
 
   case 30:
 
 /* Line 1806 of yacc.c  */
 #line 194 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_DEFAULT|CONST_FALSE);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_DEFAULT|CONST_FALSE);}
     break;
 
   case 33:
 
 /* Line 1806 of yacc.c  */
 #line 203 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_INTEGER);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_INTEGER);}
     break;
 
   case 34:
 
 /* Line 1806 of yacc.c  */
 #line 204 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_INTEGER|CONST_LIST);
+    {(yyval.node)=_asn1_add_static_node(TYPE_INTEGER|CONST_LIST);
 	                                 _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
     break;
 
@@ -1906,15 +1906,15 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 206 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_INTEGER);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_INTEGER);}
     break;
 
   case 36:
 
 /* Line 1806 of yacc.c  */
 #line 208 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_INTEGER|CONST_MIN_MAX);
-                                         _asn1_set_down((yyval.node),_asn1_add_node(TYPE_SIZE));
+    {(yyval.node)=_asn1_add_static_node(TYPE_INTEGER|CONST_MIN_MAX);
+                                         _asn1_set_down((yyval.node),_asn1_add_static_node(TYPE_SIZE));
                                          _asn1_set_value(_asn1_get_down((yyval.node)),(yyvsp[(6) - (7)].str),strlen((yyvsp[(6) - (7)].str))+1);
                                          _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[(3) - (7)].str));}
     break;
@@ -1923,28 +1923,28 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 214 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_BOOLEAN);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_BOOLEAN);}
     break;
 
   case 38:
 
 /* Line 1806 of yacc.c  */
 #line 217 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_TIME|CONST_UTC);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_TIME|CONST_UTC);}
     break;
 
   case 39:
 
 /* Line 1806 of yacc.c  */
 #line 218 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_TIME|CONST_GENERALIZED);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_TIME|CONST_GENERALIZED);}
     break;
 
   case 40:
 
 /* Line 1806 of yacc.c  */
 #line 221 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SIZE|CONST_1_PARAM);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SIZE|CONST_1_PARAM);
 	                              _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
     break;
 
@@ -1952,7 +1952,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 224 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SIZE|CONST_MIN_MAX);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SIZE|CONST_MIN_MAX);
 	                              _asn1_set_value((yyval.node),(yyvsp[(3) - (7)].str),strlen((yyvsp[(3) - (7)].str))+1);
                                       _asn1_set_name((yyval.node),(yyvsp[(6) - (7)].str));}
     break;
@@ -1975,14 +1975,14 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 233 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_GENERALSTRING);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_GENERALSTRING);}
     break;
 
   case 45:
 
 /* Line 1806 of yacc.c  */
 #line 234 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_GENERALSTRING|CONST_SIZE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_GENERALSTRING|CONST_SIZE);
 					  _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
     break;
 
@@ -1990,14 +1990,14 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 238 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OCTET_STRING);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_OCTET_STRING);}
     break;
 
   case 47:
 
 /* Line 1806 of yacc.c  */
 #line 239 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OCTET_STRING|CONST_SIZE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_OCTET_STRING|CONST_SIZE);
                                            _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
     break;
 
@@ -2005,7 +2005,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 243 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CONSTANT);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CONSTANT);
 	                           _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
                                     _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
     break;
@@ -2029,21 +2029,21 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 253 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_BIT_STRING);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_BIT_STRING);}
     break;
 
   case 52:
 
 /* Line 1806 of yacc.c  */
 #line 254 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_BIT_STRING|CONST_SIZE);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_BIT_STRING|CONST_SIZE);}
     break;
 
   case 53:
 
 /* Line 1806 of yacc.c  */
 #line 256 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_BIT_STRING|CONST_LIST);
+    {(yyval.node)=_asn1_add_static_node(TYPE_BIT_STRING|CONST_LIST);
                                 _asn1_set_down((yyval.node),(yyvsp[(4) - (5)].node));}
     break;
 
@@ -2051,7 +2051,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 261 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_ENUMERATED|CONST_LIST);
+    {(yyval.node)=_asn1_add_static_node(TYPE_ENUMERATED|CONST_LIST);
                                 _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
     break;
 
@@ -2059,14 +2059,14 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 266 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OBJECT_ID);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_OBJECT_ID);}
     break;
 
   case 56:
 
 /* Line 1806 of yacc.c  */
 #line 269 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_IDENTIFIER);
+    {(yyval.node)=_asn1_add_static_node(TYPE_IDENTIFIER);
                                        _asn1_set_value((yyval.node),(yyvsp[(1) - (1)].str),strlen((yyvsp[(1) - (1)].str))+1);}
     break;
 
@@ -2074,7 +2074,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 271 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_IDENTIFIER|CONST_SIZE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_IDENTIFIER|CONST_SIZE);
                                        _asn1_set_value((yyval.node),(yyvsp[(1) - (2)].str),strlen((yyvsp[(1) - (2)].str))+1);
                                        _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
     break;
@@ -2160,7 +2160,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 286 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_NULL);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_NULL);}
     break;
 
   case 71:
@@ -2228,7 +2228,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 310 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SEQUENCE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SEQUENCE);
                                               _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
     break;
 
@@ -2236,7 +2236,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 312 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SEQUENCE_OF);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SEQUENCE_OF);
                                               _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
     break;
 
@@ -2244,7 +2244,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 314 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SEQUENCE_OF|CONST_SIZE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SEQUENCE_OF|CONST_SIZE);
                                             _asn1_set_right((yyvsp[(2) - (4)].node),(yyvsp[(4) - (4)].node));
                                             _asn1_set_down((yyval.node),(yyvsp[(2) - (4)].node));}
     break;
@@ -2253,7 +2253,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 319 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SET);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SET);
                                      _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
     break;
 
@@ -2261,7 +2261,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 321 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SET_OF);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SET_OF);
                                      _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
     break;
 
@@ -2269,7 +2269,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 323 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_SET_OF|CONST_SIZE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_SET_OF|CONST_SIZE);
                                        _asn1_set_right((yyvsp[(2) - (4)].node),(yyvsp[(4) - (4)].node));
                                        _asn1_set_down((yyval.node),(yyvsp[(2) - (4)].node));}
     break;
@@ -2278,7 +2278,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 328 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_CHOICE);
+    {(yyval.node)=_asn1_add_static_node(TYPE_CHOICE);
                                              _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
     break;
 
@@ -2286,15 +2286,15 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 332 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_ANY);}
+    {(yyval.node)=_asn1_add_static_node(TYPE_ANY);}
     break;
 
   case 87:
 
 /* Line 1806 of yacc.c  */
 #line 333 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_ANY|CONST_DEFINED_BY);
-                                        _asn1_set_down((yyval.node),_asn1_add_node(TYPE_CONSTANT));
+    {(yyval.node)=_asn1_add_static_node(TYPE_ANY|CONST_DEFINED_BY);
+                                        _asn1_set_down((yyval.node),_asn1_add_static_node(TYPE_CONSTANT));
 	                                _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[(4) - (4)].str));}
     break;
 
@@ -2309,7 +2309,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 342 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OBJECT_ID|CONST_ASSIGN);
+    {(yyval.node)=_asn1_add_static_node(TYPE_OBJECT_ID|CONST_ASSIGN);
                          _asn1_set_name((yyval.node),(yyvsp[(1) - (7)].str));
                          _asn1_set_down((yyval.node),(yyvsp[(6) - (7)].node));}
     break;
@@ -2318,7 +2318,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 346 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OBJECT_ID|CONST_ASSIGN|CONST_1_PARAM);
+    {(yyval.node)=_asn1_add_static_node(TYPE_OBJECT_ID|CONST_ASSIGN|CONST_1_PARAM);
                          _asn1_set_name((yyval.node),(yyvsp[(1) - (6)].str));
                          _asn1_set_value((yyval.node),(yyvsp[(2) - (6)].str),strlen((yyvsp[(2) - (6)].str))+1);
                          _asn1_set_down((yyval.node),(yyvsp[(5) - (6)].node));}
@@ -2328,7 +2328,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 351 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_INTEGER|CONST_ASSIGN);
+    {(yyval.node)=_asn1_add_static_node(TYPE_INTEGER|CONST_ASSIGN);
                          _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
                          _asn1_set_value((yyval.node),(yyvsp[(4) - (4)].str),strlen((yyvsp[(4) - (4)].str))+1);}
     break;
@@ -2366,7 +2366,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 365 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OBJECT_ID);
+    {(yyval.node)=_asn1_add_static_node(TYPE_OBJECT_ID);
                                                           _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));
                                                           _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));}
     break;
@@ -2375,7 +2375,7 @@ yyreduce:
 
 /* Line 1806 of yacc.c  */
 #line 368 "ASN1.y"
-    {(yyval.node)=_asn1_add_node(TYPE_OBJECT_ID);
+    {(yyval.node)=_asn1_add_static_node(TYPE_OBJECT_ID);
                                                           _asn1_set_name((yyval.node),(yyvsp[(1) - (3)].str));}
     break;
 
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 80a68cc..0611e85 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -118,7 +118,7 @@ static int _asn1_yylex(void);
 definitions:   definitions_id
                DEFINITIONS explicit_implicit TAGS "::=" BEGIN  /* imports_def */
                type_constant_list END
-                   {$$=_asn1_add_node(TYPE_DEFINITIONS|$3);
+                   {$$=_asn1_add_static_node(TYPE_DEFINITIONS|$3);
                     _asn1_set_name($$,_asn1_get_name($1));
                     _asn1_set_name($1,"");
                     _asn1_set_right($1,$7);
@@ -148,9 +148,9 @@ pos_neg_identifier :  pos_neg_num    {strcpy($$,$1);}
                     | IDENTIFIER     {strcpy($$,$1);}
 ;
 
-constant: '(' pos_neg_num ')'         {$$=_asn1_add_node(TYPE_CONSTANT);
+constant: '(' pos_neg_num ')'         {$$=_asn1_add_static_node(TYPE_CONSTANT);
                                        _asn1_set_value($$,$2,strlen($2)+1);}
-        | IDENTIFIER'('pos_neg_num')' {$$=_asn1_add_node(TYPE_CONSTANT);
+        | IDENTIFIER'('pos_neg_num')' {$$=_asn1_add_static_node(TYPE_CONSTANT);
 	                               _asn1_set_name($$,$1);
                                        _asn1_set_value($$,$3,strlen($3)+1);}
 ;
@@ -160,9 +160,9 @@ constant_list:  constant                   {$$=$1;}
                                             _asn1_set_right(_asn1_get_last_right($1),$3);}
 ;
 
-obj_constant:  num_identifier     {$$=_asn1_add_node(TYPE_CONSTANT);
+obj_constant:  num_identifier     {$$=_asn1_add_static_node(TYPE_CONSTANT);
                                    _asn1_set_value($$,$1,strlen($1)+1);}
-             | IDENTIFIER'('NUM')' {$$=_asn1_add_node(TYPE_CONSTANT);
+             | IDENTIFIER'('NUM')' {$$=_asn1_add_static_node(TYPE_CONSTANT);
 	                            _asn1_set_name($$,$1);
                                     _asn1_set_value($$,$3,strlen($3)+1);}
 ;
@@ -177,9 +177,9 @@ class :  UNIVERSAL    {$$=CONST_UNIVERSAL;}
        | APPLICATION  {$$=CONST_APPLICATION;}
 ;
 
-tag_type :  '[' NUM ']'    {$$=_asn1_add_node(TYPE_TAG);
+tag_type :  '[' NUM ']'    {$$=_asn1_add_static_node(TYPE_TAG);
                             _asn1_set_value($$,$2,strlen($2)+1);}
-          | '[' class NUM ']'  {$$=_asn1_add_node(TYPE_TAG | $2);
+          | '[' class NUM ']'  {$$=_asn1_add_static_node(TYPE_TAG | $2);
                                 _asn1_set_value($$,$3,strlen($3)+1);}
 ;
 
@@ -188,10 +188,10 @@ tag :  tag_type           {$$=$1;}
      | tag_type IMPLICIT  {$$=_asn1_mod_type($1,CONST_IMPLICIT);}
 ;
 
-default :  DEFAULT pos_neg_identifier {$$=_asn1_add_node(TYPE_DEFAULT);
+default :  DEFAULT pos_neg_identifier {$$=_asn1_add_static_node(TYPE_DEFAULT);
                                        _asn1_set_value($$,$2,strlen($2)+1);}
-         | DEFAULT ASN1_TRUE           {$$=_asn1_add_node(TYPE_DEFAULT|CONST_TRUE);}
-         | DEFAULT ASN1_FALSE          {$$=_asn1_add_node(TYPE_DEFAULT|CONST_FALSE);}
+         | DEFAULT ASN1_TRUE           {$$=_asn1_add_static_node(TYPE_DEFAULT|CONST_TRUE);}
+         | DEFAULT ASN1_FALSE          {$$=_asn1_add_static_node(TYPE_DEFAULT|CONST_FALSE);}
 ;
 
 
@@ -200,28 +200,28 @@ pos_neg_list:  pos_neg_num
 ;
 
 
-integer_def: INTEGER                    {$$=_asn1_add_node(TYPE_INTEGER);}
-           | INTEGER'{'constant_list'}' {$$=_asn1_add_node(TYPE_INTEGER|CONST_LIST);
+integer_def: INTEGER                    {$$=_asn1_add_static_node(TYPE_INTEGER);}
+           | INTEGER'{'constant_list'}' {$$=_asn1_add_static_node(TYPE_INTEGER|CONST_LIST);
 	                                 _asn1_set_down($$,$3);}
-           | integer_def'(' pos_neg_list ')' {$$=_asn1_add_node(TYPE_INTEGER);}
+           | integer_def'(' pos_neg_list ')' {$$=_asn1_add_static_node(TYPE_INTEGER);}
            | integer_def'('num_identifier'.''.'num_identifier')'
-                                        {$$=_asn1_add_node(TYPE_INTEGER|CONST_MIN_MAX);
-                                         _asn1_set_down($$,_asn1_add_node(TYPE_SIZE));
+                                        {$$=_asn1_add_static_node(TYPE_INTEGER|CONST_MIN_MAX);
+                                         _asn1_set_down($$,_asn1_add_static_node(TYPE_SIZE));
                                          _asn1_set_value(_asn1_get_down($$),$6,strlen($6)+1);
                                          _asn1_set_name(_asn1_get_down($$),$3);}
 ;
 
-boolean_def: BOOLEAN   {$$=_asn1_add_node(TYPE_BOOLEAN);}
+boolean_def: BOOLEAN   {$$=_asn1_add_static_node(TYPE_BOOLEAN);}
 ;
 
-Time:   UTCTime          {$$=_asn1_add_node(TYPE_TIME|CONST_UTC);}
-      | GeneralizedTime  {$$=_asn1_add_node(TYPE_TIME|CONST_GENERALIZED);}
+Time:   UTCTime          {$$=_asn1_add_static_node(TYPE_TIME|CONST_UTC);}
+      | GeneralizedTime  {$$=_asn1_add_static_node(TYPE_TIME|CONST_GENERALIZED);}
 ;
 
-size_def2: SIZE'('num_identifier')'  {$$=_asn1_add_node(TYPE_SIZE|CONST_1_PARAM);
+size_def2: SIZE'('num_identifier')'  {$$=_asn1_add_static_node(TYPE_SIZE|CONST_1_PARAM);
 	                              _asn1_set_value($$,$3,strlen($3)+1);}
         | SIZE'('num_identifier'.''.'num_identifier')'
-                                     {$$=_asn1_add_node(TYPE_SIZE|CONST_MIN_MAX);
+                                     {$$=_asn1_add_static_node(TYPE_SIZE|CONST_MIN_MAX);
 	                              _asn1_set_value($$,$3,strlen($3)+1);
                                       _asn1_set_name($$,$6);}
 ;
@@ -230,17 +230,17 @@ size_def:   size_def2          {$$=$1;}
           | '(' size_def2 ')'  {$$=$2;}
 ;
 
-generalstring_def: GeneralString {$$=_asn1_add_node(TYPE_GENERALSTRING);}
-                | GeneralString size_def {$$=_asn1_add_node(TYPE_GENERALSTRING|CONST_SIZE);
+generalstring_def: GeneralString {$$=_asn1_add_static_node(TYPE_GENERALSTRING);}
+                | GeneralString size_def {$$=_asn1_add_static_node(TYPE_GENERALSTRING|CONST_SIZE);
 					  _asn1_set_down($$,$2);}
 ;
 
-octet_string_def : OCTET STRING           {$$=_asn1_add_node(TYPE_OCTET_STRING);}
-                 | OCTET STRING size_def  {$$=_asn1_add_node(TYPE_OCTET_STRING|CONST_SIZE);
+octet_string_def : OCTET STRING           {$$=_asn1_add_static_node(TYPE_OCTET_STRING);}
+                 | OCTET STRING size_def  {$$=_asn1_add_static_node(TYPE_OCTET_STRING|CONST_SIZE);
                                            _asn1_set_down($$,$3);}
 ;
 
-bit_element :  IDENTIFIER'('NUM')' {$$=_asn1_add_node(TYPE_CONSTANT);
+bit_element :  IDENTIFIER'('NUM')' {$$=_asn1_add_static_node(TYPE_CONSTANT);
 	                           _asn1_set_name($$,$1);
                                     _asn1_set_value($$,$3,strlen($3)+1);}
 ;
@@ -250,25 +250,25 @@ bit_element_list :  bit_element   {$$=$1;}
                                                        _asn1_set_right(_asn1_get_last_right($1),$3);}
 ;
 
-bit_string_def : BIT STRING    {$$=_asn1_add_node(TYPE_BIT_STRING);}
-               | BIT STRING size_def {$$=_asn1_add_node(TYPE_BIT_STRING|CONST_SIZE);}
+bit_string_def : BIT STRING    {$$=_asn1_add_static_node(TYPE_BIT_STRING);}
+               | BIT STRING size_def {$$=_asn1_add_static_node(TYPE_BIT_STRING|CONST_SIZE);}
                | BIT STRING'{'bit_element_list'}'
-                               {$$=_asn1_add_node(TYPE_BIT_STRING|CONST_LIST);
+                               {$$=_asn1_add_static_node(TYPE_BIT_STRING|CONST_LIST);
                                 _asn1_set_down($$,$4);}
 ;
 
 enumerated_def : ENUMERATED'{'bit_element_list'}'
-                               {$$=_asn1_add_node(TYPE_ENUMERATED|CONST_LIST);
+                               {$$=_asn1_add_static_node(TYPE_ENUMERATED|CONST_LIST);
                                 _asn1_set_down($$,$3);}
 ;
 
 
-object_def :  OBJECT STR_IDENTIFIER {$$=_asn1_add_node(TYPE_OBJECT_ID);}
+object_def :  OBJECT STR_IDENTIFIER {$$=_asn1_add_static_node(TYPE_OBJECT_ID);}
 ;
 
-type_assig_right: IDENTIFIER          {$$=_asn1_add_node(TYPE_IDENTIFIER);
+type_assig_right: IDENTIFIER          {$$=_asn1_add_static_node(TYPE_IDENTIFIER);
                                        _asn1_set_value($$,$1,strlen($1)+1);}
-                | IDENTIFIER size_def {$$=_asn1_add_node(TYPE_IDENTIFIER|CONST_SIZE);
+                | IDENTIFIER size_def {$$=_asn1_add_static_node(TYPE_IDENTIFIER|CONST_SIZE);
                                        _asn1_set_value($$,$1,strlen($1)+1);
                                        _asn1_set_down($$,$2);}
                 | integer_def         {$$=$1;}
@@ -283,7 +283,7 @@ type_assig_right: IDENTIFIER          {$$=_asn1_add_node(TYPE_IDENTIFIER);
                 | choise_def          {$$=$1;}
                 | any_def             {$$=$1;}
                 | set_def             {$$=$1;}
-                | TOKEN_NULL          {$$=_asn1_add_node(TYPE_NULL);}
+                | TOKEN_NULL          {$$=_asn1_add_static_node(TYPE_NULL);}
 ;
 
 type_assig_right_tag :   type_assig_right     {$$=$1;}
@@ -307,31 +307,31 @@ type_assig_list : type_assig                   {$$=$1;}
                                                 _asn1_set_right(_asn1_get_last_right($1),$3);}
 ;
 
-sequence_def : SEQUENCE'{'type_assig_list'}' {$$=_asn1_add_node(TYPE_SEQUENCE);
+sequence_def : SEQUENCE'{'type_assig_list'}' {$$=_asn1_add_static_node(TYPE_SEQUENCE);
                                               _asn1_set_down($$,$3);}
-   | SEQUENCE OF type_assig_right            {$$=_asn1_add_node(TYPE_SEQUENCE_OF);
+   | SEQUENCE OF type_assig_right            {$$=_asn1_add_static_node(TYPE_SEQUENCE_OF);
                                               _asn1_set_down($$,$3);}
-   | SEQUENCE size_def OF type_assig_right {$$=_asn1_add_node(TYPE_SEQUENCE_OF|CONST_SIZE);
+   | SEQUENCE size_def OF type_assig_right {$$=_asn1_add_static_node(TYPE_SEQUENCE_OF|CONST_SIZE);
                                             _asn1_set_right($2,$4);
                                             _asn1_set_down($$,$2);}
 ;
 
-set_def :  SET'{'type_assig_list'}' {$$=_asn1_add_node(TYPE_SET);
+set_def :  SET'{'type_assig_list'}' {$$=_asn1_add_static_node(TYPE_SET);
                                      _asn1_set_down($$,$3);}
-   | SET OF type_assig_right        {$$=_asn1_add_node(TYPE_SET_OF);
+   | SET OF type_assig_right        {$$=_asn1_add_static_node(TYPE_SET_OF);
                                      _asn1_set_down($$,$3);}
-   | SET size_def OF type_assig_right {$$=_asn1_add_node(TYPE_SET_OF|CONST_SIZE);
+   | SET size_def OF type_assig_right {$$=_asn1_add_static_node(TYPE_SET_OF|CONST_SIZE);
                                        _asn1_set_right($2,$4);
                                        _asn1_set_down($$,$2);}
 ;
 
-choise_def :   CHOICE'{'type_assig_list'}'  {$$=_asn1_add_node(TYPE_CHOICE);
+choise_def :   CHOICE'{'type_assig_list'}'  {$$=_asn1_add_static_node(TYPE_CHOICE);
                                              _asn1_set_down($$,$3);}
 ;
 
-any_def :  ANY                         {$$=_asn1_add_node(TYPE_ANY);}
-         | ANY DEFINED BY IDENTIFIER   {$$=_asn1_add_node(TYPE_ANY|CONST_DEFINED_BY);
-                                        _asn1_set_down($$,_asn1_add_node(TYPE_CONSTANT));
+any_def :  ANY                         {$$=_asn1_add_static_node(TYPE_ANY);}
+         | ANY DEFINED BY IDENTIFIER   {$$=_asn1_add_static_node(TYPE_ANY|CONST_DEFINED_BY);
+                                        _asn1_set_down($$,_asn1_add_static_node(TYPE_CONSTANT));
 	                                _asn1_set_name(_asn1_get_down($$),$4);}
 ;
 
@@ -339,16 +339,16 @@ type_def : IDENTIFIER "::=" type_assig_right_tag  {$$=_asn1_set_name($3,$1);}
 ;
 
 constant_def :  IDENTIFIER OBJECT STR_IDENTIFIER "::=" '{'obj_constant_list'}'
-                        {$$=_asn1_add_node(TYPE_OBJECT_ID|CONST_ASSIGN);
+                        {$$=_asn1_add_static_node(TYPE_OBJECT_ID|CONST_ASSIGN);
                          _asn1_set_name($$,$1);
                          _asn1_set_down($$,$6);}
               | IDENTIFIER IDENTIFIER "::=" '{' obj_constant_list '}'
-                        {$$=_asn1_add_node(TYPE_OBJECT_ID|CONST_ASSIGN|CONST_1_PARAM);
+                        {$$=_asn1_add_static_node(TYPE_OBJECT_ID|CONST_ASSIGN|CONST_1_PARAM);
                          _asn1_set_name($$,$1);
                          _asn1_set_value($$,$2,strlen($2)+1);
                          _asn1_set_down($$,$5);}
               | IDENTIFIER INTEGER "::=" pos_neg_num
-                        {$$=_asn1_add_node(TYPE_INTEGER|CONST_ASSIGN);
+                        {$$=_asn1_add_static_node(TYPE_INTEGER|CONST_ASSIGN);
                          _asn1_set_name($$,$1);
                          _asn1_set_value($$,$4,strlen($4)+1);}
 ;
@@ -362,27 +362,27 @@ type_constant_list :   type_constant    {$$=$1;}
                                                           _asn1_set_right(_asn1_get_last_right($1),$2);}
 ;
 
-definitions_id  :  IDENTIFIER  '{' obj_constant_list '}' {$$=_asn1_add_node(TYPE_OBJECT_ID);
+definitions_id  :  IDENTIFIER  '{' obj_constant_list '}' {$$=_asn1_add_static_node(TYPE_OBJECT_ID);
                                                           _asn1_set_down($$,$3);
                                                           _asn1_set_name($$,$1);}
-                 | IDENTIFIER  '{' '}'                   {$$=_asn1_add_node(TYPE_OBJECT_ID);
+                 | IDENTIFIER  '{' '}'                   {$$=_asn1_add_static_node(TYPE_OBJECT_ID);
                                                           _asn1_set_name($$,$1);}
 ;
 
 /*
-identifier_list  :  IDENTIFIER  {$$=_asn1_add_node(TYPE_IDENTIFIER);
+identifier_list  :  IDENTIFIER  {$$=_asn1_add_static_node(TYPE_IDENTIFIER);
                                  _asn1_set_name($$,$1);}
                   | identifier_list IDENTIFIER
                                 {$$=$1;
-                                 _asn1_set_right(_asn1_get_last_right($$),_asn1_add_node(TYPE_IDENTIFIER));
+                                 _asn1_set_right(_asn1_get_last_right($$),_asn1_add_static_node(TYPE_IDENTIFIER));
                                  _asn1_set_name(_asn1_get_last_right($$),$2);}
 ;
 
 
 imports_def :    empty   {$$=NULL;}
               | IMPORTS identifier_list FROM IDENTIFIER obj_constant_list
-                        {$$=_asn1_add_node(TYPE_IMPORTS);
-                         _asn1_set_down($$,_asn1_add_node(TYPE_OBJECT_ID));
+                        {$$=_asn1_add_static_node(TYPE_IMPORTS);
+                         _asn1_set_down($$,_asn1_add_static_node(TYPE_OBJECT_ID));
                          _asn1_set_name(_asn1_get_down($$),$4);
                          _asn1_set_down(_asn1_get_down($$),$5);
                          _asn1_set_right($$,$2);}
diff --git a/lib/coding.c b/lib/coding.c
index 307dd40..11f8f48 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -260,7 +260,7 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, int *der_len)
 
   max_len = *der_len;
 
-  temp = _asn1_malloc (str_len + 2);
+  temp = malloc (str_len + 2);
   if (temp == NULL)
     return ASN1_MEM_ALLOC_ERROR;
 
@@ -313,7 +313,7 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, int *der_len)
     }
   *der_len += len_len;
 
-  _asn1_free (temp);
+  free (temp);
 
   if (max_len < (*der_len))
     return ASN1_MEM_ERROR;
@@ -638,7 +638,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, ASN1_TYPE node)
   first = last = NULL;
   while (p)
     {
-      p_vet = (struct vet *) _asn1_malloc (sizeof (struct vet));
+      p_vet = malloc (sizeof (struct vet));
       if (p_vet == NULL)
 	return;
 
@@ -679,7 +679,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, ASN1_TYPE node)
 	  if (p_vet->value > p2_vet->value)
 	    {
 	      /* change position */
-	      temp = (unsigned char *) _asn1_malloc (p_vet->end - counter);
+	      temp = malloc (p_vet->end - counter);
 	      if (temp == NULL)
 		return;
 
@@ -688,7 +688,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, ASN1_TYPE node)
 		      p2_vet->end - p_vet->end);
 	      memcpy (der + counter + p2_vet->end - p_vet->end, temp,
 		      p_vet->end - counter);
-	      _asn1_free (temp);
+	      free (temp);
 
 	      tag = p_vet->value;
 	      p_vet->value = p2_vet->value;
@@ -706,7 +706,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, ASN1_TYPE node)
 	p_vet->prev->next = NULL;
       else
 	first = NULL;
-      _asn1_free (p_vet);
+      free (p_vet);
       p_vet = first;
     }
 }
@@ -752,7 +752,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, ASN1_TYPE node)
   first = last = NULL;
   while (p)
     {
-      p_vet = (struct vet *) _asn1_malloc (sizeof (struct vet));
+      p_vet = malloc (sizeof (struct vet));
       if (p_vet == NULL)
 	return;
 
@@ -817,7 +817,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, ASN1_TYPE node)
 	  if (change == 1)
 	    {
 	      /* change position */
-	      temp = (unsigned char *) _asn1_malloc (p_vet->end - counter);
+	      temp = malloc (p_vet->end - counter);
 	      if (temp == NULL)
 		return;
 
@@ -826,7 +826,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, ASN1_TYPE node)
 		      (p2_vet->end) - (p_vet->end));
 	      memcpy (der + counter + (p2_vet->end) - (p_vet->end), temp,
 		      (p_vet->end) - counter);
-	      _asn1_free (temp);
+	      free (temp);
 
 	      p_vet->end = counter + (p2_vet->end - p_vet->end);
 	    }
@@ -840,7 +840,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, ASN1_TYPE node)
 	p_vet->prev->next = NULL;
       else
 	first = NULL;
-      _asn1_free (p_vet);
+      free (p_vet);
       p_vet = first;
     }
 }
diff --git a/lib/element.c b/lib/element.c
index ea8eb48..2ee4950 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -343,8 +343,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 	{
 	  if ((isdigit (value[0])) || (value[0] == '-'))
 	    {
-	      value_temp =
-		(unsigned char *) _asn1_malloc (SIZEOF_UNSIGNED_LONG_INT);
+	      value_temp = malloc (SIZEOF_UNSIGNED_LONG_INT);
 	      if (value_temp == NULL)
 		return ASN1_MEM_ALLOC_ERROR;
 
@@ -362,9 +361,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 		    {
 		      if (!_asn1_strcmp (p->name, value))
 			{
-			  value_temp =
-			    (unsigned char *)
-			    _asn1_malloc (SIZEOF_UNSIGNED_LONG_INT);
+			  value_temp = malloc (SIZEOF_UNSIGNED_LONG_INT);
 			  if (value_temp == NULL)
 			    return ASN1_MEM_ALLOC_ERROR;
 
@@ -383,7 +380,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 	}
       else
 	{			/* len != 0 */
-	  value_temp = (unsigned char *) _asn1_malloc (len);
+	  value_temp = malloc (len);
 	  if (value_temp == NULL)
 	    return ASN1_MEM_ALLOC_ERROR;
 	  memcpy (value_temp, value, len);
@@ -397,7 +394,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 
       if (negative && (type_field (node->type) == TYPE_ENUMERATED))
 	{
-	  _asn1_free (value_temp);
+	  free (value_temp);
 	  return ASN1_VALUE_NOT_VALID;
 	}
 
@@ -420,11 +417,10 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 	    p = p->right;
 	  if ((isdigit (p->value[0])) || (p->value[0] == '-'))
 	    {
-	      default_temp =
-		(unsigned char *) _asn1_malloc (SIZEOF_UNSIGNED_LONG_INT);
+	      default_temp = malloc (SIZEOF_UNSIGNED_LONG_INT);
 	      if (default_temp == NULL)
 		{
-		  _asn1_free (value_temp);
+		  free (value_temp);
 		  return ASN1_MEM_ALLOC_ERROR;
 		}
 
@@ -435,7 +431,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 	    {			/* is an identifier like v1 */
 	      if (!(node->type & CONST_LIST))
 		{
-		  _asn1_free (value_temp);
+		  free (value_temp);
 		  return ASN1_VALUE_NOT_VALID;
 		}
 	      p2 = node->down;
@@ -445,12 +441,10 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 		    {
 		      if (!_asn1_strcmp (p2->name, p->value))
 			{
-			  default_temp =
-			    (unsigned char *)
-			    _asn1_malloc (SIZEOF_UNSIGNED_LONG_INT);
+			  default_temp = malloc (SIZEOF_UNSIGNED_LONG_INT);
 			  if (default_temp == NULL)
 			    {
-			      _asn1_free (value_temp);
+			      free (value_temp);
 			      return ASN1_MEM_ALLOC_ERROR;
 			    }
 
@@ -465,7 +459,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 		}
 	      if (p2 == NULL)
 		{
-		  _asn1_free (value_temp);
+		  free (value_temp);
 		  return ASN1_VALUE_NOT_VALID;
 		}
 	    }
@@ -481,9 +475,9 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
 	      if (k2 == len2)
 		_asn1_set_value (node, NULL, 0);
 	    }
-	  _asn1_free (default_temp);
+	  free (default_temp);
 	}
-      _asn1_free (value_temp);
+      free (value_temp);
       break;
     case TYPE_OBJECT_ID:
       for (i = 0; i < _asn1_strlen (value); i++)
@@ -562,7 +556,7 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
       if (len == 0)
 	len = _asn1_strlen (value);
       asn1_length_der ((len >> 3) + 2, NULL, &len2);
-      temp = (unsigned char *) _asn1_malloc ((len >> 3) + 2 + len2);
+      temp = malloc ((len >> 3) + 2 + len2);
       if (temp == NULL)
 	return ASN1_MEM_ALLOC_ERROR;
 
diff --git a/lib/int.h b/lib/int.h
index 4d13d12..cabd599 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -57,11 +57,6 @@ struct node_asn_struct
   unsigned char small_value[ASN1_SMALL_VALUE_SIZE];	/* For small values */
 };
 
-#define _asn1_malloc malloc
-#define _asn1_free free
-#define _asn1_calloc calloc
-#define _asn1_realloc realloc
-#define _asn1_strdup strdup
 #define _asn1_strlen(s) strlen((const char *) s)
 #define _asn1_strtol(n,e,b) strtol((const char *) n, e, b)
 #define _asn1_strtoul(n,e,b) strtoul((const char *) n, e, b)
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index e67fdfe..6293e7d 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -114,7 +114,7 @@ extern "C"
 
   /* maximum number of characters of a name */
   /* inside a file with ASN1 definitons     */
-#define ASN1_MAX_NAME_SIZE 128
+#define ASN1_MAX_NAME_SIZE 64
 
 #define ASN1_TYPE_EMPTY  NULL
 
@@ -159,7 +159,6 @@ extern "C"
     const void *value;		/* Node value */
     unsigned int value_len;     /* Node value size */
     unsigned int type;		/* Node value type (ASN1_ETYPE_*) */
-    unsigned int vals[3];	/* reserved for future use */
   };
   typedef struct node_data_struct ASN1_DATA_NODE;
 
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 83de603..1d22951 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -43,7 +43,7 @@ typedef struct list_struct
 list_type *firstElement = NULL;
 
 /******************************************************/
-/* Function : _asn1_add_node                          */
+/* Function : _asn1_add_static_node                   */
 /* Description: creates a new NODE_ASN element and    */
 /* puts it in the list pointed by firstElement.       */
 /* Parameters:                                        */
@@ -52,19 +52,19 @@ list_type *firstElement = NULL;
 /* Return: pointer to the new element.                */
 /******************************************************/
 ASN1_TYPE
-_asn1_add_node (unsigned int type)
+_asn1_add_static_node (unsigned int type)
 {
   list_type *listElement;
   ASN1_TYPE punt;
 
-  punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn_struct));
+  punt = calloc (1, sizeof (struct node_asn_struct));
   if (punt == NULL)
     return NULL;
 
-  listElement = (list_type *) _asn1_malloc (sizeof (list_type));
+  listElement = malloc (sizeof (list_type));
   if (listElement == NULL)
     {
-      _asn1_free (punt);
+      free (punt);
       return NULL;
     }
 
@@ -204,7 +204,7 @@ _asn1_set_value (ASN1_TYPE node, const void *value, unsigned int len)
   if (node->value)
     {
       if (node->value != node->small_value)
-	_asn1_free (node->value);
+	free (node->value);
       node->value = NULL;
       node->value_len = 0;
     }
@@ -218,7 +218,7 @@ _asn1_set_value (ASN1_TYPE node, const void *value, unsigned int len)
     }
   else
     {
-      node->value = _asn1_malloc (len);
+      node->value = malloc (len);
       if (node->value == NULL)
 	return NULL;
     }
@@ -249,7 +249,7 @@ _asn1_set_value_octet (ASN1_TYPE node, const void *value, unsigned int len)
     return node;
 
   asn1_length_der (len, NULL, &len2);
-  temp = (unsigned char *) _asn1_malloc (len + len2);
+  temp = malloc (len + len2);
   if (temp == NULL)
     return NULL;
 
@@ -269,7 +269,7 @@ _asn1_set_value_m (ASN1_TYPE node, void *value, unsigned int len)
   if (node->value)
     {
       if (node->value != node->small_value)
-	_asn1_free (node->value);
+	free (node->value);
       node->value = NULL;
       node->value_len = 0;
     }
@@ -303,7 +303,7 @@ _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len)
       /* value is allocated */
       int prev_len = node->value_len;
       node->value_len += len;
-      node->value = _asn1_realloc (node->value, node->value_len);
+      node->value = realloc (node->value, node->value_len);
       if (node->value == NULL)
 	{
 	  node->value_len = 0;
@@ -318,7 +318,7 @@ _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len)
       /* value is in node */
       int prev_len = node->value_len;
       node->value_len += len;
-      node->value = _asn1_malloc (node->value_len);
+      node->value = malloc (node->value_len);
       if (node->value == NULL)
 	{
 	  node->value_len = 0;
@@ -415,8 +415,8 @@ _asn1_remove_node (ASN1_TYPE node)
     return;
 
   if (node->value != NULL && node->value != node->small_value)
-    _asn1_free (node->value);
-  _asn1_free (node);
+    free (node->value);
+  free (node);
 }
 
 /******************************************************************/
@@ -456,7 +456,7 @@ _asn1_delete_list (void)
     {
       listElement = firstElement;
       firstElement = firstElement->next;
-      _asn1_free (listElement);
+      free (listElement);
     }
 }
 
@@ -475,7 +475,7 @@ _asn1_delete_list_and_nodes (void)
       listElement = firstElement;
       firstElement = firstElement->next;
       _asn1_remove_node (listElement->node);
-      _asn1_free (listElement);
+      free (listElement);
     }
 }
 
@@ -634,7 +634,7 @@ _asn1_expand_object_id (ASN1_TYPE node)
 			{
 			  if (type_field (p4->type) == TYPE_CONSTANT)
 			    {
-			      p5 = _asn1_add_node_only (TYPE_CONSTANT);
+			      p5 = _asn1_add_single_node (TYPE_CONSTANT);
 			      _asn1_set_name (p5, p4->name);
 			      tlen = _asn1_strlen (p4->value);
 			      if (tlen > 0)
diff --git a/lib/parser_aux.h b/lib/parser_aux.h
index 7156088..0fc5f0d 100644
--- a/lib/parser_aux.h
+++ b/lib/parser_aux.h
@@ -27,7 +27,7 @@
 /***************************************/
 /*  Functions used by ASN.1 parser     */
 /***************************************/
-ASN1_TYPE _asn1_add_node (unsigned int type);
+ASN1_TYPE _asn1_add_static_node (unsigned int type);
 
 ASN1_TYPE
 _asn1_set_value (ASN1_TYPE node, const void *value, unsigned int len);
diff --git a/lib/structure.c b/lib/structure.c
index 93da56c..78e1f89 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -37,7 +37,7 @@ extern char _asn1_identifierMissing[];
 
 
 /******************************************************/
-/* Function : _asn1_add_node_only                     */
+/* Function : _asn1_add_single_node                     */
 /* Description: creates a new NODE_ASN element.       */
 /* Parameters:                                        */
 /*   type: type of the new element (see TYPE_         */
@@ -45,11 +45,11 @@ extern char _asn1_identifierMissing[];
 /* Return: pointer to the new element.                */
 /******************************************************/
 ASN1_TYPE
-_asn1_add_node_only (unsigned int type)
+_asn1_add_single_node (unsigned int type)
 {
   ASN1_TYPE punt;
 
-  punt = (ASN1_TYPE) _asn1_calloc (1, sizeof (struct node_asn_struct));
+  punt = calloc (1, sizeof (struct node_asn_struct));
   if (punt == NULL)
     return NULL;
 
@@ -191,7 +191,7 @@ asn1_array2tree (const ASN1_ARRAY_TYPE * array, ASN1_TYPE * definitions,
   k = 0;
   while (array[k].value || array[k].type || array[k].name)
     {
-      p = _asn1_add_node (array[k].type & (~CONST_DOWN));
+      p = _asn1_add_static_node (array[k].type & (~CONST_DOWN));
       if (array[k].name)
 	_asn1_set_name (p, array[k].name);
       if (array[k].value)
@@ -380,7 +380,7 @@ _asn1_copy_structure3 (ASN1_TYPE source_node)
   if (source_node == NULL)
     return NULL;
 
-  dest_node = _asn1_add_node_only (source_node->type);
+  dest_node = _asn1_add_single_node (source_node->type);
 
   p_s = source_node;
   p_d = dest_node;
@@ -399,7 +399,7 @@ _asn1_copy_structure3 (ASN1_TYPE source_node)
 	    {
 	      p_s = p_s->down;
 	      p_d_prev = p_d;
-	      p_d = _asn1_add_node_only (p_s->type);
+	      p_d = _asn1_add_single_node (p_s->type);
 	      _asn1_set_down (p_d_prev, p_d);
 	      continue;
 	    }
@@ -413,7 +413,7 @@ _asn1_copy_structure3 (ASN1_TYPE source_node)
 	    move = RIGHT;
 	    p_s = p_s->right;
 	    p_d_prev = p_d;
-	    p_d = _asn1_add_node_only (p_s->type);
+	    p_d = _asn1_add_single_node (p_s->type);
 	    _asn1_set_right (p_d_prev, p_d);
         }
       else
@@ -470,7 +470,7 @@ _asn1_type_choice_config (ASN1_TYPE node)
 			{
 			  if (type_field (p3->type) == TYPE_TAG)
 			    {
-			      p4 = _asn1_add_node_only (p3->type);
+			      p4 = _asn1_add_single_node (p3->type);
 			      tlen = _asn1_strlen (p3->value);
 			      if (tlen > 0)
 				_asn1_set_value (p4, p3->value, tlen + 1);
@@ -545,9 +545,7 @@ _asn1_expand_identifier (ASN1_TYPE * node, ASN1_TYPE root)
 	{
 	  if (type_field (p->type) == TYPE_IDENTIFIER)
 	    {
-	      _asn1_str_cpy (name2, sizeof (name2), root->name);
-	      _asn1_str_cat (name2, sizeof (name2), ".");
-	      _asn1_str_cat (name2, sizeof (name2), (char *) p->value);
+	      snprintf(name2, sizeof (name2), "%s.%s", root->name, p->value);
 	      p2 = _asn1_copy_structure2 (root, name2);
 	      if (p2 == NULL)
 		{
@@ -1158,27 +1156,27 @@ asn1_copy_node (ASN1_TYPE dst, const char *dst_name,
   if (result != ASN1_MEM_ERROR)
     return result;
 
-  data = _asn1_malloc (size);
+  data = malloc (size);
   if (data == NULL)
     return ASN1_MEM_ERROR;
 
   result = asn1_der_coding (src, src_name, data, &size, NULL);
   if (result != ASN1_SUCCESS)
     {
-      _asn1_free (data);
+      free (data);
       return result;
     }
 
   dst_node = asn1_find_node (dst, dst_name);
   if (dst_node == NULL)
     {
-      _asn1_free (data);
+      free (data);
       return ASN1_ELEMENT_NOT_FOUND;
     }
 
   result = asn1_der_decoding (&dst_node, data, size, NULL);
 
-  _asn1_free (data);
+  free (data);
 
   return result;
 }
diff --git a/lib/structure.h b/lib/structure.h
index 0a84e26..cf4205b 100644
--- a/lib/structure.h
+++ b/lib/structure.h
@@ -34,7 +34,7 @@ asn1_retCode _asn1_create_static_structure (ASN1_TYPE pointer,
 
 ASN1_TYPE _asn1_copy_structure3 (ASN1_TYPE source_node);
 
-ASN1_TYPE _asn1_add_node_only (unsigned int type);
+ASN1_TYPE _asn1_add_single_node (unsigned int type);
 
 ASN1_TYPE _asn1_find_left (ASN1_TYPE node);
 


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 16:25:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCFyz-0006BJ-Uz
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:25:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFys-0006AM-Iv
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:25:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFyq-0008Jw-6y
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:25:46 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:33253)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFyp-0008JF-Um
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:25:44 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFyp-0002EH-98
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:25:43 +0000
Date: Thu, 13 Sep 2012 20:25:43 +0000
Message-Id: <E1TCFyp-0002EH-98@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-8-g01d2e13
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: c5226f57807bf53fd3aff5ce2f36d62f2e9b7553
X-Git-Newrev: 01d2e13165310dadc4aebb4003c5b56683e034b1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2012 20:25:52 -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=01d2e13165310dadc4aebb4003c5b56683e034b1

The branch, libtasn1_2_x has been updated
       via  01d2e13165310dadc4aebb4003c5b56683e034b1 (commit)
       via  de80f5fc0dc779bc1a6bda51a0842a6ac12f76de (commit)
       via  58a6131c50771e603bde03984ff3b3ccf1dbd3cd (commit)
       via  92e29763d3cbde9a73d60e9883a75747a0389497 (commit)
      from  c5226f57807bf53fd3aff5ce2f36d62f2e9b7553 (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 01d2e13165310dadc4aebb4003c5b56683e034b1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 22:24:25 2012 +0200

    added new symbol

commit de80f5fc0dc779bc1a6bda51a0842a6ac12f76de
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 21:10:35 2012 +0200

    no need to reserve.

commit 58a6131c50771e603bde03984ff3b3ccf1dbd3cd
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 23:15:02 2012 +0200

    Node type field is now included in ASN1_DATA_NODE.

commit 92e29763d3cbde9a73d60e9883a75747a0389497
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Wed Sep 12 22:32:20 2012 +0200

    Added asn1_read_node_value()

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

Summary of changes:
 NEWS             |    3 ++-
 lib/element.c    |   20 ++++++++++++++++++++
 lib/int.h        |   44 ++++++++++++++++++++++----------------------
 lib/libtasn1.h   |   36 ++++++++++++++++++++++++++++++++++++
 lib/libtasn1.map |    2 ++
 5 files changed, 82 insertions(+), 23 deletions(-)

diff --git a/NEWS b/NEWS
index 7cc4a10..cb4dfd9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
-* Noteworthy changes in release 2.14 (unreleased) [stable]
+* Noteworthy changes in release 3.0 (unreleased) [stable]
+- Added asn1_read_node_value() to obtain a node's value.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
 - Updated fix for DER decoding issue to not depend on specific compilers.
diff --git a/lib/element.c b/lib/element.c
index ead899c..8e8807b 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -976,3 +976,23 @@ asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
 
   return ASN1_SUCCESS;
 }
+
+/**
+ * asn1_read_node_value:
+ * @node: pointer to a node.
+ * @data: a point to a node_data_struct
+ *
+ * Returns the value a data node inside a ASN1_TYPE structure.
+ * The data returned should be handled as constant values.
+ *
+ * Returns: %ASN1_SUCCESS if the node exists.
+ **/
+asn1_retCode asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
+{
+  data->name = node->name;
+  data->value = node->value;
+  data->value_len = node->value_len;
+  data->type = type_field(node->type);
+  
+  return ASN1_SUCCESS;
+}
diff --git a/lib/int.h b/lib/int.h
index 82de579..aad7ba6 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -83,28 +83,28 @@ struct node_asn_struct
 #define type_field(x)     (x&0xFF)
 
 /* List of constants for field type of typedef node_asn  */
-#define TYPE_CONSTANT       1
-#define TYPE_IDENTIFIER     2
-#define TYPE_INTEGER        3
-#define TYPE_BOOLEAN        4
-#define TYPE_SEQUENCE       5
-#define TYPE_BIT_STRING     6
-#define TYPE_OCTET_STRING   7
-#define TYPE_TAG            8
-#define TYPE_DEFAULT        9
-#define TYPE_SIZE          10
-#define TYPE_SEQUENCE_OF   11
-#define TYPE_OBJECT_ID     12
-#define TYPE_ANY           13
-#define TYPE_SET           14
-#define TYPE_SET_OF        15
-#define TYPE_DEFINITIONS   16
-#define TYPE_TIME          17
-#define TYPE_CHOICE        18
-#define TYPE_IMPORTS       19
-#define TYPE_NULL          20
-#define TYPE_ENUMERATED    21
-#define TYPE_GENERALSTRING 27
+#define TYPE_CONSTANT      ASN1_ETYPE_CONSTANT
+#define TYPE_IDENTIFIER    ASN1_ETYPE_IDENTIFIER
+#define TYPE_INTEGER       ASN1_ETYPE_INTEGER
+#define TYPE_BOOLEAN       ASN1_ETYPE_BOOLEAN
+#define TYPE_SEQUENCE      ASN1_ETYPE_SEQUENCE
+#define TYPE_BIT_STRING    ASN1_ETYPE_BIT_STRING
+#define TYPE_OCTET_STRING  ASN1_ETYPE_OCTET_STRING
+#define TYPE_TAG           ASN1_ETYPE_TAG
+#define TYPE_DEFAULT       ASN1_ETYPE_DEFAULT
+#define TYPE_SIZE          ASN1_ETYPE_SIZE
+#define TYPE_SEQUENCE_OF   ASN1_ETYPE_SEQUENCE_OF
+#define TYPE_OBJECT_ID     ASN1_ETYPE_OBJECT_ID
+#define TYPE_ANY           ASN1_ETYPE_ANY
+#define TYPE_SET           ASN1_ETYPE_SET
+#define TYPE_SET_OF        ASN1_ETYPE_SET_OF
+#define TYPE_DEFINITIONS   ASN1_ETYPE_DEFINITIONS
+#define TYPE_TIME          ASN1_ETYPE_TIME
+#define TYPE_CHOICE        ASN1_ETYPE_CHOICE
+#define TYPE_IMPORTS       ASN1_ETYPE_IMPORTS
+#define TYPE_NULL          ASN1_ETYPE_NULL
+#define TYPE_ENUMERATED    ASN1_ETYPE_ENUMERATED
+#define TYPE_GENERALSTRING ASN1_ETYPE_GENERALSTRING
 
 
 /***********************************************************************/
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 784a67e..e9337e2 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -141,6 +141,39 @@ extern "C"
   };
   typedef struct static_struct_asn ASN1_ARRAY_TYPE;
 
+/* List of constants for field type of typedef node_asn  */
+#define ASN1_ETYPE_CONSTANT       1
+#define ASN1_ETYPE_IDENTIFIER     2
+#define ASN1_ETYPE_INTEGER        3
+#define ASN1_ETYPE_BOOLEAN        4
+#define ASN1_ETYPE_SEQUENCE       5
+#define ASN1_ETYPE_BIT_STRING     6
+#define ASN1_ETYPE_OCTET_STRING   7
+#define ASN1_ETYPE_TAG            8
+#define ASN1_ETYPE_DEFAULT        9
+#define ASN1_ETYPE_SIZE          10
+#define ASN1_ETYPE_SEQUENCE_OF   11
+#define ASN1_ETYPE_OBJECT_ID     12
+#define ASN1_ETYPE_ANY           13
+#define ASN1_ETYPE_SET           14
+#define ASN1_ETYPE_SET_OF        15
+#define ASN1_ETYPE_DEFINITIONS   16
+#define ASN1_ETYPE_TIME          17
+#define ASN1_ETYPE_CHOICE        18
+#define ASN1_ETYPE_IMPORTS       19
+#define ASN1_ETYPE_NULL          20
+#define ASN1_ETYPE_ENUMERATED    21
+#define ASN1_ETYPE_GENERALSTRING 27
+
+  struct node_data_struct
+  {
+    const char *name;		/* Node name */
+    const void *value;		/* Node value */
+    unsigned int value_len;     /* Node value size */
+    unsigned int type;		/* Node value type (ASN1_ETYPE_*) */
+  };
+  typedef struct node_data_struct ASN1_DATA_NODE;
+
   /***********************************/
   /*  Fixed constants                */
   /***********************************/
@@ -193,6 +226,9 @@ extern "C"
 		     void *ivalue, int *len);
 
   extern ASN1_API asn1_retCode
+    asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data);
+
+  extern ASN1_API asn1_retCode
     asn1_number_of_elements (ASN1_TYPE element, const char *name, int *num);
 
   extern ASN1_API asn1_retCode
diff --git a/lib/libtasn1.map b/lib/libtasn1.map
index 1906cd5..83235ed 100644
--- a/lib/libtasn1.map
+++ b/lib/libtasn1.map
@@ -49,6 +49,7 @@ LIBTASN1_0_3
     asn1_read_value;
     asn1_strerror;
     asn1_write_value;
+    asn1_read_node_value;
 
     # Old symbols
     libtasn1_strerror;
@@ -57,3 +58,4 @@ LIBTASN1_0_3
   local:
     *;
 };
+


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 16:26:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCFzX-0006EC-3z
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:26:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37078)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFzU-0006Dh-KF
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:26:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFzT-0000QQ-6h
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:26:24 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:33290)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFzT-0000QI-3W
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 16:26:23 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCFzS-0002H1-Lg
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:26:22 +0000
Date: Thu, 13 Sep 2012 20:26:22 +0000
Message-Id: <E1TCFzS-0002H1-Lg@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-22-g7e6ece9
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 95da3661c7e758352893636508d776652aa5a991
X-Git-Newrev: 7e6ece95a21d573f2699e77cf74c4c2fb2d08010
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2012 20:26:25 -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=7e6ece95a21d573f2699e77cf74c4c2fb2d08010

The branch, master has been updated
       via  7e6ece95a21d573f2699e77cf74c4c2fb2d08010 (commit)
      from  95da3661c7e758352893636508d776652aa5a991 (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 7e6ece95a21d573f2699e77cf74c4c2fb2d08010
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 22:26:14 2012 +0200

    Added symbol into old API

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

Summary of changes:
 lib/libtasn1.map |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/lib/libtasn1.map b/lib/libtasn1.map
index f4c3253..83235ed 100644
--- a/lib/libtasn1.map
+++ b/lib/libtasn1.map
@@ -49,6 +49,7 @@ LIBTASN1_0_3
     asn1_read_value;
     asn1_strerror;
     asn1_write_value;
+    asn1_read_node_value;
 
     # Old symbols
     libtasn1_strerror;
@@ -58,9 +59,3 @@ LIBTASN1_0_3
     *;
 };
 
-LIBTASN1_0_4
-{
-  global:
-    asn1_read_node_value;
-} LIBTASN1_0_3;
-


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 17:31:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCH0B-0007k8-St
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 17:31:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34119)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCH09-0007jc-9q
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 17:31:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCH07-0000JF-SB
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 17:31:09 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:39989)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCH07-0000Is-Od
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 17:31:07 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCH07-0005Je-3z
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:31:07 +0000
Date: Thu, 13 Sep 2012 21:31:07 +0000
Message-Id: <E1TCH07-0005Je-3z@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-23-g6e896a8
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 7e6ece95a21d573f2699e77cf74c4c2fb2d08010
X-Git-Newrev: 6e896a8e7c30d3351f874731835f803cb1edd155
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Sep 2012 21:31:10 -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=6e896a8e7c30d3351f874731835f803cb1edd155

The branch, master has been updated
       via  6e896a8e7c30d3351f874731835f803cb1edd155 (commit)
      from  7e6ece95a21d573f2699e77cf74c4c2fb2d08010 (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 6e896a8e7c30d3351f874731835f803cb1edd155
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 13 23:30:50 2012 +0200

    Revert "small_value_size changed to 8. No visible difference in performance"
    
    This reverts commit b86e75de8bc3a35620f069b7b00d680284d86eb5.

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

Summary of changes:
 lib/int.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/int.h b/lib/int.h
index cabd599..65e3c0e 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -38,7 +38,7 @@
 
 #include <libtasn1.h>
 
-#define ASN1_SMALL_VALUE_SIZE 8
+#define ASN1_SMALL_VALUE_SIZE 16
 
 /* This structure is also in libtasn1.h, but then contains less
    fields.  You cannot make any modifications to these first fields


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 13 20:58:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCKFF-00044j-Lr
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60833)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFC-00044X-Po
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFB-0000ft-A2
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:54 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:58899)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFA-0000fX-Qf
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:53 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id B988CCC1A0
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:50 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.71])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id 7VPZt7d7R35v for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 02:58:49 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx4.tudelft.nl (Postfix) with SMTP id B9116CC1AC
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:48 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 02:58:48 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-darwin, build 3031418:
	Failed
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-darwin
Date: Fri, 14 Sep 2012 02:58:48 +0200
Message-Id: <20120914005848.B9116CC1AC@mx4.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 00:58:56 -0000

Hi,

This is to let you know that Hydra build 3031418 of job gnu:libtasn1-master:build has changed from 'Success' to 'Failed'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031418

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031418
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-darwin
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-darwin
Derivation store path: | /nix/store/jh2n768d2wp35nlr0p3fav2bxaa3pz17-libtasn1-3.0.drv
Output store path:     | /nix/store/jawa52jnkky1fymvmag9j8h6kkihxvzl-libtasn1-3.0
Time added:            | 2012-09-14 02:58:48
Build started:         | 2012-09-14 02:58:10
Build finished:        | 2012-09-14 02:58:48
Duration:              | 38s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031212
system      | string | x86_64-darwin

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/private/tmp/nix-build-jh2n768d2wp35nlr0p3fav2bxaa3pz17-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/private/tmp/nix-build-jh2n768d2wp35nlr0p3fav2bxaa3pz17-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make: *** [check-recursive] Error 1
build time elapsed:  0m0.017s 0m0.011s 0m11.708s 0m10.714s
Copying build directory to /nix/store/jawa52jnkky1fymvmag9j8h6kkihxvzl-libtasn1-3.0/nix-build-jh2n768d2wp35nlr0p3fav2bxaa3pz17-libtasn1-3.0.drv-0
build failed with exit code 2 (ignored)


From MAILER-DAEMON Thu Sep 13 20:58:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCKFG-000456-PU
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60844)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFE-00044Y-4h
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFC-0000gA-94
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:56 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:32985)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFB-0000g5-W6
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:54 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 7195A7F800E
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:53 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.69])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id xNdnNhYtF9x1 for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 02:58:52 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx1.tudelft.nl (Postfix) with SMTP id 603577F800B
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:51 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 02:58:51 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on i686-linux, build 3031416:
	Failed
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: i686-linux
Date: Fri, 14 Sep 2012 02:58:51 +0200
Message-Id: <20120914005851.603577F800B@mx1.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 00:58:57 -0000

Hi,

This is to let you know that Hydra build 3031416 of job gnu:libtasn1-master:build has changed from 'Success' to 'Failed'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031416

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031416
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on i686-linux
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | i686-linux
Derivation store path: | /nix/store/s5iq69fwjyvc6c2z95wx8grvh14am7qi-libtasn1-3.0.drv
Output store path:     | /nix/store/i2glaw5s75j7bfq0hzxi6n5vwxn3myzc-libtasn1-3.0
Time added:            | 2012-09-14 02:58:51
Build started:         | 2012-09-14 02:58:10
Build finished:        | 2012-09-14 02:58:51
Duration:              | 41s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031212
system      | string | i686-linux

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/tmp/nix-build-s5iq69fwjyvc6c2z95wx8grvh14am7qi-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/tmp/nix-build-s5iq69fwjyvc6c2z95wx8grvh14am7qi-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make: *** [check-recursive] Error 1
build time elapsed:  0m0.021s 0m0.007s 0m11.151s 0m5.040s
Copying build directory to /nix/store/i2glaw5s75j7bfq0hzxi6n5vwxn3myzc-libtasn1-3.0/nix-build-s5iq69fwjyvc6c2z95wx8grvh14am7qi-libtasn1-3.0.drv-0
build failed with exit code 2 (ignored)


From MAILER-DAEMON Thu Sep 13 20:59:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCKFK-00045S-TL
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:59:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60855)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFI-00045M-9G
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:59:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFG-0000gm-Sp
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:59:00 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:35840)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKFG-0000ge-Jp
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:58:58 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 0A184CC1AC
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:58 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.71])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id Yc0NonhO0IM8 for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 02:58:57 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx4.tudelft.nl (Postfix) with SMTP id 07F73CC1A0
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:58:56 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 02:58:56 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on i686-solaris, build 3031413:
	Failed
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: i686-solaris
Date: Fri, 14 Sep 2012 02:58:55 +0200
Message-Id: <20120914005856.07F73CC1A0@mx4.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 00:59:01 -0000

Hi,

This is to let you know that Hydra build 3031413 of job gnu:libtasn1-master:build has changed from 'Success' to 'Failed'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031413

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031413
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on i686-solaris
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | i686-solaris
Derivation store path: | /nix/store/xgrww0apdx23dkfqlq62c91nx9wc3giw-libtasn1-3.0.drv
Output store path:     | /nix/store/h6v44rwa9ymygg2gr3sdh4dahdxnkpnh-libtasn1-3.0
Time added:            | 2012-09-14 02:58:55
Build started:         | 2012-09-14 02:58:10
Build finished:        | 2012-09-14 02:58:55
Duration:              | 45s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031212
system      | string | i686-solaris

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/tmp/nix-build-xgrww0apdx23dkfqlq62c91nx9wc3giw-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/tmp/nix-build-xgrww0apdx23dkfqlq62c91nx9wc3giw-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make: *** [check-recursive] Error 1
build time elapsed:  0m0.035s 0m0.022s 0m23.419s 0m14.019s
Copying build directory to /nix/store/h6v44rwa9ymygg2gr3sdh4dahdxnkpnh-libtasn1-3.0/nix-build-xgrww0apdx23dkfqlq62c91nx9wc3giw-libtasn1-3.0.drv-0
build failed with exit code 2 (ignored)


From MAILER-DAEMON Thu Sep 13 21:00:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCKGO-0004FH-40
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:00:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60353)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKGI-0004BY-Ns
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:00:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKGF-0000o3-Uf
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:00:01 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:47502)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKGF-0000nv-LL
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 20:59:59 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 25990CC1AC
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:59:59 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.71])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id EIjg2L6lKCf9 for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 02:59:58 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx4.tudelft.nl (Postfix) with SMTP id 25C69CC1A0
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 02:59:57 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 02:59:57 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:coverage on x86_64-linux, build
	3031417: Failed with non-zero exit code
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: coverage
X-Hydra-System: x86_64-linux
Date: Fri, 14 Sep 2012 02:59:57 +0200
Message-Id: <20120914005957.25C69CC1A0@mx4.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 01:00:06 -0000

Hi,

This is to let you know that Hydra build 3031417 of job gnu:libtasn1-master:coverage has changed from 'Success' to 'Failed with non-zero exit code'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031417

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031417
Nix name:              | libtasn1-coverage-3.0
Short description:     | Coverage analysis
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-linux
Derivation store path: | /nix/store/33l338yfj27gw6iqgbg3had4smisrwb9-libtasn1-coverage-3.0.drv
Output store path:     | /nix/store/pwjxpx20fjb4zpqa7cxxv34979wcrgw7-libtasn1-coverage-3.0
Time added:            | 2012-09-14 02:59:57
Build started:         | 2012-09-14 02:59:19
Build finished:        | 2012-09-14 02:59:57
Duration:              | 38s

The build inputs were:

Name        | Type  | Value
------------+-------+--------------------------------------------------------------------------------------
hydraConfig | git   | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git   | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git   | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build | 3031212

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/tmp/nix-build-33l338yfj27gw6iqgbg3had4smisrwb9-libtasn1-coverage-3.0.drv-0/libtasn1-3.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/tmp/nix-build-33l338yfj27gw6iqgbg3had4smisrwb9-libtasn1-coverage-3.0.drv-0/libtasn1-3.0/tests'
make: *** [check-recursive] Error 1
build time elapsed:  0m0.023s 0m0.005s 0m8.408s 0m6.012s
builder for `/nix/store/33l338yfj27gw6iqgbg3had4smisrwb9-libtasn1-coverage-3.0.drv' failed with exit code 2
error: build of `/nix/store/33l338yfj27gw6iqgbg3had4smisrwb9-libtasn1-coverage-3.0.drv' failed


From MAILER-DAEMON Thu Sep 13 21:02:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCKIG-000516-Vw
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:02:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60585)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKIE-000510-36
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:02:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKIC-0001w8-P7
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:02:02 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:60371)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCKIC-0001w4-Fk
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 21:02:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 035872B8023
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 03:02:00 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id S5Xb4dlU-BpW for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 03:01:59 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id 0ABBD2B8016
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 03:01:58 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 03:01:58 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-linux, build 3031415:
	Failed
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-linux
Date: Fri, 14 Sep 2012 03:01:58 +0200
Message-Id: <20120914010158.0ABBD2B8016@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 01:02:03 -0000

Hi,

This is to let you know that Hydra build 3031415 of job gnu:libtasn1-master:build has changed from 'Success' to 'Failed'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031415

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031415
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-linux
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-linux
Derivation store path: | /nix/store/6ww7r0ynbhwh568158rzshxgcnynmabv-libtasn1-3.0.drv
Output store path:     | /nix/store/6sk0c49ql5xzn62hipifsi9fryb3qr2j-libtasn1-3.0
Time added:            | 2012-09-14 03:01:57
Build started:         | 2012-09-14 02:59:52
Build finished:        | 2012-09-14 03:01:57
Duration:              | 125s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031212
system      | string | x86_64-linux

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/tmp/nix-build-6ww7r0ynbhwh568158rzshxgcnynmabv-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/tmp/nix-build-6ww7r0ynbhwh568158rzshxgcnynmabv-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
make: *** [check-recursive] Error 1
build time elapsed:  0m0.011s 0m0.016s 0m10.109s 0m6.670s
Copying build directory to /nix/store/6sk0c49ql5xzn62hipifsi9fryb3qr2j-libtasn1-3.0/nix-build-6ww7r0ynbhwh568158rzshxgcnynmabv-libtasn1-3.0.drv-0
build failed with exit code 2 (ignored)


From MAILER-DAEMON Thu Sep 13 23:42:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCMng-0003MR-QS
	for mharc-libtasn1-commit@gnu.org; Thu, 13 Sep 2012 23:42:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60472)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCMne-0003MB-Ew
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 23:42:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCMnc-0004um-UP
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 23:42:38 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:52726)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCMnc-0004uX-Kr
	for libtasn1-commit@gnu.org; Thu, 13 Sep 2012 23:42:36 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 24F29CC1C5
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 05:42:35 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.71])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id Gl4JXPAovc9U for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 05:42:34 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx4.tudelft.nl (Postfix) with SMTP id 0F3C2CC1B5
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 05:42:33 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 05:42:32 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-freebsd, build
	3031414: Failed
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-freebsd
Date: Fri, 14 Sep 2012 05:42:32 +0200
Message-Id: <20120914034233.0F3C2CC1B5@mx4.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 03:42:39 -0000

Hi,

This is to let you know that Hydra build 3031414 of job gnu:libtasn1-master:build has changed from 'Success' to 'Failed'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031414

The last 50 lines of the build log are shown at the bottom of this email.

A summary of the build information follows:

Build ID:              | 3031414
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-freebsd
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-freebsd
Derivation store path: | /nix/store/11159wf04dxjb0lwvhwylpd4jjdrknzq-libtasn1-3.0.drv
Output store path:     | /nix/store/laspkmw13wf07l3v6v0hrm329nccds6n-libtasn1-3.0
Time added:            | 2012-09-14 05:42:32
Build started:         | 2012-09-14 05:41:00
Build finished:        | 2012-09-14 05:42:32
Duration:              | 92s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:6e896a8e7c30d3351f874731835f803cb1edd155
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031212
system      | string | x86_64-freebsd

Regards,

The Hydra build daemon.

---
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.7
            name:value  type:ANY  value:130945696e64686f76656e
        name:?3  type:SET_OF
          name:NULL  type:SEQUENCE
            name:type  type:OBJ_ID
            name:value  type:ANY
          name:?1  type:SEQUENCE
            name:type  type:OBJ_ID  value:2.5.4.6
            name:value  type:ANY  value:13024e4c
    name:subjectPublicKeyInfo  type:SEQUENCE
      name:algorithm  type:SEQUENCE
        name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.1
        name:parameters  type:ANY  value:0500
      name:subjectPublicKey  type:BIT_STR  value(2160):3082010a0282010100ca70fac44006fbb41a8ee4195aa9771f75917459d268b93046035ba1dcb54a282a1e2848b778bae067700acd642cb08d570dbb0f8956df23a0a3c6e5dfaeef53d8bdc164f4cbe52e47aa586efff3b29f0cbd42394c646377ef3de2f7be9b629937451268b9516a32f17bd4a4ea3ba4723d2fa1a0f234420af95040d3ce0ced5f60db0a26469f07179d2bc29f623a618033969ff7ac6b92a494c127a61379b317abb721486437542dc6d05da714b6d059ce470cb39084134937485995a1e8f3349dcfca31d618a4fca487573c9a426a50836f9559ba4db76a686095b9b864ded6bded5345dbec3840dbac4b0cbacca014c5753c280585f453fd520f274043a0510203010001
    name:extensions  type:SEQ_OF
      name:NULL  type:SEQUENCE
        name:extnID  type:OBJ_ID
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR
      name:?1  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.19
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:30060101ff020100
      name:?2  type:SEQUENCE
        name:extnID  type:OBJ_ID  value:2.5.29.15
        name:critical  type:BOOLEAN
          name:NULL  type:DEFAULT  value:FALSE
        name:extnValue  type:OCT_STR  value:03020204
  name:signatureAlgorithm  type:SEQUENCE
    name:algorithm  type:OBJ_ID  value:1.2.840.113549.1.1.4
    name:parameters  type:ANY  value:0500
  name:signature  type:BIT_STR  value(2048):3e9033aa13638b3d6af1d53634408ac11253e4ed8a490eafc90d2ccfbe7bd7f44446351a4bb9b9b08c626d5b0c7214fc6de578819adba1d0bdd9bf8124f3db22601da60c79427f56861da55c918f183d6e47cffe5c910815da8454280e6411532a3b1558df1c529aae26af29108d5d6de71efa22a458fb3f2f8839108cf84964b70d21d0df5ceb51b6ecbb1fa1636d2d6fa278ed3d646df093deb6a1e01185db4528acb3e1fa444f43f11501c7d6e974c1005f8145919c82c2a1eecfbdf3a2301274b0d344431860b0aae139253cfa4cd7ee9dc5249f6fa60c0183f53a21d6b7513b9e0c2eb0f5c9a60008e927d4c3ab85c74e70677a95126b0389ca339ed799
PASS: crlf
PASS: threadsafety
======================================
1 of 9 tests failed
Please report to help-libtasn1@gnu.org
======================================
gmake[2]: *** [check-TESTS] Error 1
gmake[2]: Leaving directory `/tmp/nix-build-11159wf04dxjb0lwvhwylpd4jjdrknzq-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
gmake[1]: *** [check-am] Error 2
gmake[1]: Leaving directory `/tmp/nix-build-11159wf04dxjb0lwvhwylpd4jjdrknzq-libtasn1-3.0.drv-0/libtasn1-3.0/tests'
gmake: *** [check-recursive] Error 1
build time elapsed:  0m0.026s 0m0.017s 0m20.512s 0m16.115s
Copying build directory to /nix/store/laspkmw13wf07l3v6v0hrm329nccds6n-libtasn1-3.0/nix-build-11159wf04dxjb0lwvhwylpd4jjdrknzq-libtasn1-3.0.drv-0
build failed with exit code 2 (ignored)


From MAILER-DAEMON Fri Sep 14 12:08:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYRZ-0002PQ-0l
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:08:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39621)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCYRR-0002Oz-8r
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:08:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCYRP-0005oI-Ow
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:08:29 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:50892)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCYRP-0005nO-Ke
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:08:27 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TCYRO-0005pR-RZ
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 16:08:27 +0000
Date: Fri, 14 Sep 2012 16:08:26 +0000
Message-Id: <E1TCYRO-0005pR-RZ@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-26-g5d80448
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 6e896a8e7c30d3351f874731835f803cb1edd155
X-Git-Newrev: 5d8044833ffaa6bbf9591956f216a1eb749bdef7
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:08:35 -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=5d8044833ffaa6bbf9591956f216a1eb749bdef7

The branch, master has been updated
       via  5d8044833ffaa6bbf9591956f216a1eb749bdef7 (commit)
       via  fde3a0605bf8a6260618290b72f79c5d93ce135b (commit)
       via  6c118ee8764593d0217a6ae590a2cf2e2edb7602 (commit)
      from  6e896a8e7c30d3351f874731835f803cb1edd155 (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 5d8044833ffaa6bbf9591956f216a1eb749bdef7
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Fri Sep 14 18:08:19 2012 +0200

    Corrected the test.

commit fde3a0605bf8a6260618290b72f79c5d93ce135b
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Fri Sep 14 18:08:10 2012 +0200

    name has size of ASN1_MAX_NAME_SIZE+1 to allow for a terminating null.

commit 6c118ee8764593d0217a6ae590a2cf2e2edb7602
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Fri Sep 14 17:58:53 2012 +0200

    removed unneeded casts

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

Summary of changes:
 lib/ASN1.c          |    4 ++--
 lib/ASN1.y          |    4 ++--
 lib/int.h           |    2 +-
 tests/Test_parser.c |    8 +++-----
 4 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/lib/ASN1.c b/lib/ASN1.c
index 5289e6a..b6a5844 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -2944,7 +2944,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName,
 
 	if(outputFileName == NULL){
 	  /* file_out_name = inputFileName + _asn1_tab.c */
-	  file_out_name=(char *)malloc(dot_p-inputFileName+1+
+	  file_out_name=malloc(dot_p-inputFileName+1+
 				       strlen("_asn1_tab.c"));
 	  memcpy(file_out_name,inputFileName,dot_p-inputFileName);
 	  file_out_name[dot_p-inputFileName]=0;
@@ -2958,7 +2958,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName,
 
 	if(vectorName == NULL){
 	  /* vector_name = file name + _asn1_tab */
-	  vector_name=(char *)malloc(dot_p-slash_p+1+
+	  vector_name=malloc(dot_p-slash_p+1+
 				     strlen("_asn1_tab"));
 	  memcpy(vector_name,slash_p,dot_p-slash_p);
 	  vector_name[dot_p-slash_p]=0;
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 0611e85..66173ea 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -710,7 +710,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName,
 
 	if(outputFileName == NULL){
 	  /* file_out_name = inputFileName + _asn1_tab.c */
-	  file_out_name=(char *)malloc(dot_p-inputFileName+1+
+	  file_out_name=malloc(dot_p-inputFileName+1+
 				       strlen("_asn1_tab.c"));
 	  memcpy(file_out_name,inputFileName,dot_p-inputFileName);
 	  file_out_name[dot_p-inputFileName]=0;
@@ -724,7 +724,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName,
 
 	if(vectorName == NULL){
 	  /* vector_name = file name + _asn1_tab */
-	  vector_name=(char *)malloc(dot_p-slash_p+1+
+	  vector_name=malloc(dot_p-slash_p+1+
 				     strlen("_asn1_tab"));
 	  memcpy(vector_name,slash_p,dot_p-slash_p);
 	  vector_name[dot_p-slash_p]=0;
diff --git a/lib/int.h b/lib/int.h
index 65e3c0e..fad4dbe 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -46,7 +46,7 @@
 struct node_asn_struct
 {
   /* public fields: */
-  char name[ASN1_MAX_NAME_SIZE];			/* Node name */
+  char name[ASN1_MAX_NAME_SIZE+1];			/* Node name */
   unsigned int type;		/* Node type */
   unsigned char *value;		/* Node value */
   int value_len;
diff --git a/tests/Test_parser.c b/tests/Test_parser.c
index 76daf09..fd56210 100644
--- a/tests/Test_parser.c
+++ b/tests/Test_parser.c
@@ -52,13 +52,12 @@ test_type test_array[] = {
 
   /* Test ASN1_MAX_NAME_SIZE (128) */
   {12,
-   "a1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 ::= INTEGER",
+   "a123456789012345678901234567890123456789012345678901234567890123 ::= INTEGER",
    ASN1_SUCCESS, ""},
   {12,
-   "a12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 ::= INTEGER",
+   "a1234567890123456789012345678901234567890123456789012345678901234 ::= INTEGER",
    ASN1_NAME_TOO_LONG,
-   _FILE_ ":12: name too long (more than 128 characters)"},
-
+   _FILE_ ":12: name too long (more than 64 characters)"},
   /* Test 'check identifier' function */
   {12, "ident1 ::= ident2   ident2 ::= INTEGER",
    ASN1_SUCCESS, ""},
@@ -101,7 +100,6 @@ test_type test_array[] = {
   {20, "   oid1    OBJECT IDENTIFIER DEFAULT Oid-type1",
    ASN1_SUCCESS, ""},
 
-
   /* end */
   {0}
 };


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Fri Sep 14 12:28:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYkq-0005rf-SM
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40602)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYko-0005rK-Mh
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004ew-Ga
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:30 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:44147)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004dr-AA
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:28 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id A9EDD2B8034
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:27 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id 64ZFwheEF-Ba for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:26 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id B9E322B8027
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:25 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:25 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-linux, build 3031722:
	Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-linux
Date: Fri, 14 Sep 2012 18:28:25 +0200
Message-Id: <20120914162825.B9E322B8027@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:31 -0000

Hi,

This is to let you know that Hydra build 3031722 of job gnu:libtasn1-master:build has changed from 'Failed' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031722

A summary of the build information follows:

Build ID:              | 3031722
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-linux
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-linux
Derivation store path: | /nix/store/i60dwnfnqmcwnghzfpb49d4gkva8012g-libtasn1-3.0.drv
Output store path:     | /nix/store/2zgj54p6di1hxbbl06pxfhpqa88rcwsh-libtasn1-3.0
Time added:            | 2012-09-14 18:28:25
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:25
Duration:              | 25s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031721
system      | string | x86_64-linux

Regards,

The Hydra build daemon.


From MAILER-DAEMON Fri Sep 14 12:28:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYks-0005sD-Vk
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40622)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkq-0005rb-H8
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkp-0004ig-3t
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:32 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:38519)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYko-0004ia-TX
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:31 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 7B2097F801D
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:30 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.69])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id dx2MNmo41uKl for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:29 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx1.tudelft.nl (Postfix) with SMTP id AF2E77F800F
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:28 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:28 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-darwin, build 3031727:
	Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-darwin
Date: Fri, 14 Sep 2012 18:28:28 +0200
Message-Id: <20120914162828.AF2E77F800F@mx1.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:33 -0000

Hi,

This is to let you know that Hydra build 3031727 of job gnu:libtasn1-master:build has changed from 'Failed' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031727

A summary of the build information follows:

Build ID:              | 3031727
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-darwin
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-darwin
Derivation store path: | /nix/store/z47y5bkqa2b3byb99wlr2jrrzcz578m3-libtasn1-3.0.drv
Output store path:     | /nix/store/q3558amdkv7vydbgqqrlaw2fna7s5aq4-libtasn1-3.0
Time added:            | 2012-09-14 18:28:28
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:28
Duration:              | 28s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031721
system      | string | x86_64-darwin

Regards,

The Hydra build daemon.


From MAILER-DAEMON Fri Sep 14 12:28:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYku-0005so-3c
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40599)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYko-0005rE-2O
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004f1-HF
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:30 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:47573)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004cP-A7
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:28 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id AB31F2B8030
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:26 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id mt15mHVLlAsA for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:25 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id D83052B8008
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:24 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:24 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:coverage on x86_64-linux, build
	3031724: Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: coverage
X-Hydra-System: x86_64-linux
Date: Fri, 14 Sep 2012 18:28:24 +0200
Message-Id: <20120914162824.D83052B8008@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:34 -0000

Hi,

This is to let you know that Hydra build 3031724 of job gnu:libtasn1-master:coverage has changed from 'Failed with non-zero exit code' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031724

A summary of the build information follows:

Build ID:              | 3031724
Nix name:              | libtasn1-coverage-3.0
Short description:     | Coverage analysis
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-linux
Derivation store path: | /nix/store/9qydyiijgmybfl8ckqlw0hh3llcd6g5j-libtasn1-coverage-3.0.drv
Output store path:     | /nix/store/54kh8sxbhwlz8a0fzij8r6lyc27g58y5-libtasn1-coverage-3.0
Time added:            | 2012-09-14 18:28:24
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:24
Duration:              | 24s

The build inputs were:

Name        | Type  | Value
------------+-------+--------------------------------------------------------------------------------------
hydraConfig | git   | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git   | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git   | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build | 3031721

Regards,

The Hydra build daemon.


From MAILER-DAEMON Fri Sep 14 12:28:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYky-0005tU-7X
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40638)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYks-0005rv-Bh
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004ey-GM
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:34 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:50635)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYkm-0004e4-A1
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:28 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id B63A42B8027
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:27 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id rGsazoyqXIuR for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:26 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id E4DF72B802D
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:25 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:25 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on i686-linux, build 3031723:
	Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: i686-linux
Date: Fri, 14 Sep 2012 18:28:25 +0200
Message-Id: <20120914162825.E4DF72B802D@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:38 -0000

Hi,

This is to let you know that Hydra build 3031723 of job gnu:libtasn1-master:build has changed from 'Failed' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031723

A summary of the build information follows:

Build ID:              | 3031723
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on i686-linux
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | i686-linux
Derivation store path: | /nix/store/zlngpq91i6n6yf2xlfh98cy36plhpghj-libtasn1-3.0.drv
Output store path:     | /nix/store/vawqwrpprn2dv1mv9bxhd3fsx44ih5ga-libtasn1-3.0
Time added:            | 2012-09-14 18:28:25
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:25
Duration:              | 25s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031721
system      | string | i686-linux

Regards,

The Hydra build daemon.


From MAILER-DAEMON Fri Sep 14 12:28:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYlE-0005vx-Co
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40733)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYl6-0005uT-QJ
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYl4-0004mA-K4
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:48 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:56343)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYl4-0004ly-Dx
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:46 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id 03C022B802D
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id B7B6hAa_3w8b for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:45 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id 34EDA2B8027
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:44 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:44 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on x86_64-freebsd, build
	3031725: Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: x86_64-freebsd
Date: Fri, 14 Sep 2012 18:28:44 +0200
Message-Id: <20120914162844.34EDA2B8027@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:54 -0000

Hi,

This is to let you know that Hydra build 3031725 of job gnu:libtasn1-master:build has changed from 'Failed' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031725

A summary of the build information follows:

Build ID:              | 3031725
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on x86_64-freebsd
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | x86_64-freebsd
Derivation store path: | /nix/store/5j76cmq81la2bp1p36zar0gfnjia62vj-libtasn1-3.0.drv
Output store path:     | /nix/store/j9i0gxar55qsw46x2i8b9yz352yb7sii-libtasn1-3.0
Time added:            | 2012-09-14 18:28:44
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:44
Duration:              | 44s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031721
system      | string | x86_64-freebsd

Regards,

The Hydra build daemon.


From MAILER-DAEMON Fri Sep 14 12:29:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TCYlI-0005wX-0r
	for mharc-libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:29:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40837)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYlD-0005vW-4T
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYlA-0004oO-Sk
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:55 -0400
Received: from mailservice.tudelft.nl ([130.161.131.5]:38698)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <e.dolstra@tudelft.nl>) id 1TCYlA-0004nt-MN
	for libtasn1-commit@gnu.org; Fri, 14 Sep 2012 12:28:52 -0400
Received: from localhost (localhost [127.0.0.1])
	by amavis (Postfix) with ESMTP id C5F742B8027
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:51 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tudelft.nl
Received: from mailservice.tudelft.nl ([130.161.131.73])
	by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id 9ZM4S1R5kPjX for <libtasn1-commit@gnu.org>;
	Fri, 14 Sep 2012 18:28:51 +0200 (CEST)
Received: from lucifer (buildfarm.st.ewi.tudelft.nl [130.161.158.181])
	by mx2.tudelft.nl (Postfix) with SMTP id 1B7102B8008
	for <libtasn1-commit@gnu.org>; Fri, 14 Sep 2012 18:28:50 +0200 (CEST)
Received: by lucifer (sSMTP sendmail emulation);
	Fri, 14 Sep 2012 18:28:50 +0200
To: libtasn1-commit@gnu.org
From: Hydra Build Daemon <e.dolstra@tudelft.nl>
Subject: Hydra job gnu:libtasn1-master:build on i686-solaris, build 3031726:
	Success
X-Hydra-Instance: lucifer
X-Hydra-Project: gnu
X-Hydra-Jobset: libtasn1-master
X-Hydra-Job: build
X-Hydra-System: i686-solaris
Date: Fri, 14 Sep 2012 18:28:50 +0200
Message-Id: <20120914162850.1B7102B8008@mx2.tudelft.nl>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.161.131.5
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Sep 2012 16:28:59 -0000

Hi,

This is to let you know that Hydra build 3031726 of job gnu:libtasn1-master:build has changed from 'Failed' to 'Success'.

Complete build information can be found on this page: http://hydra.nixos.org/build/3031726

A summary of the build information follows:

Build ID:              | 3031726
Nix name:              | libtasn1-3.0
Short description:     | Native Nix build on i686-solaris
Maintainer(s):         | libtasn1-commit@gnu.org
System:                | i686-solaris
Derivation store path: | /nix/store/w1rwzm12ji93rd4hwm8qxylrrn2zdmsx-libtasn1-3.0.drv
Output store path:     | /nix/store/9jp70vmi0pcs4czm4ahpcxbxnpaj461f-libtasn1-3.0
Time added:            | 2012-09-14 18:28:50
Build started:         | 2012-09-14 18:28:00
Build finished:        | 2012-09-14 18:28:50
Duration:              | 50s

The build inputs were:

Name        | Type   | Value
------------+--------+--------------------------------------------------------------------------------------
hydraConfig | git    | git://git.savannah.gnu.org/hydra-recipes.git:9c970e6b390c0ceaff5d5dcaa33611cf165af24c
libtasn1Src | git    | git://git.sv.gnu.org/libtasn1.git:5d8044833ffaa6bbf9591956f216a1eb749bdef7
nixpkgs     | git    | git://github.com/NixOS/nixpkgs.git:7c43b041d9cf53cbeb59207138ac46b95ca4fdf0
tarball     | build  | 3031721
system      | string | i686-solaris

Regards,

The Hydra build daemon.


From MAILER-DAEMON Sun Sep 16 05:30:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TDBBq-00007a-9c
	for mharc-libtasn1-commit@gnu.org; Sun, 16 Sep 2012 05:30:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34242)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDBBn-00007J-Lh
	for libtasn1-commit@gnu.org; Sun, 16 Sep 2012 05:30:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDBBm-0002xB-Ds
	for libtasn1-commit@gnu.org; Sun, 16 Sep 2012 05:30:55 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:43862)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDBBm-0002x1-B3
	for libtasn1-commit@gnu.org; Sun, 16 Sep 2012 05:30:54 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDBBl-0008Ic-6q
	for libtasn1-commit@gnu.org; Sun, 16 Sep 2012 09:30:53 +0000
Date: Sun, 16 Sep 2012 09:30:53 +0000
Message-Id: <E1TDBBl-0008Ic-6q@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-9-gaad5b93
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: 01d2e13165310dadc4aebb4003c5b56683e034b1
X-Git-Newrev: aad5b936d1c336d2fefa0698d6838b1cfd8fae55
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Sep 2012 09:30:56 -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=aad5b936d1c336d2fefa0698d6838b1cfd8fae55

The branch, libtasn1_2_x has been updated
       via  aad5b936d1c336d2fefa0698d6838b1cfd8fae55 (commit)
      from  01d2e13165310dadc4aebb4003c5b56683e034b1 (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 aad5b936d1c336d2fefa0698d6838b1cfd8fae55
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sun Sep 16 11:30:43 2012 +0200

    updated news

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

Summary of changes:
 NEWS |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index cb4dfd9..8a346ef 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,8 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
-* Noteworthy changes in release 3.0 (unreleased) [stable]
+* Noteworthy changes in release 2.14 (unreleased) [stable]
 - Added asn1_read_node_value() to obtain a node's value.
+  This is to deprecate the export of the node_asn internal structure.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
 - Updated fix for DER decoding issue to not depend on specific compilers.


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Mon Sep 17 17:07:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TDiXm-0005r8-0z
	for mharc-libtasn1-commit@gnu.org; Mon, 17 Sep 2012 17:07:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57734)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDiXj-0005qo-0z
	for libtasn1-commit@gnu.org; Mon, 17 Sep 2012 17:07:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDiXh-0004RV-Rk
	for libtasn1-commit@gnu.org; Mon, 17 Sep 2012 17:07:46 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:40571)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDiXh-0004RO-OX
	for libtasn1-commit@gnu.org; Mon, 17 Sep 2012 17:07:45 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TDiXh-0001UI-8u
	for libtasn1-commit@gnu.org; Mon, 17 Sep 2012 21:07:45 +0000
Date: Mon, 17 Sep 2012 21:07:45 +0000
Message-Id: <E1TDiXh-0001UI-8u@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-27-ga5042fe
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 5d8044833ffaa6bbf9591956f216a1eb749bdef7
X-Git-Newrev: a5042fee63fb88b3132389aa65eeda31aca899fa
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Sep 2012 21:07:48 -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=a5042fee63fb88b3132389aa65eeda31aca899fa

The branch, master has been updated
       via  a5042fee63fb88b3132389aa65eeda31aca899fa (commit)
      from  5d8044833ffaa6bbf9591956f216a1eb749bdef7 (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 a5042fee63fb88b3132389aa65eeda31aca899fa
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Mon Sep 17 23:07:01 2012 +0200

    documented updates

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

Summary of changes:
 NEWS |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/NEWS b/NEWS
index cb4dfd9..e93c44b 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ GNU Libtasn1 NEWS                                     -*- outline -*-
 
 * Noteworthy changes in release 3.0 (unreleased) [stable]
 - Added asn1_read_node_value() to obtain a node's value.
+- Optimizations in internal tree allocation.
+- libtasn1.h no longer exports internal structures.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
 - Updated fix for DER decoding issue to not depend on specific compilers.


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Wed Sep 19 07:55:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TEIs6-000553-7w
	for mharc-libtasn1-commit@gnu.org; Wed, 19 Sep 2012 07:55:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56098)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEIs2-00054g-Si
	for libtasn1-commit@gnu.org; Wed, 19 Sep 2012 07:55:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEIrw-0006aD-9h
	for libtasn1-commit@gnu.org; Wed, 19 Sep 2012 07:55:10 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:33132)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEIrw-0006Z0-6T
	for libtasn1-commit@gnu.org; Wed, 19 Sep 2012 07:55:04 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEIrv-0005xx-68
	for libtasn1-commit@gnu.org; Wed, 19 Sep 2012 11:55:03 +0000
Date: Wed, 19 Sep 2012 11:55:03 +0000
Message-Id: <E1TEIrv-0005xx-68@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-16-g9c43f26
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: aad5b936d1c336d2fefa0698d6838b1cfd8fae55
X-Git-Newrev: 9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Sep 2012 11:55:12 -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=9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa

The branch, libtasn1_2_x has been updated
       via  9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa (commit)
       via  391e47d2da5a118333b93f9e430af97d82acc4bc (commit)
       via  f642c3dc09ed4916b3241874f0fc04780a65c99a (commit)
       via  f2f70e88b26b64fd5ba92fb6ee36c4dc12f5a2f2 (commit)
       via  fcd8e2fda4de6550f3c31e6794ef916f36f966ea (commit)
       via  fc38ad1ae5f7e2f3020c465696d2d64c775d7768 (commit)
       via  9a6b01014133e4fcfa80188f6bd38194c98cc792 (commit)
      from  aad5b936d1c336d2fefa0698d6838b1cfd8fae55 (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 9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:53:38 2012 +0200

    Bump copyright year.

commit 391e47d2da5a118333b93f9e430af97d82acc4bc
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:52:52 2012 +0200

    Generated.

commit f642c3dc09ed4916b3241874f0fc04780a65c99a
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:51:51 2012 +0200

    Doc fix.

commit f2f70e88b26b64fd5ba92fb6ee36c4dc12f5a2f2
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:51:25 2012 +0200

    Add Since: marker to asn1_read_node_value.

commit fcd8e2fda4de6550f3c31e6794ef916f36f966ea
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:49:32 2012 +0200

    Fix namespace of newly added struct.

commit fc38ad1ae5f7e2f3020c465696d2d64c775d7768
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:49:19 2012 +0200

    Bump because of new API.

commit 9a6b01014133e4fcfa80188f6bd38194c98cc792
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 19 13:49:11 2012 +0200

    Fix.

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

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

diff --git a/NEWS b/NEWS
index 8a346ef..fc3dd95 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,9 @@ GNU Libtasn1 NEWS                                     -*- outline -*-
 
 * Noteworthy changes in release 2.14 (unreleased) [stable]
 - Added asn1_read_node_value() to obtain a node's value.
-  This is to deprecate the export of the node_asn internal structure.
+  This is to deprecate the export of the node_asn internal structure
+  for the upcoming 3.x release.  The ASN1_DATA_NODE type and the
+  ASN1_ETYPE_* constants were added to support the new function.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
 - Updated fix for DER decoding issue to not depend on specific compilers.
diff --git a/configure.ac b/configure.ac
index 3e5ddd0..69eb13b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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, 4)
-AC_SUBST(LT_REVISION, 17)
-AC_SUBST(LT_AGE, 1)
+AC_SUBST(LT_CURRENT, 5)
+AC_SUBST(LT_REVISION, 0)
+AC_SUBST(LT_AGE, 2)
 
 AC_PROG_CC
 gl_EARLY
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 90c7ae1..db149ad 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -73,6 +73,7 @@ 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_tag.3
+gdoc_MANS += man/asn1_read_node_value.3
 gdoc_MANS += man/asn1_array2tree.3
 gdoc_MANS += man/asn1_delete_structure.3
 gdoc_MANS += man/asn1_delete_element.3
@@ -116,6 +117,7 @@ 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_tag.texi
+gdoc_TEXINFOS += texi/asn1_read_node_value.texi
 gdoc_TEXINFOS += texi/asn1_array2tree.texi
 gdoc_TEXINFOS += texi/asn1_delete_structure.texi
 gdoc_TEXINFOS += texi/asn1_delete_element.texi
@@ -167,7 +169,7 @@ doit:
 			-sourceversion $(VERSION) \
 			-include libtasn1.h \
 			-seeinfo $(PACKAGE) -verbatimcopying \
-			-copyright "2006-2011 Free Software Foundation, Inc." \
+			-copyright "2006-2012 Free Software Foundation, Inc." \
 			-function $$i \
 			$(GDOC_SRC) > man/$$i.3 && \
 		$(srcdir)/gdoc -texinfo -function $$i \
diff --git a/lib/element.c b/lib/element.c
index 8e8807b..8619a17 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -980,12 +980,14 @@ asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
 /**
  * asn1_read_node_value:
  * @node: pointer to a node.
- * @data: a point to a node_data_struct
+ * @data: a pointer to an asn1_data_node struct.
  *
  * Returns the value a data node inside a ASN1_TYPE structure.
  * The data returned should be handled as constant values.
  *
  * Returns: %ASN1_SUCCESS if the node exists.
+ *
+ * Since: 2.14
  **/
 asn1_retCode asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
 {
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index e9337e2..284a8e0 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -141,7 +141,7 @@ extern "C"
   };
   typedef struct static_struct_asn ASN1_ARRAY_TYPE;
 
-/* List of constants for field type of typedef node_asn  */
+/* List of constants for field "type" of ASN1_DATA_NODE. */
 #define ASN1_ETYPE_CONSTANT       1
 #define ASN1_ETYPE_IDENTIFIER     2
 #define ASN1_ETYPE_INTEGER        3
@@ -165,14 +165,14 @@ extern "C"
 #define ASN1_ETYPE_ENUMERATED    21
 #define ASN1_ETYPE_GENERALSTRING 27
 
-  struct node_data_struct
+  struct asn1_data_node
   {
     const char *name;		/* Node name */
     const void *value;		/* Node value */
     unsigned int value_len;     /* Node value size */
     unsigned int type;		/* Node value type (ASN1_ETYPE_*) */
   };
-  typedef struct node_data_struct ASN1_DATA_NODE;
+  typedef struct asn1_data_node ASN1_DATA_NODE;
 
   /***********************************/
   /*  Fixed constants                */


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Thu Sep 20 12:41:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TEjow-0006xc-0c
	for mharc-libtasn1-commit@gnu.org; Thu, 20 Sep 2012 12:41:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59957)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEjop-0006xI-KC
	for libtasn1-commit@gnu.org; Thu, 20 Sep 2012 12:41:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEjoo-0002Po-77
	for libtasn1-commit@gnu.org; Thu, 20 Sep 2012 12:41:39 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:59384)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEjoo-0002Pk-4G
	for libtasn1-commit@gnu.org; Thu, 20 Sep 2012 12:41:38 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TEjom-0001iR-IE
	for libtasn1-commit@gnu.org; Thu, 20 Sep 2012 16:41:37 +0000
Date: Thu, 20 Sep 2012 16:41:37 +0000
Message-Id: <E1TEjom-0001iR-IE@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-29-g5f2b8fa
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: a5042fee63fb88b3132389aa65eeda31aca899fa
X-Git-Newrev: 5f2b8fa3134a2b7a4225a410c4220400b53d5e75
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Sep 2012 16:41:44 -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=5f2b8fa3134a2b7a4225a410c4220400b53d5e75

The branch, master has been updated
       via  5f2b8fa3134a2b7a4225a410c4220400b53d5e75 (commit)
       via  4b008554bb6f4c6b18053e020166bcb24d6fe656 (commit)
      from  a5042fee63fb88b3132389aa65eeda31aca899fa (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 5f2b8fa3134a2b7a4225a410c4220400b53d5e75
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 20 18:39:21 2012 +0200

    other small fix

commit 4b008554bb6f4c6b18053e020166bcb24d6fe656
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Thu Sep 20 18:34:55 2012 +0200

    Some small optimizations and better checking of tree accesses.

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

Summary of changes:
 lib/decoding.c   |   21 +++++++++++++++++----
 lib/parser_aux.c |    5 ++++-
 2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/lib/decoding.c b/lib/decoding.c
index 4f21d24..c500417 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -728,8 +728,6 @@ _asn1_get_octet_string (const unsigned char *der, ASN1_TYPE node, int *len)
 	  asn1_length_der (tot_len, temp, &len2);
 	  _asn1_set_value (node, temp, len2);
 
-	  tot_len += len2;
-
 	  ret = _asn1_extract_der_octet (node, der, *len);
 	  if (ret != ASN1_SUCCESS)
 	    return ret;
@@ -741,9 +739,10 @@ _asn1_get_octet_string (const unsigned char *der, ASN1_TYPE node, int *len)
       len2 = asn1_get_length_der (der, *len, &len3);
       if (len2 < 0)
 	return ASN1_DER_ERROR;
-      if (node)
-	_asn1_set_value (node, der, len3 + len2);
+
       counter = len3 + len2;
+      if (node)
+	_asn1_set_value (node, der, counter);
     }
 
   *len = counter;
@@ -2248,6 +2247,9 @@ asn1_der_decoding_startEnd (ASN1_TYPE element, const void *ider, int len,
   p = node;
   while (1)
     {
+      if (p == NULL)
+        return ASN1_DER_ERROR;
+
       ris = ASN1_SUCCESS;
 
       if (move != UP)
@@ -2255,6 +2257,9 @@ asn1_der_decoding_startEnd (ASN1_TYPE element, const void *ider, int len,
 	  if (p->type & CONST_SET)
 	    {
 	      p2 = _asn1_find_up (p);
+              if (p2 == NULL)
+                return ASN1_DER_ERROR;
+
 	      len2 = _asn1_strtol (p2->value, NULL, 10);
 	      if (len2 == -1)
 		{
@@ -2274,7 +2279,9 @@ asn1_der_decoding_startEnd (ASN1_TYPE element, const void *ider, int len,
 		}
 	      else if (counter > len2)
 		return ASN1_DER_ERROR;
+
 	      p2 = p2->down;
+
 	      while (p2)
 		{
 		  if ((p2->type & CONST_SET) && (p2->type & CONST_NOT_USED))
@@ -2286,6 +2293,9 @@ asn1_der_decoding_startEnd (ASN1_TYPE element, const void *ider, int len,
 		      else
 			{
 			  p3 = p2->down;
+                          if (p3 == NULL)
+                            return ASN1_DER_ERROR;
+
 			  ris =
 			    _asn1_extract_tag_der (p3, der + counter,
 						   len - counter, &len2);
@@ -2309,6 +2319,9 @@ asn1_der_decoding_startEnd (ASN1_TYPE element, const void *ider, int len,
 	  if (type_field (p->type) == TYPE_CHOICE)
 	    {
 	      p = p->down;
+              if (p == NULL)
+                return ASN1_DER_ERROR;
+
 	      ris =
 		_asn1_extract_tag_der (p, der + counter, len - counter,
 				       &len2);
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 1d22951..7b89355 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -867,7 +867,10 @@ _asn1_check_identifier (ASN1_TYPE node)
 	  p2 = asn1_find_node (node, name2);
 	  if (p2 == NULL)
 	    {
-	      _asn1_strcpy (_asn1_identifierMissing, p->value);
+	      if (p->value)
+  	        _asn1_strcpy (_asn1_identifierMissing, p->value);
+              else
+  	        _asn1_strcpy (_asn1_identifierMissing, "(null)");
 	      return ASN1_IDENTIFIER_NOT_FOUND;
 	    }
 	}


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Fri Sep 21 18:45:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TFByP-0007Zw-Um
	for mharc-libtasn1-commit@gnu.org; Fri, 21 Sep 2012 18:45:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47001)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFByN-0007Zb-5p
	for libtasn1-commit@gnu.org; Fri, 21 Sep 2012 18:45:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFByL-0004ih-UR
	for libtasn1-commit@gnu.org; Fri, 21 Sep 2012 18:45:23 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:57190)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFByL-0004iH-Qy
	for libtasn1-commit@gnu.org; Fri, 21 Sep 2012 18:45:21 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFByL-0002y6-6Q
	for libtasn1-commit@gnu.org; Fri, 21 Sep 2012 22:45:21 +0000
Date: Fri, 21 Sep 2012 22:45:21 +0000
Message-Id: <E1TFByL-0002y6-6Q@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-30-g086afe3
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 5f2b8fa3134a2b7a4225a410c4220400b53d5e75
X-Git-Newrev: 086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Sep 2012 22:45:24 -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=086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b

The branch, master has been updated
       via  086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b (commit)
      from  5f2b8fa3134a2b7a4225a410c4220400b53d5e75 (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 086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sat Sep 22 00:28:57 2012 +0200

    increased benchmark time

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

Summary of changes:
 src/benchmark.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/benchmark.c b/src/benchmark.c
index 8ab3f8c..f18ed1c 100644
--- a/src/benchmark.c
+++ b/src/benchmark.c
@@ -102,14 +102,14 @@ void start_benchmark(struct benchmark_st * st)
       fprintf (stderr, "error: CreateThread %u\n", GetLastError ());
       exit(1);
     }
-  st->alarm_timeout.QuadPart = (2) * 10000000;
+  st->alarm_timeout.QuadPart = (5) * 10000000;
   if (SetWaitableTimer (st->wtimer, &st->alarm_timeout, 0, NULL, NULL, FALSE) == 0)
     {
       fprintf (stderr, "error: SetWaitableTimer %u\n", GetLastError ());
       exit(1);
     }
 #else
-  alarm (2);
+  alarm (5);
 #endif
   
 }


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Sun Sep 23 06:56:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TFjrM-0003Ok-M8
	for mharc-libtasn1-commit@gnu.org; Sun, 23 Sep 2012 06:56:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55023)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFjrI-0003N3-Kn
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 06:56:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFjrG-0007bI-4X
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 06:56:20 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:49207)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFjrG-0007bC-0n
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 06:56:18 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFjrE-00077N-0a
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 10:56:17 +0000
Date: Sun, 23 Sep 2012 10:56:16 +0000
Message-Id: <E1TFjrE-00077N-0a@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-31-g80863f7
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b
X-Git-Newrev: 80863f75dfa06b3a256760da86850bcc720a5e61
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Sep 2012 10:56:22 -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=80863f75dfa06b3a256760da86850bcc720a5e61

The branch, master has been updated
       via  80863f75dfa06b3a256760da86850bcc720a5e61 (commit)
      from  086afe3375ee1fe3cda34c1b2302bdd6c95ebc0b (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 80863f75dfa06b3a256760da86850bcc720a5e61
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sun Sep 23 12:55:40 2012 +0200

    improve performance by 50% by using hashes to compare strings.

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

Summary of changes:
 NEWS             |    1 +
 lib/Makefile.am  |    3 +-
 lib/gstr.c       |   11 ++-
 lib/gstr.h       |    2 +-
 lib/hash.c       |  235 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/int.h        |    2 +
 lib/parser_aux.c |   33 ++++++--
 7 files changed, 273 insertions(+), 14 deletions(-)
 create mode 100644 lib/hash.c

diff --git a/NEWS b/NEWS
index e93c44b..aa30c23 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ GNU Libtasn1 NEWS                                     -*- outline -*-
 * Noteworthy changes in release 3.0 (unreleased) [stable]
 - Added asn1_read_node_value() to obtain a node's value.
 - Optimizations in internal tree allocation.
+- Optimizations in tree search.
 - libtasn1.h no longer exports internal structures.
 
 * Noteworthy changes in release 2.13 (2012-05-31) [stable]
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 044f72d..03b49f5 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -44,7 +44,8 @@ libtasn1_la_SOURCES =	\
 	parser_aux.h	\
 	structure.c	\
 	structure.h	\
-	version.c
+	version.c	\
+	hash.c
 
 libtasn1_la_LIBADD = gllib/libgnu.la
 
diff --git a/lib/gstr.c b/lib/gstr.c
index 4785073..0558c77 100644
--- a/lib/gstr.c
+++ b/lib/gstr.c
@@ -48,7 +48,8 @@ _asn1_str_cat (char *dest, size_t dest_tot_size, const char *src)
     }
 }
 
-void
+/* Returns the bytes copied (not including the null terminator) */
+unsigned int
 _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src)
 {
   size_t str_size = strlen (src);
@@ -56,13 +57,17 @@ _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src)
   if (dest_tot_size > str_size)
     {
       strcpy (dest, src);
+      return str_size;
     }
   else
     {
       if (dest_tot_size > 0)
 	{
-	  memcpy (dest, src, dest_tot_size - 1);
-	  dest[dest_tot_size - 1] = 0;
+	  str_size = dest_tot_size - 1;
+	  memcpy (dest, src, str_size);
+	  dest[str_size] = 0;
+	  return str_size;
 	}
+      else return 0;
     }
 }
diff --git a/lib/gstr.h b/lib/gstr.h
index baaa6a0..672d59e 100644
--- a/lib/gstr.h
+++ b/lib/gstr.h
@@ -19,7 +19,7 @@
  * 02110-1301, USA
  */
 
-void _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src);
+unsigned int _asn1_str_cpy (char *dest, size_t dest_tot_size, const char *src);
 void _asn1_str_cat (char *dest, size_t dest_tot_size, const char *src);
 
 #define Estrcpy(x,y) _asn1_str_cpy(x,ASN1_MAX_ERROR_DESCRIPTION_SIZE,y)
diff --git a/lib/hash.c b/lib/hash.c
new file mode 100644
index 0000000..50da70c
--- /dev/null
+++ b/lib/hash.c
@@ -0,0 +1,235 @@
+/*
+ * Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ *
+ * Author: Nikos Mavrogiannopoulos
+ *
+ * This file is part of GnuTLS.
+ *
+ * The GnuTLS is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 3 of
+ * the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+#include <int.h>
+
+#define INIT_VAL 0x33a1
+/*
+-------------------------------------------------------------------------------
+lookup3.c, by Bob Jenkins, May 2006, Public Domain.
+
+These are functions for producing 32-bit hashes for hash table lookup.
+hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final() 
+are externally useful functions.  Routines to test the hash are included 
+if SELF_TEST is defined.  You can use this free for any purpose.  It's in
+the public domain.  It has no warranty.
+
+You probably want to use hashlittle().  hashlittle() and hashbig()
+hash byte arrays.  hashlittle() is faster than hashbig() on
+little-endian machines.  Intel and AMD are little-endian machines.
+On second thought, you probably want hashlittle2(), which is identical to
+hashlittle() except it returns two 32-bit hashes for the price of one.  
+You could implement hashbig2() if you wanted but I haven't bothered here.
+
+If you want to find a hash of, say, exactly 7 integers, do
+  a = i1;  b = i2;  c = i3;
+  mix(a,b,c);
+  a += i4; b += i5; c += i6;
+  mix(a,b,c);
+  a += i7;
+  final(a,b,c);
+then use c as the hash value.  If you have a variable length array of
+4-byte integers to hash, use hashword().  If you have a byte array (like
+a character string), use hashlittle().  If you have several byte arrays, or
+a mix of things, see the comments above hashlittle().  
+
+Why is this so big?  I read 12 bytes at a time into 3 4-byte integers, 
+then mix those integers.  This is fast (you can do a lot more thorough
+mixing with 12*3 instructions on 3 integers than you can with 3 instructions
+on 1 byte), but shoehorning those bytes into integers efficiently is messy.
+-------------------------------------------------------------------------------
+*/
+#define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
+
+/*
+-------------------------------------------------------------------------------
+mix -- mix 3 32-bit values reversibly.
+
+This is reversible, so any information in (a,b,c) before mix() is
+still in (a,b,c) after mix().
+
+If four pairs of (a,b,c) inputs are run through mix(), or through
+mix() in reverse, there are at least 32 bits of the output that
+are sometimes the same for one pair and different for another pair.
+This was tested for:
+* pairs that differed by one bit, by two bits, in any combination
+  of top bits of (a,b,c), or in any combination of bottom bits of
+  (a,b,c).
+* "differ" is defined as +, -, ^, or ~^.  For + and -, I transformed
+  the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
+  is commonly produced by subtraction) look like a single 1-bit
+  difference.
+* the base values were pseudorandom, all zero but one bit set, or 
+  all zero plus a counter that starts at zero.
+
+Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that
+satisfy this are
+    4  6  8 16 19  4
+    9 15  3 18 27 15
+   14  9  3  7 17  3
+Well, "9 15 3 18 27 15" didn't quite get 32 bits diffing
+for "differ" defined as + with a one-bit base and a two-bit delta.  I
+used http://burtleburtle.net/bob/hash/avalanche.html to choose 
+the operations, constants, and arrangements of the variables.
+
+This does not achieve avalanche.  There are input bits of (a,b,c)
+that fail to affect some output bits of (a,b,c), especially of a.  The
+most thoroughly mixed value is c, but it doesn't really even achieve
+avalanche in c.
+
+This allows some parallelism.  Read-after-writes are good at doubling
+the number of bits affected, so the goal of mixing pulls in the opposite
+direction as the goal of parallelism.  I did what I could.  Rotates
+seem to cost as much as shifts on every machine I could lay my hands
+on, and rotates are much kinder to the top and bottom bits, so I used
+rotates.
+-------------------------------------------------------------------------------
+*/
+#define mix(a,b,c) \
+{ \
+  a -= c;  a ^= rot(c, 4);  c += b; \
+  b -= a;  b ^= rot(a, 6);  a += c; \
+  c -= b;  c ^= rot(b, 8);  b += a; \
+  a -= c;  a ^= rot(c,16);  c += b; \
+  b -= a;  b ^= rot(a,19);  a += c; \
+  c -= b;  c ^= rot(b, 4);  b += a; \
+}
+
+/*
+-------------------------------------------------------------------------------
+final -- final mixing of 3 32-bit values (a,b,c) into c
+
+Pairs of (a,b,c) values differing in only a few bits will usually
+produce values of c that look totally different.  This was tested for
+* pairs that differed by one bit, by two bits, in any combination
+  of top bits of (a,b,c), or in any combination of bottom bits of
+  (a,b,c).
+* "differ" is defined as +, -, ^, or ~^.  For + and -, I transformed
+  the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
+  is commonly produced by subtraction) look like a single 1-bit
+  difference.
+* the base values were pseudorandom, all zero but one bit set, or 
+  all zero plus a counter that starts at zero.
+
+These constants passed:
+ 14 11 25 16 4 14 24
+ 12 14 25 16 4 14 24
+and these came close:
+  4  8 15 26 3 22 24
+ 10  8 15 26 3 22 24
+ 11  8 15 26 3 22 24
+-------------------------------------------------------------------------------
+*/
+#define final(a,b,c) \
+{ \
+  c ^= b; c -= rot(b,14); \
+  a ^= c; a -= rot(c,11); \
+  b ^= a; b -= rot(a,25); \
+  c ^= b; c -= rot(b,16); \
+  a ^= c; a -= rot(c,4);  \
+  b ^= a; b -= rot(a,14); \
+  c ^= b; c -= rot(b,24); \
+}
+
+
+/*
+-------------------------------------------------------------------------------
+hashlittle() -- hash a variable-length key into a 32-bit value
+  k       : the key (the unaligned variable-length array of bytes)
+  length  : the length of the key, counting by bytes
+  initval : can be any 4-byte value
+Returns a 32-bit value.  Every bit of the key affects every bit of
+the return value.  Two keys differing by one or two bits will have
+totally different hash values.
+
+The best hash table sizes are powers of 2.  There is no need to do
+mod a prime (mod is sooo slow!).  If you need less than 32 bits,
+use a bitmask.  For example, if you need only 10 bits, do
+  h = (h & hashmask(10));
+In which case, the hash table should have hashsize(10) elements.
+
+If you are hashing n strings (uint8_t **)k, do it like this:
+  for (i=0, h=0; i<n; ++i) h = hashlittle( k[i], len[i], h);
+
+By Bob Jenkins, 2006.  bob_jenkins@burtleburtle.net.  You may use this
+code any way you wish, private, educational, or commercial.  It's free.
+
+Use for hash table lookup, or anything where one collision in 2^^32 is
+acceptable.  Do NOT use for cryptographic purposes.
+-------------------------------------------------------------------------------
+*/
+
+uint32_t _asn1_bhash( const void *key, size_t length)
+{
+  uint32_t a,b,c;                                          /* internal state */
+  const uint8_t *k;
+
+  /* Set up the internal state */
+  a = b = c = 0xdeadbeef + ((uint32_t)length) + INIT_VAL;
+
+  k = (const uint8_t *)key;
+
+  /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
+  while (length > 12)
+  {
+    a += k[0];
+    a += ((uint32_t)k[1])<<8;
+    a += ((uint32_t)k[2])<<16;
+    a += ((uint32_t)k[3])<<24;
+    b += k[4];
+    b += ((uint32_t)k[5])<<8;
+    b += ((uint32_t)k[6])<<16;
+    b += ((uint32_t)k[7])<<24;
+    c += k[8];
+    c += ((uint32_t)k[9])<<8;
+    c += ((uint32_t)k[10])<<16;
+    c += ((uint32_t)k[11])<<24;
+    mix(a,b,c);
+    length -= 12;
+    k += 12;
+  }
+
+  /*-------------------------------- last block: affect all 32 bits of (c) */
+  switch(length)                   /* all the case statements fall through */
+  {
+    case 12: c+=((uint32_t)k[11])<<24;
+    case 11: c+=((uint32_t)k[10])<<16;
+    case 10: c+=((uint32_t)k[9])<<8;
+    case 9 : c+=k[8];
+    case 8 : b+=((uint32_t)k[7])<<24;
+    case 7 : b+=((uint32_t)k[6])<<16;
+    case 6 : b+=((uint32_t)k[5])<<8;
+    case 5 : b+=k[4];
+    case 4 : a+=((uint32_t)k[3])<<24;
+    case 3 : a+=((uint32_t)k[2])<<16;
+    case 2 : a+=((uint32_t)k[1])<<8;
+    case 1 : a+=k[0];
+             break;
+    case 0 : return c;
+  }
+
+  final(a,b,c);
+  return c;
+}
+
+
+
diff --git a/lib/int.h b/lib/int.h
index fad4dbe..9e6bc89 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -47,6 +47,7 @@ struct node_asn_struct
 {
   /* public fields: */
   char name[ASN1_MAX_NAME_SIZE+1];			/* Node name */
+  unsigned int name_hash;
   unsigned int type;		/* Node type */
   unsigned char *value;		/* Node value */
   int value_len;
@@ -63,6 +64,7 @@ struct node_asn_struct
 #define _asn1_strcmp(a,b) strcmp((const char *)a, (const char *)b)
 #define _asn1_strcpy(a,b) strcpy((char *)a, (const char *)b)
 #define _asn1_strcat(a,b) strcat((char *)a, (const char *)b)
+uint32_t _asn1_bhash( const void *key, size_t length);
 
 #define MAX_LOG_SIZE 1024	/* maximum number of characters of a log message */
 
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 7b89355..323a5ea 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -95,6 +95,8 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
   ASN1_TYPE p;
   char *n_end, n[ASN1_MAX_NAME_SIZE + 1];
   const char *n_start;
+  unsigned int nsize;
+  unsigned int nhash;
 
   if (pointer == NULL)
     return NULL;
@@ -110,20 +112,25 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
       n_end = strchr (n_start, '.');	/* search the first dot */
       if (n_end)
 	{
-	  memcpy (n, n_start, n_end - n_start);
-	  n[n_end - n_start] = 0;
+	  nsize = n_end - n_start;
+	  memcpy (n, n_start, nsize);
+	  n[nsize] = 0;
 	  n_start = n_end;
 	  n_start++;
+
+          nhash = _asn1_bhash(n, nsize);
 	}
       else
 	{
-	  _asn1_str_cpy (n, sizeof (n), n_start);
+	  nsize = _asn1_str_cpy (n, sizeof (n), n_start);
+          nhash = _asn1_bhash(n, nsize);
+
 	  n_start = NULL;
 	}
 
       while (p)
 	{
-	  if ((p->name) && (!strcmp (p->name, n)))
+	  if ((p->name) && nhash == p->name_hash && (!strcmp (p->name, n)))
 	    break;
 	  else
 	    p = p->right;
@@ -143,14 +150,18 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
       n_end = strchr (n_start, '.');	/* search the next dot */
       if (n_end)
 	{
-	  memcpy (n, n_start, n_end - n_start);
-	  n[n_end - n_start] = 0;
+	  nsize = n_end - n_start;
+	  memcpy (n, n_start, nsize);
+	  n[nsize] = 0;
 	  n_start = n_end;
 	  n_start++;
+
+          nhash = _asn1_bhash(n, nsize);
 	}
       else
 	{
-	  _asn1_str_cpy (n, sizeof (n), n_start);
+	  nsize = _asn1_str_cpy (n, sizeof (n), n_start);
+          nhash = _asn1_bhash(n, nsize);
 	  n_start = NULL;
 	}
 
@@ -172,7 +183,7 @@ asn1_find_node (ASN1_TYPE pointer, const char *name)
 	{			/* no "?LAST" */
 	  while (p)
 	    {
-	      if (!strcmp (p->name, n))
+	      if (p->name_hash == nhash && !strcmp (p->name, n))
 		break;
 	      else
 		p = p->right;
@@ -346,16 +357,20 @@ _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len)
 ASN1_TYPE
 _asn1_set_name (ASN1_TYPE node, const char *name)
 {
+unsigned int nsize;
+
   if (node == NULL)
     return node;
 
   if (name == NULL)
     {
       node->name[0] = 0;
+      node->name_hash = _asn1_bhash(node->name, 0);
       return node;
     }
 
-  _asn1_str_cpy (node->name, sizeof (node->name), name);
+  nsize = _asn1_str_cpy (node->name, sizeof (node->name), name);
+  node->name_hash = _asn1_bhash(node->name, nsize);
 
   return node;
 }


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Sun Sep 23 10:19:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TFn1p-00005x-JJ
	for mharc-libtasn1-commit@gnu.org; Sun, 23 Sep 2012 10:19:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43559)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFn1l-0008Rh-C2
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 10:19:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFn1j-0001N2-V5
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 10:19:21 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:50588)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFn1j-0001MK-RM
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 10:19:19 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TFn1j-00009A-2x
	for libtasn1-commit@gnu.org; Sun, 23 Sep 2012 14:19:19 +0000
Date: Sun, 23 Sep 2012 14:19:19 +0000
Message-Id: <E1TFn1j-00009A-2x@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-32-ge5fe288
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 80863f75dfa06b3a256760da86850bcc720a5e61
X-Git-Newrev: e5fe28809968164765d0733a6a579991006f8d58
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Sep 2012 14:19:23 -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=e5fe28809968164765d0733a6a579991006f8d58

The branch, master has been updated
       via  e5fe28809968164765d0733a6a579991006f8d58 (commit)
      from  80863f75dfa06b3a256760da86850bcc720a5e61 (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 e5fe28809968164765d0733a6a579991006f8d58
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Sun Sep 23 16:10:57 2012 +0200

    small optimizations to avoid recalculation of hashes when copying nodes.

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

Summary of changes:
 lib/decoding.c   |    4 ++--
 lib/parser_aux.c |   29 +++++++++++++++++++++++++++++
 lib/parser_aux.h |    2 ++
 lib/structure.c  |    4 ++--
 4 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/lib/decoding.c b/lib/decoding.c
index c500417..717112b 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -2675,7 +2675,7 @@ asn1_expand_any_defined_by (ASN1_TYPE definitions, ASN1_TYPE * element)
 				asn1_create_element (definitions, name, &aux);
 			      if (result == ASN1_SUCCESS)
 				{
-				  _asn1_set_name (aux, p->name);
+				  _asn1_cpy_name (aux, p);
 				  len2 =
 				    asn1_get_length_der (p->value,
 							 p->value_len, &len3);
@@ -2857,7 +2857,7 @@ asn1_expand_octet_string (ASN1_TYPE definitions, ASN1_TYPE * element,
 		  result = asn1_create_element (definitions, name, &aux);
 		  if (result == ASN1_SUCCESS)
 		    {
-		      _asn1_set_name (aux, octetNode->name);
+		      _asn1_cpy_name (aux, octetNode);
 		      len2 =
 			asn1_get_length_der (octetNode->value,
 					     octetNode->value_len, &len3);
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 323a5ea..ff701bc 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -376,6 +376,35 @@ unsigned int nsize;
 }
 
 /******************************************************************/
+/* Function : _asn1_cpy_name                                      */
+/* Description: copies the field NAME in a NODE_ASN element.      */
+/* Parameters:                                                    */
+/*   dst: a dest element pointer.                                 */
+/*   src: a source element pointer.                               */
+/* Return: pointer to the NODE_ASN element.                       */
+/******************************************************************/
+ASN1_TYPE
+_asn1_cpy_name (ASN1_TYPE dst, ASN1_TYPE src)
+{
+unsigned int nsize;
+
+  if (dst == NULL)
+    return dst;
+
+  if (src == NULL)
+    {
+      dst->name[0] = 0;
+      dst->name_hash = _asn1_bhash(dst->name, 0);
+      return dst;
+    }
+
+  nsize = _asn1_str_cpy (dst->name, sizeof (dst->name), src->name);
+  dst->name_hash = src->name_hash;
+
+  return dst;
+}
+
+/******************************************************************/
 /* Function : _asn1_set_right                                     */
 /* Description: sets the field RIGHT in a NODE_ASN element.       */
 /* Parameters:                                                    */
diff --git a/lib/parser_aux.h b/lib/parser_aux.h
index 0fc5f0d..f3aeb54 100644
--- a/lib/parser_aux.h
+++ b/lib/parser_aux.h
@@ -42,6 +42,8 @@ _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len);
 
 ASN1_TYPE _asn1_set_name (ASN1_TYPE node, const char *name);
 
+ASN1_TYPE _asn1_cpy_name (ASN1_TYPE dst, ASN1_TYPE src);
+
 ASN1_TYPE _asn1_set_right (ASN1_TYPE node, ASN1_TYPE right);
 
 ASN1_TYPE _asn1_get_last_right (ASN1_TYPE node);
diff --git a/lib/structure.c b/lib/structure.c
index 78e1f89..7d622ce 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -392,7 +392,7 @@ _asn1_copy_structure3 (ASN1_TYPE source_node)
       if (move != UP)
 	{
 	  if (p_s->name[0] != 0)
-	    _asn1_set_name (p_d, p_s->name);
+	    _asn1_cpy_name (p_d, p_s);
 	  if (p_s->value)
 	    _asn1_set_value (p_d, p_s->value, p_s->value_len);
 	  if (p_s->down)
@@ -551,7 +551,7 @@ _asn1_expand_identifier (ASN1_TYPE * node, ASN1_TYPE root)
 		{
 		  return ASN1_IDENTIFIER_NOT_FOUND;
 		}
-	      _asn1_set_name (p2, p->name);
+	      _asn1_cpy_name (p2, p);
 	      p2->right = p->right;
 	      p2->left = p->left;
 	      if (p->right)


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Mon Sep 24 07:40:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TG71q-0007Lp-Ec
	for mharc-libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:40:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50939)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG71i-0007KW-VL
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:40:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG71c-0001O2-AD
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:40:38 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:37402)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG71c-0001Nf-6t
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:40:32 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG71W-0001ug-V3
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 11:40:30 +0000
Date: Mon, 24 Sep 2012 11:40:27 +0000
Message-Id: <E1TG71W-0001ug-V3@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-17-g8608ce0
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: 9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa
X-Git-Newrev: 8608ce04d0fd1d919d0a6c38568bc1f08b2776dc
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Sep 2012 11:40: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=8608ce04d0fd1d919d0a6c38568bc1f08b2776dc

The branch, libtasn1_2_x has been updated
       via  8608ce04d0fd1d919d0a6c38568bc1f08b2776dc (commit)
      from  9c43f26f378b7d89cc4b0e9f7cd11587f3721eaa (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 8608ce04d0fd1d919d0a6c38568bc1f08b2776dc
Author: Simon Josefsson <simon@josefsson.org>
Date:   Mon Sep 24 13:39:44 2012 +0200

    Update for 2.13.

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

Summary of changes:
 doc/announce.txt |   40 ++++++++++++++++++----------------------
 1 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/doc/announce.txt b/doc/announce.txt
index 1b1afaa..fb199d4 100644
--- a/doc/announce.txt
+++ b/doc/announce.txt
@@ -1,35 +1,31 @@
 To: help-libtasn1@gnu.org, info-gnu@gnu.org
-Subject: GNU Libtasn1 2.12 released
+Subject: GNU Libtasn1 2.13 released
 <#part sign=pgpmime>
 GNU Libtasn1 is a standalone library written in C for manipulating ASN.1
 objects including DER/BER encoding/decoding.  GNU Libtasn1 is used by
 GnuTLS to handle X.509 structures and by GNU Shishi to handle Kerberos
 V5 structures.
 
-* Noteworthy changes in release 2.12 (2012-03-19) [stable]
-- Cleanup license headers.
-- build: Update gnulib files.
-- Corrected DER decoding issue (reported by Matthew Hall).
-  Added self check to detect the problem, see tests/Test_overflow.c.
-  This problem can lead to at least remotely triggered crashes, see
-  further analysis on the libtasn1 mailing list.
+* Noteworthy changes in release 2.13 (2012-05-31) [stable]
+- Updated fix for DER decoding issue to not depend on specific compilers.
+- Updated DER decoding check to apply to short form integers as well.
 
 Homepage:
   https://www.gnu.org/software/libtasn1/
 
 Here are the compressed sources (1.9MB):
-  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12.tar.gz
-  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12.tar.gz
+  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13.tar.gz
+  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13.tar.gz
 
 Here are GPG detached signatures using key 0xB565716F:
-  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12.tar.gz.sig
-  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12.tar.gz.sig
+  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13.tar.gz.sig
+  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13.tar.gz.sig
 
 We publish Windows binaries for this release (32 and 64 bits):
-  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12-win32.zip
-  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12-win32.zip
-  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12-win64.zip
-  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.12-win64.zip
+  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13-win32.zip
+  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13-win32.zip
+  ftp://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13-win64.zip
+  http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.13-win64.zip
 
 Commercial support contracts for Libtasn1 are available, and they help
 finance continued maintenance.  Simon Josefsson Datakonsult AB, a
@@ -83,14 +79,14 @@ The key is available from:
 
 Here are the SHA-1 and SHA-224 checksums:
 
-b73539aee5444efb5e606b94bdf3ec5bfedb8620  libtasn1-2.12.tar.gz
-011e8ab84d57b441f0c1dc18eebdda2ce3960bc9b7fdf8e1d4e35085  libtasn1-2.12.tar.gz
+89120584bfedd244dab92df99e955a174c481851  libtasn1-2.13.tar.gz
+e128900148456b32650e86c0d3cf8a0dd5c60a9dd17d20a6ea9b771f  libtasn1-2.13.tar.gz
 
-919933732983e5075a2df288c1a3eb413e8c86c5  libtasn1-2.12-win32.zip
-29b40469ae38ba7ff71abde5b806c8d30a222723443386eff4923c57  libtasn1-2.12-win32.zip
+5c2b8e980043041c94ec760e62e243411eb786bc  libtasn1-2.13-win32.zip
+4739fafeeef0a429419c5aef706d1a5115720d96d097f871d9aa98f0  libtasn1-2.13-win32.zip
 
-de3add4d82aef98b7e52fff1ae72c1136781363d  libtasn1-2.12-win64.zip
-6cb1e3171e38e786391cb9dd702e12724f0a19c1cf6c1953a8552e82  libtasn1-2.12-win64.zip
+d139349ba8c2aa45e26a89652731b017fe27232a  libtasn1-2.13-win64.zip
+0fe4efa606b90da07abdaa5fbce8c52b321243695bb9c9d2f94db1cc  libtasn1-2.13-win64.zip
 
 Happy hacking,
 Simon


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Mon Sep 24 07:52:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TG7DE-0003Z5-KM
	for mharc-libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:52:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46288)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG7D2-0003XO-7w
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:52:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG7Cu-0007TK-IH
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:52:20 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:38800)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG7Cu-0007Sc-Ah
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 07:52:12 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG7Cq-0002oV-VG
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 11:52:11 +0000
Date: Mon, 24 Sep 2012 11:52:09 +0000
Message-Id: <E1TG7Cq-0002oV-VG@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-19-g0f18245
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: 8608ce04d0fd1d919d0a6c38568bc1f08b2776dc
X-Git-Newrev: 0f18245c6a19c407a65ae5b2d39dec032c41f8ac
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Sep 2012 11:52: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=0f18245c6a19c407a65ae5b2d39dec032c41f8ac

The branch, libtasn1_2_x has been updated
       via  0f18245c6a19c407a65ae5b2d39dec032c41f8ac (commit)
       via  d03b33325f55071bcf075678caf6ca335e4235cd (commit)
      from  8608ce04d0fd1d919d0a6c38568bc1f08b2776dc (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 0f18245c6a19c407a65ae5b2d39dec032c41f8ac
Author: Simon Josefsson <simon@josefsson.org>
Date:   Mon Sep 24 13:50:20 2012 +0200

    Fix syntax-check warnings.

commit d03b33325f55071bcf075678caf6ca335e4235cd
Author: Simon Josefsson <simon@josefsson.org>
Date:   Mon Sep 24 13:50:04 2012 +0200

    Update gnulib files.

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

Summary of changes:
 build-aux/gendocs.sh      |   35 ++++--
 build-aux/gnupload        |   28 ++++-
 gl/Makefile.am            |    2 +-
 gl/errno.in.h             |   48 +++++++-
 gl/fstat.c                |    2 +
 gl/gettext.h              |    9 +-
 gl/m4/errno_h.m4          |   11 ++-
 gl/m4/extensions.m4       |    4 +-
 gl/m4/getopt.m4           |  291 ++++++++++++++++++++++++--------------------
 gl/m4/gnulib-cache.m4     |    2 +-
 gl/m4/gnulib-common.m4    |    4 +-
 gl/m4/gnulib-comp.m4      |  190 +++++++++++++++---------------
 gl/m4/largefile.m4        |    2 +-
 gl/m4/manywarnings.m4     |  153 ++++++++++++++----------
 gl/m4/multiarch.m4        |    4 +-
 gl/m4/nocrash.m4          |    4 +-
 gl/m4/stdio_h.m4          |    4 +-
 gl/m4/sys_stat_h.m4       |    5 +-
 gl/m4/time_h.m4           |    4 +-
 gl/stdint.in.h            |    2 +-
 gl/stdio-impl.h           |    4 +-
 gl/stdlib.in.h            |    4 +-
 gl/unistd.in.h            |    2 +-
 lib/element.c             |    5 +-
 lib/gllib/stdint.in.h     |    2 +-
 lib/glm4/extensions.m4    |    4 +-
 lib/glm4/gnulib-cache.m4  |    2 +-
 lib/glm4/gnulib-common.m4 |    4 +-
 lib/glm4/gnulib-comp.m4   |   24 ++--
 lib/glm4/multiarch.m4     |    4 +-
 lib/glm4/visibility.m4    |    4 +-
 lib/libtasn1.map          |    1 -
 maint.mk                  |  149 ++++++++++++++++-------
 33 files changed, 600 insertions(+), 413 deletions(-)

diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh
index c8abd55..c293f96 100755
--- a/build-aux/gendocs.sh
+++ b/build-aux/gendocs.sh
@@ -2,10 +2,10 @@
 # gendocs.sh -- generate a GNU manual in many formats.  This script is
 #   mentioned in maintain.texi.  See the help message below for usage details.
 
-scriptversion=2011-04-08.14
+scriptversion=2012-09-02.17
 
-# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
+# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+# Free Software Foundation, Inc.
 #
 # 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
@@ -51,15 +51,16 @@ unset use_texi2html
 
 version="gendocs.sh $scriptversion
 
-Copyright 2010 Free Software Foundation, Inc.
+Copyright 2012 Free Software Foundation, Inc.
 There is NO warranty.  You may redistribute this software
 under the terms of the GNU General Public License.
 For more information about these matters, see the files named COPYING."
 
 usage="Usage: $prog [OPTION]... PACKAGE MANUAL-TITLE
 
-Generate various output formats from PACKAGE.texinfo (or .texi or .txi) source.
-See the GNU Maintainers document for a more extensive discussion:
+Generate output in various formats from PACKAGE.texinfo (or .texi or
+.txi) source.  See the GNU Maintainers document for a more extensive
+discussion:
   http://www.gnu.org/prep/maintain_toc.html
 
 Options:
@@ -68,6 +69,7 @@ Options:
   --email ADR use ADR as contact in generated web pages.
   --docbook   convert to DocBook too (xml, txt, html, pdf and ps).
   --html ARG  pass indicated ARG to makeinfo or texi2html for HTML targets.
+  --info ARG  pass indicated ARG to makeinfo for Info, instead of --no-split.
   --texi2html use texi2html to generate HTML targets.
   --help      display this help and exit successfully.
   --version   display version information and exit successfully.
@@ -80,11 +82,11 @@ Typical sequence:
   wget \"$templateurl\"
   $prog --email BUGLIST MANUAL \"GNU MANUAL - One-line description\"
 
-Output will be in a new subdirectory \"manual\" (by default, use -o OUTDIR
-to override).  Move all the new files into your web CVS tree, as
-explained in the Web Pages node of maintain.texi.
+Output will be in a new subdirectory \"manual\" (by default;
+use -o OUTDIR to override).  Move all the new files into your web CVS
+tree, as explained in the Web Pages node of maintain.texi.
 
-Please use the --email ADDRESS option to specify your bug-reporting
+Please do use the --email ADDRESS option to specify your bug-reporting
 address in the generated HTML pages.
 
 MANUAL-TITLE is included as part of the HTML <title> of the overall
@@ -102,6 +104,9 @@ If a manual's Texinfo sources are spread across several directories,
 first copy or symlink all Texinfo sources into a single directory.
 (Part of the script's work is to make a tar.gz of the sources.)
 
+As implied above, by default monolithic Info files are generated.
+If you want split Info, or other Info options, use --info to override.
+
 You can set the environment variables MAKEINFO, TEXI2DVI, TEXI2HTML, and
 DVIPS to control the programs that get executed, and
 GENDOCS_TEMPLATE_DIR to control where the gendocs_template file is
@@ -126,6 +131,7 @@ MANUAL_TITLE=
 PACKAGE=
 EMAIL=webmasters@gnu.org  # please override with --email
 htmlarg=
+infoarg=--no-split
 outdir=manual
 srcfile=
 
@@ -138,6 +144,7 @@ while test $# -gt 0; do
     -o) shift; outdir=$1;;
     --docbook) docbook=yes;;
     --html) shift; htmlarg=$1;;
+    --info) shift; infoarg=$1;;
     --texi2html) use_texi2html=1;;
     -*)
       echo "$0: Unknown option \`$1'." >&2
@@ -188,10 +195,10 @@ case $outdir in
   *)  abs_outdir=$srcdir/$outdir;;
 esac
 
-echo Generating output formats for $srcfile
+echo "Generating output formats for $srcfile"
 
-cmd="$SETLANG $MAKEINFO -o $PACKAGE.info \"$srcfile\""
-echo "Generating info files... ($cmd)"
+cmd="$SETLANG $MAKEINFO -o $PACKAGE.info $infoarg \"$srcfile\""
+echo "Generating info file(s)... ($cmd)"
 eval "$cmd"
 mkdir -p "$outdir/"
 tar czf "$outdir/$PACKAGE.info.tar.gz" $PACKAGE.info*
@@ -204,7 +211,7 @@ echo "Generating dvi ... ($cmd)"
 eval "$cmd"
 
 # now, before we compress dvi:
-echo Generating postscript...
+echo "Generating postscript..."
 ${DVIPS} $PACKAGE -o
 gzip -f -9 $PACKAGE.ps
 ps_gz_size=`calcsize $PACKAGE.ps.gz`
diff --git a/build-aux/gnupload b/build-aux/gnupload
index 40a59d3..a0e5c7b 100755
--- a/build-aux/gnupload
+++ b/build-aux/gnupload
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Sign files and upload them.
 
-scriptversion=2012-01-15.15; # UTC
+scriptversion=2012-06-11.00; # UTC
 
 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
 #
@@ -28,6 +28,7 @@ GPG='gpg --batch --no-tty'
 conffile=.gnuploadrc
 to=
 dry_run=false
+replace=
 symlink_files=
 delete_files=
 delete_symlinks=
@@ -53,8 +54,10 @@ Options:
   --to DEST                specify one destination for FILES
                            (multiple --to options are allowed)
   --user NAME              sign with key NAME
+  --replace                allow replacements of existing files
   --symlink-regex[=EXPR]   use sed script EXPR to compute symbolic link names
   --dry-run                do nothing, show what would have been done
+                           (including the constructed directive file)
   --version                output version information and exit
 
 If --symlink-regex is given without EXPR, then the link target name
@@ -146,6 +149,9 @@ while test -n "$1"; do
     --delete)
       collect_var=delete_files
       ;;
+    --replace)
+      replace="replace: true"
+      ;;
     --rmsymlink)
       collect_var=delete_symlinks
       ;;
@@ -243,11 +249,13 @@ unset passphrase
 # listings with their arguments...).
 # Remember this script runs with 'set -e', so if echo is not built-in
 # it will exit now.
-PATH=/empty echo -n "Enter GPG passphrase: "
-stty -echo
-read -r passphrase
-stty echo
-echo
+if $dry_run; then :; else
+  PATH=/empty echo -n "Enter GPG passphrase: "
+  stty -echo
+  read -r passphrase
+  stty echo
+  echo
+fi
 
 if test $# -ne 0; then
   for file
@@ -270,7 +278,7 @@ filename: $3$stmt"
   fi
 
   cat >${2}.directive<<EOF
-version: 1.1
+version: 1.2
 directory: $1
 comment: gnupload v. $scriptversion$stmt
 EOF
@@ -393,6 +401,12 @@ do
   do
     echo "Uploading $file to $dest ..."
     stmt=
+    #
+    # allowing file replacement is all or nothing.
+    if test -n "$replace"; then stmt="$stmt
+$replace"
+    fi
+    #
     files="$file $file.sig"
     destdir=`echo $dest | sed 's/[^:]*://'`
     if test -n "$symlink_expr"; then
diff --git a/gl/Makefile.am b/gl/Makefile.am
index 46e6f8f..2d2128e 100644
--- a/gl/Makefile.am
+++ b/gl/Makefile.am
@@ -157,7 +157,7 @@ libgnu_la_SOURCES += gettext.h
 
 distclean-local: clean-GNUmakefile
 clean-GNUmakefile:
-	test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
+	test '$(srcdir)' = . || rm -f $(top_builddir)/GNUmakefile
 
 EXTRA_DIST += $(top_srcdir)/GNUmakefile
 
diff --git a/gl/errno.in.h b/gl/errno.in.h
index 2f42612..5e5af92 100644
--- a/gl/errno.in.h
+++ b/gl/errno.in.h
@@ -84,6 +84,16 @@
 #   define GNULIB_defined_ECANCELED 1
 #  endif
 
+#  ifndef EOWNERDEAD
+#   define EOWNERDEAD 133
+#   define GNULIB_defined_EOWNERDEAD 1
+#  endif
+
+#  ifndef ENOTRECOVERABLE
+#   define ENOTRECOVERABLE 127
+#   define GNULIB_defined_ENOTRECOVERABLE 1
+#  endif
+
 #  ifndef EINPROGRESS
 #   define EINPROGRESS     112
 #   define EALREADY        103
@@ -108,15 +118,17 @@
 #   define ELOOP           114
 #   define EHOSTUNREACH    110
 #   define EWOULDBLOCK     140
+#   define GNULIB_defined_ESOCK 1
+#  endif
+
+#  ifndef ETXTBSY
 #   define ETXTBSY         139
 #   define ENODATA         120  /* not required by POSIX */
 #   define ENOSR           124  /* not required by POSIX */
 #   define ENOSTR          125  /* not required by POSIX */
-#   define ENOTRECOVERABLE 127  /* not required by POSIX */
-#   define EOWNERDEAD      133  /* not required by POSIX */
 #   define ETIME           137  /* not required by POSIX */
 #   define EOTHER          131  /* not required by POSIX */
-#   define GNULIB_defined_ESOCK 1
+#   define GNULIB_defined_ESTREAMS 1
 #  endif
 
 /* These are intentionally the same values as the WSA* error numbers, defined
@@ -227,6 +239,36 @@
 #  define GNULIB_defined_ECANCELED 1
 # endif
 
+/* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
+   defined.  */
+
+# ifndef EOWNERDEAD
+#  if defined __sun
+    /* Use the same values as defined for Solaris >= 8, for
+       interoperability.  */
+#   define EOWNERDEAD      58
+#   define ENOTRECOVERABLE 59
+#  elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+    /* We have a conflict here: pthreads-win32 defines these values
+       differently than MSVC 10.  It's hairy to decide which one to use.  */
+#   if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
+     /* Use the same values as defined by pthreads-win32, for
+        interoperability.  */
+#    define EOWNERDEAD      43
+#    define ENOTRECOVERABLE 44
+#   else
+     /* Use the same values as defined by MSVC 10, for
+        interoperability.  */
+#    define EOWNERDEAD      133
+#    define ENOTRECOVERABLE 127
+#   endif
+#  else
+#   define EOWNERDEAD      2013
+#   define ENOTRECOVERABLE 2014
+#  endif
+#  define GNULIB_defined_EOWNERDEAD 1
+#  define GNULIB_defined_ENOTRECOVERABLE 1
+# endif
 
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
diff --git a/gl/fstat.c b/gl/fstat.c
index ac2b1ef..6d5f5c2 100644
--- a/gl/fstat.c
+++ b/gl/fstat.c
@@ -24,7 +24,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #if _GL_WINDOWS_64_BIT_ST_SIZE
+# undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
 # define stat _stati64
+# undef fstat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
 # define fstat _fstati64
 #endif
 #undef __need_system_sys_stat_h
diff --git a/gl/gettext.h b/gl/gettext.h
index 75875cd..65ca1e6 100644
--- a/gl/gettext.h
+++ b/gl/gettext.h
@@ -183,9 +183,12 @@ npgettext_aux (const char *domain,
 
 #include <string.h>
 
-#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
-  (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
-   /* || __STDC_VERSION__ >= 199901L */ )
+#if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
+     /* || __STDC_VERSION__ >= 199901L */ )
+# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1
+#else
+# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0
+#endif
 
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
 #include <stdlib.h>
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4
index 4f0bb83..1e76ba2 100644
--- a/gl/m4/errno_h.m4
+++ b/gl/m4/errno_h.m4
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 10
+# errno_h.m4 serial 11
 dnl Copyright (C) 2004, 2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,6 +10,9 @@ AC_DEFUN_ONCE([gl_HEADER_ERRNO_H],
   AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [
     AC_EGREP_CPP([booboo],[
 #include <errno.h>
+#if !defined ETXTBSY
+booboo
+#endif
 #if !defined ENOMSG
 booboo
 #endif
@@ -49,6 +52,12 @@ booboo
 #if !defined ECANCELED
 booboo
 #endif
+#if !defined EOWNERDEAD
+booboo
+#endif
+#if !defined ENOTRECOVERABLE
+booboo
+#endif
       ],
       [gl_cv_header_errno_h_complete=no],
       [gl_cv_header_errno_h_complete=yes])
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 0bfaef6..6d17d8a 100644
--- a/gl/m4/extensions.m4
+++ b/gl/m4/extensions.m4
@@ -1,4 +1,4 @@
-# serial 11  -*- Autoconf -*-
+# serial 12  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc.
@@ -67,7 +67,7 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
-/* Enable general extensions on MacOS X.  */
+/* Enable general extensions on Mac OS X.  */
 #ifndef _DARWIN_C_SOURCE
 # undef _DARWIN_C_SOURCE
 #endif
diff --git a/gl/m4/getopt.m4 b/gl/m4/getopt.m4
index 2aea895..f6902b5 100644
--- a/gl/m4/getopt.m4
+++ b/gl/m4/getopt.m4
@@ -1,4 +1,4 @@
-# getopt.m4 serial 39
+# getopt.m4 serial 44
 dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,18 +9,17 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
 [
   m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX])
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+  AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
   dnl Other modules can request the gnulib implementation of the getopt
   dnl functions unconditionally, by defining gl_REPLACE_GETOPT_ALWAYS.
   dnl argp.m4 does this.
   m4_ifdef([gl_REPLACE_GETOPT_ALWAYS], [
-    gl_GETOPT_IFELSE([], [])
     REPLACE_GETOPT=1
   ], [
     REPLACE_GETOPT=0
-    gl_GETOPT_IFELSE([
+    if test -n "$gl_replace_getopt"; then
       REPLACE_GETOPT=1
-    ],
-    [])
+    fi
   ])
   if test $REPLACE_GETOPT = 1; then
     dnl Arrange for getopt.h to be created.
@@ -38,13 +37,6 @@ AC_DEFUN([gl_FUNC_GETOPT_GNU],
   AC_REQUIRE([gl_FUNC_GETOPT_POSIX])
 ])
 
-# emacs' configure.in uses this.
-AC_DEFUN([gl_GETOPT_IFELSE],
-[
-  AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
-  AS_IF([test -n "$gl_replace_getopt"], [$1], [$2])
-])
-
 # Determine whether to replace the entire getopt facility.
 AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
 [
@@ -74,11 +66,6 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
     AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes])
   fi
 
-  dnl mingw's getopt (in libmingwex.a) does weird things when the options
-  dnl strings starts with '+' and it's not the first call.  Some internal state
-  dnl is left over from earlier calls, and neither setting optind = 0 nor
-  dnl setting optreset = 1 get rid of this internal state.
-  dnl POSIX is silent on optind vs. optreset, so we allow either behavior.
   dnl POSIX 2008 does not specify leading '+' behavior, but see
   dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on
   dnl the next version of POSIX.  For now, we only guarantee leading '+'
@@ -87,30 +74,16 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
     AC_CACHE_CHECK([whether getopt is POSIX compatible],
       [gl_cv_func_getopt_posix],
       [
-        dnl BSD getopt_long uses an incompatible method to reset option
-        dnl processing.  Existence of the optreset variable, in and of
-        dnl itself, is not a reason to replace getopt, but knowledge
-        dnl of the variable is needed to determine how to reset and
-        dnl whether a reset reparses the environment.  Solaris
-        dnl supports neither optreset nor optind=0, but keeps no state
-        dnl that needs a reset beyond setting optind=1; detect Solaris
-        dnl by getopt_clip.
-        AC_LINK_IFELSE(
-          [AC_LANG_PROGRAM(
-             [[#include <unistd.h>]],
-             [[int *p = &optreset; return optreset;]])],
-          [gl_optind_min=1],
-          [AC_COMPILE_IFELSE(
-             [AC_LANG_PROGRAM(
-                [[#include <getopt.h>]],
-                [[return !getopt_clip;]])],
-             [gl_optind_min=1],
-             [gl_optind_min=0])])
-
-        dnl This test fails on mingw and succeeds on many other platforms.
-        gl_save_CPPFLAGS=$CPPFLAGS
-        CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
-        AC_RUN_IFELSE([AC_LANG_SOURCE([[
+        dnl Merging these three different test programs into a single one
+        dnl would require a reset mechanism. On BSD systems, it can be done
+        dnl through 'optreset'; on some others (glibc), it can be done by
+        dnl setting 'optind' to 0; on others again (HP-UX, IRIX, OSF/1,
+        dnl Solaris 9, musl libc), there is no such mechanism.
+        if test $cross_compiling = no; then
+          dnl Sanity check. Succeeds everywhere (except on MSVC,
+          dnl which lacks <unistd.h> and getopt() entirely).
+          AC_RUN_IFELSE(
+            [AC_LANG_SOURCE([[
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
@@ -118,89 +91,107 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
 int
 main ()
 {
-  {
-    static char program[] = "program";
-    static char a[] = "-a";
-    static char foo[] = "foo";
-    static char bar[] = "bar";
-    char *argv[] = { program, a, foo, bar, NULL };
-    int c;
+  static char program[] = "program";
+  static char a[] = "-a";
+  static char foo[] = "foo";
+  static char bar[] = "bar";
+  char *argv[] = { program, a, foo, bar, NULL };
+  int c;
 
-    optind = OPTIND_MIN;
-    opterr = 0;
-
-    c = getopt (4, argv, "ab");
-    if (!(c == 'a'))
-      return 1;
-    c = getopt (4, argv, "ab");
-    if (!(c == -1))
-      return 2;
-    if (!(optind == 2))
-      return 3;
-  }
-  /* Some internal state exists at this point.  */
-  {
-    static char program[] = "program";
-    static char donald[] = "donald";
-    static char p[] = "-p";
-    static char billy[] = "billy";
-    static char duck[] = "duck";
-    static char a[] = "-a";
-    static char bar[] = "bar";
-    char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
-    int c;
+  c = getopt (4, argv, "ab");
+  if (!(c == 'a'))
+    return 1;
+  c = getopt (4, argv, "ab");
+  if (!(c == -1))
+    return 2;
+  if (!(optind == 2))
+    return 3;
+  return 0;
+}
+]])],
+            [gl_cv_func_getopt_posix=maybe],
+            [gl_cv_func_getopt_posix=no])
+          if test $gl_cv_func_getopt_posix = maybe; then
+            dnl Sanity check with '+'. Succeeds everywhere (except on MSVC,
+            dnl which lacks <unistd.h> and getopt() entirely).
+            AC_RUN_IFELSE(
+              [AC_LANG_SOURCE([[
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 
-    optind = OPTIND_MIN;
-    opterr = 0;
+int
+main ()
+{
+  static char program[] = "program";
+  static char donald[] = "donald";
+  static char p[] = "-p";
+  static char billy[] = "billy";
+  static char duck[] = "duck";
+  static char a[] = "-a";
+  static char bar[] = "bar";
+  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
+  int c;
 
-    c = getopt (7, argv, "+abp:q:");
-    if (!(c == -1))
-      return 4;
-    if (!(strcmp (argv[0], "program") == 0))
-      return 5;
-    if (!(strcmp (argv[1], "donald") == 0))
-      return 6;
-    if (!(strcmp (argv[2], "-p") == 0))
-      return 7;
-    if (!(strcmp (argv[3], "billy") == 0))
-      return 8;
-    if (!(strcmp (argv[4], "duck") == 0))
-      return 9;
-    if (!(strcmp (argv[5], "-a") == 0))
-      return 10;
-    if (!(strcmp (argv[6], "bar") == 0))
-      return 11;
-    if (!(optind == 1))
-      return 12;
-  }
-  /* Detect MacOS 10.5, AIX 7.1 bug.  */
-  {
-    static char program[] = "program";
-    static char ab[] = "-ab";
-    char *argv[3] = { program, ab, NULL };
-    optind = OPTIND_MIN;
-    opterr = 0;
-    if (getopt (2, argv, "ab:") != 'a')
-      return 13;
-    if (getopt (2, argv, "ab:") != '?')
-      return 14;
-    if (optopt != 'b')
-      return 15;
-    if (optind != 2)
-      return 16;
-  }
+  c = getopt (7, argv, "+abp:q:");
+  if (!(c == -1))
+    return 4;
+  if (!(strcmp (argv[0], "program") == 0))
+    return 5;
+  if (!(strcmp (argv[1], "donald") == 0))
+    return 6;
+  if (!(strcmp (argv[2], "-p") == 0))
+    return 7;
+  if (!(strcmp (argv[3], "billy") == 0))
+    return 8;
+  if (!(strcmp (argv[4], "duck") == 0))
+    return 9;
+  if (!(strcmp (argv[5], "-a") == 0))
+    return 10;
+  if (!(strcmp (argv[6], "bar") == 0))
+    return 11;
+  if (!(optind == 1))
+    return 12;
+  return 0;
+}
+]])],
+              [gl_cv_func_getopt_posix=maybe],
+              [gl_cv_func_getopt_posix=no])
+          fi
+          if test $gl_cv_func_getopt_posix = maybe; then
+            dnl Detect Mac OS X 10.5, AIX 7.1, mingw bug.
+            AC_RUN_IFELSE(
+              [AC_LANG_SOURCE([[
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 
+int
+main ()
+{
+  static char program[] = "program";
+  static char ab[] = "-ab";
+  char *argv[3] = { program, ab, NULL };
+  if (getopt (2, argv, "ab:") != 'a')
+    return 13;
+  if (getopt (2, argv, "ab:") != '?')
+    return 14;
+  if (optopt != 'b')
+    return 15;
+  if (optind != 2)
+    return 16;
   return 0;
 }
 ]])],
-          [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no],
-          [case "$host_os" in
-             mingw*)         gl_cv_func_getopt_posix="guessing no";;
-             darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
-             *)              gl_cv_func_getopt_posix="guessing yes";;
-           esac
-          ])
-        CPPFLAGS=$gl_save_CPPFLAGS
+              [gl_cv_func_getopt_posix=yes],
+              [gl_cv_func_getopt_posix=no])
+          fi
+        else
+          case "$host_os" in
+            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
+            *)                       gl_cv_func_getopt_posix="guessing yes";;
+          esac
+        fi
       ])
     case "$gl_cv_func_getopt_posix" in
       *no) gl_replace_getopt=yes ;;
@@ -236,7 +227,7 @@ dnl is ambiguous with environment values that contain newlines.
              nocrash_init();
 
              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
-                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
+                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
                 OSF/1 5.1, Solaris 10.  */
              {
                static char conftest[] = "conftest";
@@ -247,7 +238,7 @@ dnl is ambiguous with environment values that contain newlines.
                  result |= 1;
              }
              /* This code succeeds on glibc 2.8, mingw,
-                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
+                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
              {
                static char program[] = "program";
@@ -276,7 +267,7 @@ dnl is ambiguous with environment values that contain newlines.
                if (getopt (3, argv, "-p") != 1)
                  result |= 16;
                else if (getopt (3, argv, "-p") != 'p')
-                 result |= 32;
+                 result |= 16;
              }
              /* This code fails on glibc 2.11.  */
              {
@@ -286,9 +277,9 @@ dnl is ambiguous with environment values that contain newlines.
                char *argv[] = { program, b, a, NULL };
                optind = opterr = 0;
                if (getopt (3, argv, "+:a:b") != 'b')
-                 result |= 64;
+                 result |= 32;
                else if (getopt (3, argv, "+:a:b") != ':')
-                 result |= 64;
+                 result |= 32;
              }
              /* This code dumps core on glibc 2.14.  */
              {
@@ -298,18 +289,14 @@ dnl is ambiguous with environment values that contain newlines.
                char *argv[] = { program, w, dummy, NULL };
                optind = opterr = 1;
                if (getopt (3, argv, "W;") != 'W')
-                 result |= 128;
+                 result |= 64;
              }
              return result;
            ]])],
         [gl_cv_func_getopt_gnu=yes],
         [gl_cv_func_getopt_gnu=no],
-        [dnl Cross compiling. Guess based on host and declarations.
-         case $host_os:$ac_cv_have_decl_optreset in
-           *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
-           *:yes)               gl_cv_func_getopt_gnu=no;;
-           *)                   gl_cv_func_getopt_gnu=yes;;
-         esac
+        [dnl Cross compiling. Assume the worst, even on glibc platforms.
+         gl_cv_func_getopt_gnu="guessing no"
         ])
        case $gl_had_POSIXLY_CORRECT in
          exported) ;;
@@ -317,13 +304,54 @@ dnl is ambiguous with environment values that contain newlines.
          *) AS_UNSET([POSIXLY_CORRECT]) ;;
        esac
       ])
-    if test "$gl_cv_func_getopt_gnu" = "no"; then
+    if test "$gl_cv_func_getopt_gnu" != yes; then
       gl_replace_getopt=yes
+    else
+      AC_CACHE_CHECK([for working GNU getopt_long function],
+        [gl_cv_func_getopt_long_gnu],
+        [AC_RUN_IFELSE(
+           [AC_LANG_PROGRAM(
+              [[#include <getopt.h>
+                #include <stddef.h>
+                #include <string.h>
+              ]],
+              [[static const struct option long_options[] =
+                  {
+                    { "xtremely-",no_argument,       NULL, 1003 },
+                    { "xtra",     no_argument,       NULL, 1001 },
+                    { "xtreme",   no_argument,       NULL, 1002 },
+                    { "xtremely", no_argument,       NULL, 1003 },
+                    { NULL,       0,                 NULL, 0 }
+                  };
+                /* This code fails on OpenBSD 5.0.  */
+                {
+                  static char program[] = "program";
+                  static char xtremel[] = "--xtremel";
+                  char *argv[] = { program, xtremel, NULL };
+                  int option_index;
+                  optind = 1; opterr = 0;
+                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
+                    return 1;
+                }
+                return 0;
+              ]])],
+           [gl_cv_func_getopt_long_gnu=yes],
+           [gl_cv_func_getopt_long_gnu=no],
+           [dnl Cross compiling. Guess no on OpenBSD, yes otherwise.
+            case "$host_os" in
+              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
+              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
+            esac
+           ])
+        ])
+      case "$gl_cv_func_getopt_long_gnu" in
+        *yes) ;;
+        *) gl_replace_getopt=yes ;;
+      esac
     fi
   fi
 ])
 
-# emacs' configure.in uses this.
 AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
 [
   GETOPT_H=getopt.h
@@ -334,7 +362,6 @@ AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
 ])
 
 # Prerequisites of lib/getopt*.
-# emacs' configure.in uses this.
 AC_DEFUN([gl_PREREQ_GETOPT],
 [
   AC_CHECK_DECLS_ONCE([getenv])
diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4
index f9a6d3e..62b83f4 100644
--- a/gl/m4/gnulib-cache.m4
+++ b/gl/m4/gnulib-cache.m4
@@ -59,5 +59,5 @@ gl_MAKEFILE_NAME([])
 gl_LIBTOOL
 gl_MACRO_PREFIX([gl])
 gl_PO_DOMAIN([])
-gl_WITNESS_C_DOMAIN([])
+gl_WITNESS_C_MACRO([])
 gl_VC_FILES([false])
diff --git a/gl/m4/gnulib-common.m4 b/gl/m4/gnulib-common.m4
index d62b767..15d2b2b 100644
--- a/gl/m4/gnulib-common.m4
+++ b/gl/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 32
+# gnulib-common.m4 serial 33
 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -30,7 +30,7 @@ AC_DEFUN([gl_COMMON_BODY], [
 [/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
    the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
    earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
-   __APPLE__ && __MACH__ test for MacOS X.
+   __APPLE__ && __MACH__ test for Mac OS X.
    __APPLE_CC__ tests for the Apple compiler and its version.
    __STDC_VERSION__ tests for the C99 mode.  */
 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 1b4254e..8093a87 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -111,100 +111,100 @@ AC_DEFUN([gl_INIT],
   m4_pushdef([gl_LIBSOURCES_DIR], [])
   gl_COMMON
   gl_source_base='gl'
-gl_HEADER_ERRNO_H
-gl_FUNC_FSTAT
-if test $REPLACE_FSTAT = 1; then
-  AC_LIBOBJ([fstat])
-  gl_PREREQ_FSTAT
-fi
-gl_SYS_STAT_MODULE_INDICATOR([fstat])
-gl_FUNC_FTELL
-if test $REPLACE_FTELL = 1; then
-  AC_LIBOBJ([ftell])
-fi
-gl_STDIO_MODULE_INDICATOR([ftell])
-gl_FUNC_FTELLO
-if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
-  AC_LIBOBJ([ftello])
-  gl_PREREQ_FTELLO
-fi
-gl_STDIO_MODULE_INDICATOR([ftello])
-gl_FUNC_GETOPT_GNU
-if test $REPLACE_GETOPT = 1; then
-  AC_LIBOBJ([getopt])
-  AC_LIBOBJ([getopt1])
-  gl_PREREQ_GETOPT
-  dnl Arrange for unistd.h to include getopt.h.
-  GNULIB_GL_UNISTD_H_GETOPT=1
-fi
-AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
-gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
-gl_FUNC_GETOPT_POSIX
-if test $REPLACE_GETOPT = 1; then
-  AC_LIBOBJ([getopt])
-  AC_LIBOBJ([getopt1])
-  gl_PREREQ_GETOPT
-  dnl Arrange for unistd.h to include getopt.h.
-  GNULIB_GL_UNISTD_H_GETOPT=1
-fi
-AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
-AC_SUBST([LIBINTL])
-AC_SUBST([LTLIBINTL])
-# Autoconf 2.61a.99 and earlier don't support linking a file only
-# in VPATH builds.  But since GNUmakefile is for maintainer use
-# only, it does not matter if we skip the link with older autoconf.
-# Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
-# builds, so use a shell variable to bypass this.
-GNUmakefile=GNUmakefile
-m4_if(m4_version_compare([2.61a.100],
-        m4_defn([m4_PACKAGE_VERSION])), [1], [],
-      [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
-        [GNUmakefile=$GNUmakefile])])
-AC_REQUIRE([gl_LARGEFILE])
-gl_FUNC_LSEEK
-if test $REPLACE_LSEEK = 1; then
-  AC_LIBOBJ([lseek])
-fi
-gl_UNISTD_MODULE_INDICATOR([lseek])
-AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
-  [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
-gl_FUNC_MALLOC_POSIX
-if test $REPLACE_MALLOC = 1; then
-  AC_LIBOBJ([malloc])
-fi
-gl_STDLIB_MODULE_INDICATOR([malloc-posix])
-gl_MSVC_INVAL
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
-  AC_LIBOBJ([msvc-inval])
-fi
-gl_MSVC_NOTHROW
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
-  AC_LIBOBJ([msvc-nothrow])
-fi
-gl_MULTIARCH
-AC_PATH_PROG([PMCCABE], [pmccabe], [false])
-AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
-AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
-gl_PREREQ_READ_FILE
-gl_FUNC_REALLOC_POSIX
-if test $REPLACE_REALLOC = 1; then
-  AC_LIBOBJ([realloc])
-fi
-gl_STDLIB_MODULE_INDICATOR([realloc-posix])
-gt_TYPE_SSIZE_T
-gl_STDARG_H
-gl_STDDEF_H
-gl_STDINT_H
-gl_STDIO_H
-gl_STDLIB_H
-gl_HEADER_SYS_STAT_H
-AC_PROG_MKDIR_P
-gl_SYS_TYPES_H
-AC_PROG_MKDIR_P
-gl_HEADER_TIME_H
-gl_UNISTD_H
-gl_VALGRIND_TESTS
-gl_VERSION_ETC
+  gl_HEADER_ERRNO_H
+  gl_FUNC_FSTAT
+  if test $REPLACE_FSTAT = 1; then
+    AC_LIBOBJ([fstat])
+    gl_PREREQ_FSTAT
+  fi
+  gl_SYS_STAT_MODULE_INDICATOR([fstat])
+  gl_FUNC_FTELL
+  if test $REPLACE_FTELL = 1; then
+    AC_LIBOBJ([ftell])
+  fi
+  gl_STDIO_MODULE_INDICATOR([ftell])
+  gl_FUNC_FTELLO
+  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
+    AC_LIBOBJ([ftello])
+    gl_PREREQ_FTELLO
+  fi
+  gl_STDIO_MODULE_INDICATOR([ftello])
+  gl_FUNC_GETOPT_GNU
+  if test $REPLACE_GETOPT = 1; then
+    AC_LIBOBJ([getopt])
+    AC_LIBOBJ([getopt1])
+    gl_PREREQ_GETOPT
+    dnl Arrange for unistd.h to include getopt.h.
+    GNULIB_GL_UNISTD_H_GETOPT=1
+  fi
+  AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
+  gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
+  gl_FUNC_GETOPT_POSIX
+  if test $REPLACE_GETOPT = 1; then
+    AC_LIBOBJ([getopt])
+    AC_LIBOBJ([getopt1])
+    gl_PREREQ_GETOPT
+    dnl Arrange for unistd.h to include getopt.h.
+    GNULIB_GL_UNISTD_H_GETOPT=1
+  fi
+  AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
+  AC_SUBST([LIBINTL])
+  AC_SUBST([LTLIBINTL])
+  # Autoconf 2.61a.99 and earlier don't support linking a file only
+  # in VPATH builds.  But since GNUmakefile is for maintainer use
+  # only, it does not matter if we skip the link with older autoconf.
+  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
+  # builds, so use a shell variable to bypass this.
+  GNUmakefile=GNUmakefile
+  m4_if(m4_version_compare([2.61a.100],
+          m4_defn([m4_PACKAGE_VERSION])), [1], [],
+        [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
+          [GNUmakefile=$GNUmakefile])])
+  AC_REQUIRE([gl_LARGEFILE])
+  gl_FUNC_LSEEK
+  if test $REPLACE_LSEEK = 1; then
+    AC_LIBOBJ([lseek])
+  fi
+  gl_UNISTD_MODULE_INDICATOR([lseek])
+  AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
+    [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
+  gl_FUNC_MALLOC_POSIX
+  if test $REPLACE_MALLOC = 1; then
+    AC_LIBOBJ([malloc])
+  fi
+  gl_STDLIB_MODULE_INDICATOR([malloc-posix])
+  gl_MSVC_INVAL
+  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+    AC_LIBOBJ([msvc-inval])
+  fi
+  gl_MSVC_NOTHROW
+  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+    AC_LIBOBJ([msvc-nothrow])
+  fi
+  gl_MULTIARCH
+  AC_PATH_PROG([PMCCABE], [pmccabe], [false])
+  AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
+  AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
+  gl_PREREQ_READ_FILE
+  gl_FUNC_REALLOC_POSIX
+  if test $REPLACE_REALLOC = 1; then
+    AC_LIBOBJ([realloc])
+  fi
+  gl_STDLIB_MODULE_INDICATOR([realloc-posix])
+  gt_TYPE_SSIZE_T
+  gl_STDARG_H
+  gl_STDDEF_H
+  gl_STDINT_H
+  gl_STDIO_H
+  gl_STDLIB_H
+  gl_HEADER_SYS_STAT_H
+  AC_PROG_MKDIR_P
+  gl_SYS_TYPES_H
+  AC_PROG_MKDIR_P
+  gl_HEADER_TIME_H
+  gl_UNISTD_H
+  gl_VALGRIND_TESTS
+  gl_VERSION_ETC
   # End of code from modules
   m4_ifval(gl_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
@@ -251,7 +251,7 @@ changequote([, ])dnl
   AC_SUBST([gltests_WITNESS])
   gl_module_indicator_condition=$gltests_WITNESS
   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
-gl_VALGRIND_TESTS
+  gl_VALGRIND_TESTS
   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
   m4_ifval(gltests_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
diff --git a/gl/m4/largefile.m4 b/gl/m4/largefile.m4
index a159f4a..a88850a 100644
--- a/gl/m4/largefile.m4
+++ b/gl/m4/largefile.m4
@@ -136,7 +136,7 @@ AC_DEFUN([gl_LARGEFILE],
     *)
       dnl Nothing to do on gnulib's side.
       dnl A 64-bit off_t is
-      dnl   - already the default on MacOS X, FreeBSD, NetBSD, OpenBSD, IRIX,
+      dnl   - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX,
       dnl     OSF/1, Cygwin,
       dnl   - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on
       dnl     glibc, HP-UX, Solaris,
diff --git a/gl/m4/manywarnings.m4 b/gl/m4/manywarnings.m4
index 864fc85..2760efb 100644
--- a/gl/m4/manywarnings.m4
+++ b/gl/m4/manywarnings.m4
@@ -81,95 +81,118 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
 
   gl_manywarn_set=
   for gl_manywarn_item in \
-    -Wall \
     -W \
-    -Wformat-y2k \
-    -Wformat-nonliteral \
-    -Wformat-security \
-    -Winit-self \
-    -Wmissing-include-dirs \
-    -Wswitch-default \
-    -Wswitch-enum \
-    -Wunused \
-    -Wunknown-pragmas \
-    -Wstrict-aliasing \
-    -Wstrict-overflow \
-    -Wsystem-headers \
-    -Wfloat-equal \
-    -Wtraditional \
-    -Wtraditional-conversion \
-    -Wdeclaration-after-statement \
-    -Wundef \
-    -Wshadow \
-    -Wunsafe-loop-optimizations \
-    -Wpointer-arith \
+    -Wabi \
+    -Waddress \
+    -Wall \
+    -Warray-bounds \
+    -Wattributes \
     -Wbad-function-cast \
-    -Wc++-compat \
-    -Wcast-qual \
-    -Wcast-align \
-    -Wwrite-strings \
-    -Wconversion \
-    -Wsign-conversion \
-    -Wlogical-op \
-    -Waggregate-return \
-    -Wstrict-prototypes \
-    -Wold-style-definition \
-    -Wmissing-prototypes \
-    -Wmissing-declarations \
-    -Wmissing-noreturn \
-    -Wmissing-format-attribute \
-    -Wpacked \
-    -Wpadded \
-    -Wredundant-decls \
-    -Wnested-externs \
-    -Wunreachable-code \
-    -Winline \
-    -Winvalid-pch \
-    -Wlong-long \
-    -Wvla \
-    -Wvolatile-register-var \
-    -Wdisabled-optimization \
-    -Wstack-protector \
-    -Woverlength-strings \
     -Wbuiltin-macro-redefined \
-    -Wmudflap \
-    -Wpacked-bitfield-compat \
-    -Wsync-nand \
-    ; do
-    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
-  done
-  # The following are not documented in the manual but are included in
-  # output from gcc --help=warnings.
-  for gl_manywarn_item in \
-    -Wattributes \
+    -Wcast-align \
+    -Wchar-subscripts \
+    -Wclobbered \
+    -Wcomment \
+    -Wcomments \
     -Wcoverage-mismatch \
-    -Wunused-macros \
-    ; do
-    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
-  done
-  # More warnings from gcc 4.6.2 --help=warnings.
-  for gl_manywarn_item in \
-    -Wabi \
     -Wcpp \
     -Wdeprecated \
     -Wdeprecated-declarations \
+    -Wdisabled-optimization \
     -Wdiv-by-zero \
     -Wdouble-promotion \
+    -Wempty-body \
     -Wendif-labels \
+    -Wenum-compare \
     -Wextra \
     -Wformat-contains-nul \
     -Wformat-extra-args \
+    -Wformat-nonliteral \
+    -Wformat-security \
+    -Wformat-y2k \
     -Wformat-zero-length \
     -Wformat=2 \
+    -Wfree-nonheap-object \
+    -Wignored-qualifiers \
+    -Wimplicit \
+    -Wimplicit-function-declaration \
+    -Wimplicit-int \
+    -Winit-self \
+    -Winline \
+    -Wint-to-pointer-cast \
+    -Winvalid-memory-model \
+    -Winvalid-pch \
+    -Wjump-misses-init \
+    -Wlogical-op \
+    -Wmain \
+    -Wmaybe-uninitialized \
+    -Wmissing-braces \
+    -Wmissing-declarations \
+    -Wmissing-field-initializers \
+    -Wmissing-format-attribute \
+    -Wmissing-include-dirs \
+    -Wmissing-noreturn \
+    -Wmissing-parameter-type \
+    -Wmissing-prototypes \
+    -Wmudflap \
     -Wmultichar \
+    -Wnarrowing \
+    -Wnested-externs \
+    -Wnonnull \
     -Wnormalized=nfc \
+    -Wold-style-declaration \
+    -Wold-style-definition \
     -Woverflow \
+    -Woverlength-strings \
+    -Woverride-init \
+    -Wpacked \
+    -Wpacked-bitfield-compat \
+    -Wparentheses \
+    -Wpointer-arith \
+    -Wpointer-sign \
     -Wpointer-to-int-cast \
     -Wpragmas \
+    -Wreturn-type \
+    -Wsequence-point \
+    -Wshadow \
+    -Wsizeof-pointer-memaccess \
+    -Wstack-protector \
+    -Wstrict-aliasing \
+    -Wstrict-overflow \
+    -Wstrict-prototypes \
     -Wsuggest-attribute=const \
+    -Wsuggest-attribute=format \
     -Wsuggest-attribute=noreturn \
     -Wsuggest-attribute=pure \
+    -Wswitch \
+    -Wswitch-default \
+    -Wsync-nand \
+    -Wsystem-headers \
     -Wtrampolines \
+    -Wtrigraphs \
+    -Wtype-limits \
+    -Wuninitialized \
+    -Wunknown-pragmas \
+    -Wunreachable-code \
+    -Wunsafe-loop-optimizations \
+    -Wunused \
+    -Wunused-but-set-parameter \
+    -Wunused-but-set-variable \
+    -Wunused-function \
+    -Wunused-label \
+    -Wunused-local-typedefs \
+    -Wunused-macros \
+    -Wunused-parameter \
+    -Wunused-result \
+    -Wunused-value \
+    -Wunused-variable \
+    -Wvarargs \
+    -Wvariadic-macros \
+    -Wvector-operation-performance \
+    -Wvla \
+    -Wvolatile-register-var \
+    -Wwrite-strings \
+    \
     ; do
     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
   done
diff --git a/gl/m4/multiarch.m4 b/gl/m4/multiarch.m4
index b424dce..0c288b8 100644
--- a/gl/m4/multiarch.m4
+++ b/gl/m4/multiarch.m4
@@ -1,4 +1,4 @@
-# multiarch.m4 serial 6
+# multiarch.m4 serial 7
 dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 # Determine whether the compiler is or may be producing universal binaries.
 #
-# On MacOS X 10.5 and later systems, the user can create libraries and
+# On Mac OS X 10.5 and later systems, the user can create libraries and
 # executables that work on multiple system types--known as "fat" or
 # "universal" binaries--by specifying multiple '-arch' options to the
 # compiler but only a single '-arch' option to the preprocessor.  Like
diff --git a/gl/m4/nocrash.m4 b/gl/m4/nocrash.m4
index 08ef825..c2638df 100644
--- a/gl/m4/nocrash.m4
+++ b/gl/m4/nocrash.m4
@@ -1,4 +1,4 @@
-# nocrash.m4 serial 3
+# nocrash.m4 serial 4
 dnl Copyright (C) 2005, 2009-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,7 @@ dnl          int main() { nocrash_init(); ... }
 AC_DEFUN([GL_NOCRASH],[[
 #include <stdlib.h>
 #if defined __MACH__ && defined __APPLE__
-/* Avoid a crash on MacOS X.  */
+/* Avoid a crash on Mac OS X.  */
 #include <mach/mach.h>
 #include <mach/mach_error.h>
 #include <mach/thread_status.h>
diff --git a/gl/m4/stdio_h.m4 b/gl/m4/stdio_h.m4
index b03393b..5298dd6 100644
--- a/gl/m4/stdio_h.m4
+++ b/gl/m4/stdio_h.m4
@@ -1,4 +1,4 @@
-# stdio_h.m4 serial 41
+# stdio_h.m4 serial 42
 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,9 @@ AC_DEFUN([gl_STDIO_H],
   dnl No need to create extra modules for these functions. Everyone who uses
   dnl <stdio.h> likely needs them.
   GNULIB_FSCANF=1
+  gl_MODULE_INDICATOR([fscanf])
   GNULIB_SCANF=1
+  gl_MODULE_INDICATOR([scanf])
   GNULIB_FGETC=1
   GNULIB_GETC=1
   GNULIB_GETCHAR=1
diff --git a/gl/m4/sys_stat_h.m4 b/gl/m4/sys_stat_h.m4
index f45dee1..8af3353 100644
--- a/gl/m4/sys_stat_h.m4
+++ b/gl/m4/sys_stat_h.m4
@@ -1,4 +1,4 @@
-# sys_stat_h.m4 serial 27   -*- Autoconf -*-
+# sys_stat_h.m4 serial 28   -*- Autoconf -*-
 dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,9 +11,6 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H],
 [
   AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
 
-  dnl For the mkdir substitute.
-  AC_REQUIRE([AC_C_INLINE])
-
   dnl Check for broken stat macros.
   AC_REQUIRE([AC_HEADER_STAT])
 
diff --git a/gl/m4/time_h.m4 b/gl/m4/time_h.m4
index b88da76..6415bfb 100644
--- a/gl/m4/time_h.m4
+++ b/gl/m4/time_h.m4
@@ -2,7 +2,7 @@
 
 # Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
 
-# serial 6
+# serial 7
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -25,7 +25,7 @@ AC_DEFUN([gl_HEADER_TIME_H_BODY],
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
 ])
 
-dnl Define HAVE_STRUCT_TIMESPEC if 'struct timespec' is declared
+dnl Check whether 'struct timespec' is declared
 dnl in time.h, sys/time.h, or pthread.h.
 
 AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC],
diff --git a/gl/stdint.in.h b/gl/stdint.in.h
index 59c00d5..e2a0eb1 100644
--- a/gl/stdint.in.h
+++ b/gl/stdint.in.h
@@ -83,7 +83,7 @@
 /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
    IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
    AIX 5.2 <sys/types.h> isn't needed and causes troubles.
-   MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
+   Mac OS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
    relies on the system <stdint.h> definitions, so include
    <sys/types.h> after @NEXT_STDINT_H@.  */
 #if @HAVE_SYS_TYPES_H@ && ! defined _AIX
diff --git a/gl/stdio-impl.h b/gl/stdio-impl.h
index 4935795..920b4d4 100644
--- a/gl/stdio-impl.h
+++ b/gl/stdio-impl.h
@@ -28,7 +28,7 @@
 
 #include <errno.h>                             /* For detecting Plan9.  */
 
-#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
+#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
 
 # if defined __DragonFly__          /* DragonFly */
   /* See <http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/priv_stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>.  */
@@ -66,7 +66,7 @@
       /* More fields, not relevant here.  */
     };
 #  define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub
-# else                                         /* FreeBSD, NetBSD <= 1.5Z, DragonFly, MacOS X, Cygwin */
+# else                                         /* FreeBSD, NetBSD <= 1.5Z, DragonFly, Mac OS X, Cygwin */
 #  define fp_ub fp_->_ub
 # endif
 
diff --git a/gl/stdlib.in.h b/gl/stdlib.in.h
index b546133..1d67ec6 100644
--- a/gl/stdlib.in.h
+++ b/gl/stdlib.in.h
@@ -87,8 +87,8 @@ struct random_data
 #endif
 
 #if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
-/* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
-/* On MacOS X 10.5, only <unistd.h> declares mkstemps.  */
+/* On Mac OS X 10.3, only <unistd.h> declares mkstemp.  */
+/* On Mac OS X 10.5, only <unistd.h> declares mkstemps.  */
 /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt.  */
 /* But avoid namespace pollution on glibc systems and native Windows.  */
 # include <unistd.h>
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 9115486..e904e51 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -1318,7 +1318,7 @@ _GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
 _GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len)
                                     _GL_ARG_NONNULL ((1)));
 # endif
-/* Need to cast, because on Solaris 11 2011-10, MacOS X 10.5, IRIX 6.5
+/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5
    and FreeBSD 6.4 the second parameter is int.  On Solaris 11
    2011-10, the first parameter is not const.  */
 _GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len));
diff --git a/lib/element.c b/lib/element.c
index 8619a17..0d1b918 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -989,12 +989,13 @@ asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
  *
  * Since: 2.14
  **/
-asn1_retCode asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
+asn1_retCode
+asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data)
 {
   data->name = node->name;
   data->value = node->value;
   data->value_len = node->value_len;
   data->type = type_field(node->type);
-  
+
   return ASN1_SUCCESS;
 }
diff --git a/lib/gllib/stdint.in.h b/lib/gllib/stdint.in.h
index 3475dbe..4f61f95 100644
--- a/lib/gllib/stdint.in.h
+++ b/lib/gllib/stdint.in.h
@@ -83,7 +83,7 @@
 /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
    IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
    AIX 5.2 <sys/types.h> isn't needed and causes troubles.
-   MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
+   Mac OS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
    relies on the system <stdint.h> definitions, so include
    <sys/types.h> after @NEXT_STDINT_H@.  */
 #if @HAVE_SYS_TYPES_H@ && ! defined _AIX
diff --git a/lib/glm4/extensions.m4 b/lib/glm4/extensions.m4
index 0bfaef6..6d17d8a 100644
--- a/lib/glm4/extensions.m4
+++ b/lib/glm4/extensions.m4
@@ -1,4 +1,4 @@
-# serial 11  -*- Autoconf -*-
+# serial 12  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc.
@@ -67,7 +67,7 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
-/* Enable general extensions on MacOS X.  */
+/* Enable general extensions on Mac OS X.  */
 #ifndef _DARWIN_C_SOURCE
 # undef _DARWIN_C_SOURCE
 #endif
diff --git a/lib/glm4/gnulib-cache.m4 b/lib/glm4/gnulib-cache.m4
index d0e6acb..29475d4 100644
--- a/lib/glm4/gnulib-cache.m4
+++ b/lib/glm4/gnulib-cache.m4
@@ -49,5 +49,5 @@ gl_MAKEFILE_NAME([])
 gl_LIBTOOL
 gl_MACRO_PREFIX([lgl])
 gl_PO_DOMAIN([])
-gl_WITNESS_C_DOMAIN([])
+gl_WITNESS_C_MACRO([])
 gl_VC_FILES([false])
diff --git a/lib/glm4/gnulib-common.m4 b/lib/glm4/gnulib-common.m4
index d62b767..15d2b2b 100644
--- a/lib/glm4/gnulib-common.m4
+++ b/lib/glm4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 32
+# gnulib-common.m4 serial 33
 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -30,7 +30,7 @@ AC_DEFUN([gl_COMMON_BODY], [
 [/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
    the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
    earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
-   __APPLE__ && __MACH__ test for MacOS X.
+   __APPLE__ && __MACH__ test for Mac OS X.
    __APPLE_CC__ tests for the Apple compiler and its version.
    __STDC_VERSION__ tests for the C99 mode.  */
 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
diff --git a/lib/glm4/gnulib-comp.m4 b/lib/glm4/gnulib-comp.m4
index b1d2854..ba837ae 100644
--- a/lib/glm4/gnulib-comp.m4
+++ b/lib/glm4/gnulib-comp.m4
@@ -67,18 +67,18 @@ AC_DEFUN([lgl_INIT],
   m4_pushdef([lgl_LIBSOURCES_DIR], [])
   gl_COMMON
   gl_source_base='lib/gllib'
-gl_LD_VERSION_SCRIPT
-gl_VISIBILITY
-gl_MULTIARCH
-gl_STDDEF_H
-gl_STDINT_H
-gl_HEADER_STRING_H
-gl_FUNC_STRVERSCMP
-if test $HAVE_STRVERSCMP = 0; then
-  AC_LIBOBJ([strverscmp])
-  gl_PREREQ_STRVERSCMP
-fi
-gl_STRING_MODULE_INDICATOR([strverscmp])
+  gl_LD_VERSION_SCRIPT
+  gl_VISIBILITY
+  gl_MULTIARCH
+  gl_STDDEF_H
+  gl_STDINT_H
+  gl_HEADER_STRING_H
+  gl_FUNC_STRVERSCMP
+  if test $HAVE_STRVERSCMP = 0; then
+    AC_LIBOBJ([strverscmp])
+    gl_PREREQ_STRVERSCMP
+  fi
+  gl_STRING_MODULE_INDICATOR([strverscmp])
   # End of code from modules
   m4_ifval(lgl_LIBSOURCES_LIST, [
     m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ ||
diff --git a/lib/glm4/multiarch.m4 b/lib/glm4/multiarch.m4
index b424dce..0c288b8 100644
--- a/lib/glm4/multiarch.m4
+++ b/lib/glm4/multiarch.m4
@@ -1,4 +1,4 @@
-# multiarch.m4 serial 6
+# multiarch.m4 serial 7
 dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,7 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 # Determine whether the compiler is or may be producing universal binaries.
 #
-# On MacOS X 10.5 and later systems, the user can create libraries and
+# On Mac OS X 10.5 and later systems, the user can create libraries and
 # executables that work on multiple system types--known as "fat" or
 # "universal" binaries--by specifying multiple '-arch' options to the
 # compiler but only a single '-arch' option to the preprocessor.  Like
diff --git a/lib/glm4/visibility.m4 b/lib/glm4/visibility.m4
index 7b24d39..a7d4d8c 100644
--- a/lib/glm4/visibility.m4
+++ b/lib/glm4/visibility.m4
@@ -1,4 +1,4 @@
-# visibility.m4 serial 4 (gettext-0.18.2)
+# visibility.m4 serial 5 (gettext-0.18.2)
 dnl Copyright (C) 2005, 2008, 2010-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -12,7 +12,7 @@ dnl __attribute__((__visibility__("hidden"))) and
 dnl __attribute__((__visibility__("default"))).
 dnl Does *not* test for __visibility__("protected") - which has tricky
 dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on
-dnl MacOS X.
+dnl Mac OS X.
 dnl Does *not* test for __visibility__("internal") - which has processor
 dnl dependent semantics.
 dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
diff --git a/lib/libtasn1.map b/lib/libtasn1.map
index 83235ed..eb227d4 100644
--- a/lib/libtasn1.map
+++ b/lib/libtasn1.map
@@ -58,4 +58,3 @@ LIBTASN1_0_3
   local:
     *;
 };
-
diff --git a/maint.mk b/maint.mk
index 11cb6a6..5d63b49 100644
--- a/maint.mk
+++ b/maint.mk
@@ -61,7 +61,7 @@ endif
 # (i.e., with no $(srcdir) prefix), this definition is careful to
 # remove any $(srcdir) prefix, and to restore what it removes.
 _sc_excl = \
-  $(if $(exclude_file_name_regexp--$@),$(exclude_file_name_regexp--$@),^$$)
+  $(or $(exclude_file_name_regexp--$@),^$$)
 VC_LIST_EXCEPT = \
   $(VC_LIST) | sed 's|^$(_dot_escaped_srcdir)/||' \
 	| if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \
@@ -187,9 +187,11 @@ syntax-check: $(local-check)
 #
 #  in_vc_files | in_files
 #
-#     grep-E-style regexp denoting the files to check.  If no files
-#     are specified the default are all the files that are under
-#     version control.
+#     grep-E-style regexp selecting the files to check.  For in_vc_files,
+#     the regexp is used to select matching files from the list of all
+#     version-controlled files; for in_files, it's from the names printed
+#     by "find $(srcdir)".  When neither is specified, use all files that
+#     are under version control.
 #
 #  containing | non_containing
 #
@@ -261,7 +263,7 @@ define _sc_search_regexp
    : Filter by file name;						\
    if test -n "$$in_files"; then					\
      files=$$(find $(srcdir) | grep -E "$$in_files"			\
-              | grep -Ev '$(exclude_file_name_regexp--$@)');		\
+              | grep -Ev '$(_sc_excl)');				\
    else									\
      files=$$($(VC_LIST_EXCEPT));					\
      if test -n "$$in_vc_files"; then					\
@@ -328,8 +330,8 @@ sc_prohibit_atoi_atof:
 sp_ = strcmp *\(.+\)
 sc_prohibit_strcmp:
 	@prohibit='! *strcmp *\(|\<$(sp_) *[!=]=|[!=]= *$(sp_)'		\
-	exclude=':# *define STRN?EQ\('					\
-	halt='$(ME): replace strcmp calls above with STREQ/STRNEQ'	\
+	exclude='# *define STRN?EQ\('					\
+	halt='replace strcmp calls above with STREQ/STRNEQ'		\
 	  $(_sc_search_regexp)
 
 # Really.  You don't want to use this function.
@@ -351,8 +353,9 @@ sc_prohibit_strncpy:
 #  | xargs --no-run-if-empty \
 #      perl -pi -e 's/(^|[^.])\b(exit ?)\(0\)/$1$2(EXIT_SUCCESS)/'
 sc_prohibit_magic_number_exit:
-	@prohibit='(^|[^.])\<(usage|exit) ?\([0-9]|\<error ?\([1-9][0-9]*,'	\
-	halt='use EXIT_* values rather than magic number'			\
+	@prohibit='(^|[^.])\<(usage|exit|error) ?\(-?[0-9]+[,)]'	\
+	exclude='exit \(77\)|error ?\(((0|77),|[^,]*)'			\
+	halt='use EXIT_* values rather than magic number'		\
 	  $(_sc_search_regexp)
 
 # Using EXIT_SUCCESS as the first argument to error is misleading,
@@ -721,6 +724,7 @@ sc_require_test_exit_idiom:
 sc_trailing_blank:
 	@prohibit='[	 ]$$'						\
 	halt='found trailing blank(s)'					\
+	exclude='^Binary file .* matches$$'				\
 	  $(_sc_search_regexp)
 
 # Match lines like the following, but where there is only one space
@@ -741,7 +745,7 @@ _gl_translatable_diag_func_re ?= error
 sc_unmarked_diagnostics:
 	@prohibit='\<$(_gl_translatable_diag_func_re) *\([^"]*"[^"]*[a-z]{3}' \
 	exclude='(_|ngettext ?)\('					\
-	halt='$(ME): found unmarked diagnostic(s)'			\
+	halt='found unmarked diagnostic(s)'				\
 	  $(_sc_search_regexp)
 
 # Avoid useless parentheses like those in this example:
@@ -775,6 +779,11 @@ sc_prohibit_always_true_header_tests:
 	'  with the corresponding gnulib module, they are always true')	\
 	  $(_sc_search_regexp)
 
+sc_prohibit_defined_have_decl_tests:
+	@prohibit='#[	 ]*if(n?def|.*\<defined)\>[	 (]+HAVE_DECL_'	\
+	halt='HAVE_DECL macros are always defined'			\
+	  $(_sc_search_regexp)
+
 # ==================================================================
 gl_other_headers_ ?= \
   intprops.h	\
@@ -1012,7 +1021,7 @@ sc_redundant_const:
 sc_const_long_option:
 	@prohibit='^ *static.*struct option '				\
 	exclude='const struct option|struct option const'		\
-	halt='$(ME): add "const" to the above declarations'		\
+	halt='add "const" to the above declarations'			\
 	  $(_sc_search_regexp)
 
 NEWS_hash =								\
@@ -1059,7 +1068,7 @@ sc_makefile_at_at_check:
 	  && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || :
 
 news-check: NEWS
-	if sed -n $(news-check-lines-spec)p $(srcdir)/NEWS		\
+	$(AM_V_GEN)if sed -n $(news-check-lines-spec)p $<		\
 	    | grep -E $(news-check-regexp) >/dev/null; then		\
 	  :;								\
 	else								\
@@ -1115,7 +1124,7 @@ sc_po_check:
 # Sometimes it is useful to change the PATH environment variable
 # in Makefiles.  When doing so, it's better not to use the Unix-centric
 # path separator of ':', but rather the automake-provided '$(PATH_SEPARATOR)'.
-msg = '$(ME): Do not use ":" above; use $$(PATH_SEPARATOR) instead'
+msg = 'Do not use ":" above; use $$(PATH_SEPARATOR) instead'
 sc_makefile_path_separator_check:
 	@prohibit='PATH[=].*:'						\
 	in_vc_files='akefile|\.mk$$'					\
@@ -1208,22 +1217,31 @@ sc_Wundef_boolean:
 # not be constant, or might overflow a stack.  In general, use PATH_MAX as
 # a limit, not an array or alloca size.
 sc_prohibit_path_max_allocation:
-	@prohibit='(\balloca *\([^)]*|\[[^]]*)PATH_MAX'			\
+	@prohibit='(\balloca *\([^)]*|\[[^]]*)\bPATH_MAX'		\
 	halt='Avoid stack allocations of size PATH_MAX'			\
 	  $(_sc_search_regexp)
 
 sc_vulnerable_makefile_CVE-2009-4029:
 	@prohibit='perm -777 -exec chmod a\+rwx|chmod 777 \$$\(distdir\)' \
-	in_files=$$(find $(srcdir) -name Makefile.in)			\
+	in_files='(^|/)Makefile\.in$$'					\
 	halt=$$(printf '%s\n'						\
 	  'the above files are vulnerable; beware of running'		\
 	  '  "make dist*" rules, and upgrade to fixed automake'		\
 	  '  see http://bugzilla.redhat.com/542609 for details')	\
 	  $(_sc_search_regexp)
 
+sc_vulnerable_makefile_CVE-2012-3386:
+	@prohibit='chmod a\+w \$$\(distdir\)'				\
+	in_files='(^|/)Makefile\.in$$'					\
+	halt=$$(printf '%s\n'						\
+	  'the above files are vulnerable; beware of running'		\
+	  '  "make distcheck", and upgrade to fixed automake'		\
+	  '  see http://bugzilla.redhat.com/CVE-2012-3386 for details')	\
+	  $(_sc_search_regexp)
+
 vc-diff-check:
-	(unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || :
-	if test -s vc-diffs; then				\
+	$(AM_V_GEN)(unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || :
+	$(AM_V_at)if test -s vc-diffs; then			\
 	  cat vc-diffs;						\
 	  echo "Some files are locally modified:" 1>&2;		\
 	  exit 1;						\
@@ -1239,10 +1257,11 @@ bootstrap-tools ?= autoconf,automake,gnulib
 
 # If it's not already specified, derive the GPG key ID from
 # the signed tag we've just applied to mark this release.
-gpg_key_ID ?= \
-  $$(git cat-file tag v$(VERSION) \
-     | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
-     | awk '/^\[GNUPG:\] ERRSIG / {print $3; exit}')
+gpg_key_ID ?=								\
+  $$(cd $(srcdir)							\
+     && git cat-file tag v$(VERSION)					\
+        | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null	\
+        | awk '/^\[GNUPG:\] ERRSIG / {print $$3; exit}')
 
 translation_project_ ?= coordinator@translationproject.org
 
@@ -1261,13 +1280,14 @@ else
 endif
 
 announcement: NEWS ChangeLog $(rel-files)
-	@$(srcdir)/$(_build-aux)/announce-gen				\
+	$(AM_V_GEN)$(srcdir)/$(_build-aux)/announce-gen			\
 	    --mail-headers='$(announcement_mail_headers_)'		\
 	    --release-type=$(RELEASE_TYPE)				\
 	    --package=$(PACKAGE)					\
 	    --prev=$(PREV_VERSION)					\
 	    --curr=$(VERSION)						\
 	    --gpg-key-id=$(gpg_key_ID)					\
+	    --srcdir=$(srcdir)						\
 	    --news=$(srcdir)/NEWS					\
 	    --bootstrap-tools=$(bootstrap-tools)			\
 	    $$(case ,$(bootstrap-tools), in (*,gnulib,*)		\
@@ -1275,6 +1295,12 @@ announcement: NEWS ChangeLog $(rel-files)
 	    --no-print-checksums					\
 	    $(addprefix --url-dir=, $(url_dir_list))
 
+.PHONY: release-commit
+release-commit:
+	$(AM_V_GEN)cd $(srcdir)				\
+	  && $(_build-aux)/do-release-commit-and-tag	\
+	       -C $(abs_builddir) $(RELEASE)
+
 ## ---------------- ##
 ## Updating files.  ##
 ## ---------------- ##
@@ -1302,7 +1328,7 @@ endef
 
 .PHONY: no-submodule-changes
 no-submodule-changes:
-	if test -d $(srcdir)/.git; then					\
+	$(AM_V_GEN)if test -d $(srcdir)/.git; then			\
 	  diff=$$(cd $(srcdir) && git submodule -q foreach		\
 		  git diff-index --name-only HEAD)			\
 	    || exit 1;							\
@@ -1341,16 +1367,16 @@ check: $(gl_public_submodule_commit)
 .PHONY: alpha beta stable
 ALL_RECURSIVE_TARGETS += alpha beta stable
 alpha beta stable: $(local-check) writable-files $(submodule-checks)
-	test $@ = stable						\
+	$(AM_V_GEN)test $@ = stable					\
 	  && { echo $(VERSION) | grep -E '^[0-9]+(\.[0-9]+)+$$'		\
 	       || { echo "invalid version string: $(VERSION)" 1>&2; exit 1;};}\
 	  || :
-	$(MAKE) vc-diff-check
-	$(MAKE) news-check
-	$(MAKE) distcheck
-	$(MAKE) dist
-	$(MAKE) $(release-prep-hook) RELEASE_TYPE=$@
-	$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
+	$(AM_V_at)$(MAKE) vc-diff-check
+	$(AM_V_at)$(MAKE) news-check
+	$(AM_V_at)$(MAKE) distcheck
+	$(AM_V_at)$(MAKE) dist
+	$(AM_V_at)$(MAKE) $(release-prep-hook) RELEASE_TYPE=$@
+	$(AM_V_at)$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
 
 # Override this in cfg.mk if you follow different procedures.
 release-prep-hook ?= release-prep
@@ -1358,19 +1384,21 @@ release-prep-hook ?= release-prep
 gl_noteworthy_news_ = * Noteworthy changes in release ?.? (????-??-??) [?]
 .PHONY: release-prep
 release-prep:
-	case $$RELEASE_TYPE in alpha|beta|stable) ;; \
+	$(AM_V_GEN)case $$RELEASE_TYPE in alpha|beta|stable) ;; \
 	  *) echo "invalid RELEASE_TYPE: $$RELEASE_TYPE" 1>&2; exit 1;; esac
-	$(MAKE) --no-print-directory -s announcement > ~/announce-$(my_distdir)
-	if test -d $(release_archive_dir); then			\
+	$(AM_V_at)$(MAKE) --no-print-directory -s announcement \
+	  > ~/announce-$(my_distdir)
+	$(AM_V_at)if test -d $(release_archive_dir); then	\
 	  ln $(rel-files) $(release_archive_dir);		\
 	  chmod a-w $(rel-files);				\
 	fi
-	echo $(VERSION) > $(prev_version_file)
-	$(MAKE) update-NEWS-hash
-	perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' NEWS
-	$(emit-commit-log) > .ci-msg
-	$(VC) commit -F .ci-msg -a
-	rm .ci-msg
+	$(AM_V_at)echo $(VERSION) > $(prev_version_file)
+	$(AM_V_at)$(MAKE) update-NEWS-hash
+	$(AM_V_at)perl -pi						\
+	  -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"'	\
+	  $(srcdir)/NEWS
+	$(AM_V_at)msg=$$($(emit-commit-log)) || exit 1;		\
+	cd $(srcdir) && $(VC) commit -m "$$msg" -a
 
 # Override this with e.g., -s $(srcdir)/some_other_name.texi
 # if the default $(PACKAGE)-derived name doesn't apply.
@@ -1378,14 +1406,20 @@ gendocs_options_ ?=
 
 .PHONY: web-manual
 web-manual:
-	@test -z "$(manual_title)" \
+	$(AM_V_GEN)test -z "$(manual_title)" \
 	  && { echo define manual_title in cfg.mk 1>&2; exit 1; } || :
-	@cd '$(srcdir)/doc'; \
+	$(AM_V_at)cd '$(srcdir)/doc'; \
 	  $(SHELL) ../$(_build-aux)/gendocs.sh $(gendocs_options_) \
 	     -o '$(abs_builddir)/doc/manual' \
 	     --email $(PACKAGE_BUGREPORT) $(PACKAGE) \
 	    "$(PACKAGE_NAME) - $(manual_title)"
-	@echo " *** Upload the doc/manual directory to web-cvs."
+	$(AM_V_at)echo " *** Upload the doc/manual directory to web-cvs."
+
+.PHONY: web-manual-update
+web-manual-update:
+	$(AM_V_GEN)cd $(srcdir) \
+	  && $(_build-aux)/gnu-web-doc-update -C $(abs_builddir)
+
 
 # Code Coverage
 
@@ -1411,6 +1445,31 @@ gen-coverage:
 
 coverage: init-coverage build-coverage gen-coverage
 
+# Some projects carry local adjustments for gnulib modules via patches in
+# a gnulib patch directory whose default name is gl/ (defined in bootstrap
+# via local_gl_dir=gl).  Those patches become stale as the originals evolve
+# in gnulib.  Use this rule to refresh any stale patches.  It applies each
+# patch to the original in $(gnulib_dir) and uses the temporary result to
+# generate a fuzz-free .diff file.  If you customize the name of your local
+# gnulib patch directory via bootstrap.conf, this rule detects that name.
+# Run this from a non-VPATH (i.e., srcdir) build directory.
+.PHONY: refresh-gnulib-patches
+refresh-gnulib-patches:
+	gl=gl;								\
+	if test -f bootstrap.conf; then					\
+	  t=$$(perl -lne '/^\s*local_gl_dir=(\S+)/ and $$d=$$1;'	\
+	       -e 'END{defined $$d and print $$d}' bootstrap.conf);	\
+	  test -n "$$t" && gl=$$t;					\
+	fi;								\
+	for diff in $$(cd $$gl; git ls-files | grep '\.diff$$'); do	\
+	  b=$$(printf %s "$$diff"|sed 's/\.diff$$//');			\
+	  VERSION_CONTROL=none						\
+	    patch "$(gnulib_dir)/$$b" "$$gl/$$diff" || exit 1;		\
+	  ( cd $(gnulib_dir) || exit 1;					\
+	    git diff "$$b" > "../$$gl/$$diff";				\
+	    git checkout $$b ) || exit 1;				\
+	done
+
 # Update gettext files.
 PACKAGE ?= $(shell basename $(PWD))
 PO_DOMAIN ?= $(PACKAGE)
@@ -1444,7 +1503,7 @@ update-copyright-env ?=
 # in the file .x-update-copyright.
 .PHONY: update-copyright
 update-copyright:
-	grep -l -w Copyright                                             \
+	$(AM_V_GEN)grep -l -w Copyright                                  \
 	  $$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \
 	  | $(update-copyright-env) xargs $(srcdir)/$(_build-aux)/$@
 
@@ -1517,6 +1576,7 @@ _gl_TS_obj_files ?= *.$(OBJEXT)
 # Files in which to search for the one-line style extern declarations.
 # $(_gl_TS_dir)-relative.
 _gl_TS_headers ?= $(noinst_HEADERS)
+_gl_TS_other_headers ?= *.h
 
 .PHONY: _gl_tight_scope
 _gl_tight_scope: $(bin_PROGRAMS)
@@ -1539,7 +1599,8 @@ _gl_tight_scope: $(bin_PROGRAMS)
 	  && { echo the above functions should have static scope >&2;	\
 	       exit 1; } || : ;						\
 	( printf '^%s$$\n' '__.*' $(_gl_TS_unmarked_extern_vars);	\
-	  perl -lne '$(_gl_TS_var_match) and print "^$$1\$$"' $$hdr *.h	\
+	  perl -lne '$(_gl_TS_var_match) and print "^$$1\$$"'		\
+		$$hdr $(_gl_TS_other_headers)				\
 	) | sort -u > $$t;						\
 	nm -e $(_gl_TS_obj_files) | sed -n 's/.* [BCDGRS] //p'		\
             | sort -u | grep -Ev -f $$t					\


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Mon Sep 24 08:52:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TG89Q-0000So-Jt
	for mharc-libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57560)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88p-0000PK-8J
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88d-0004FP-K7
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:03 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:44599)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88d-0004Ev-E5
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:51:51 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88c-0005uQ-L6
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 12:51:51 +0000
Date: Mon, 24 Sep 2012 12:51:50 +0000
Message-Id: <E1TG88c-0005uQ-L6@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, libtasn1_2_x,
	updated. libtasn1_2_13-20-g25fa19c
X-Git-Refname: refs/heads/libtasn1_2_x
X-Git-Reftype: branch
X-Git-Oldrev: 0f18245c6a19c407a65ae5b2d39dec032c41f8ac
X-Git-Newrev: 25fa19c175f338ff4b18bd46f5d0f28ca24cb02d
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Sep 2012 12:52:39 -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=25fa19c175f338ff4b18bd46f5d0f28ca24cb02d

The branch, libtasn1_2_x has been updated
       via  25fa19c175f338ff4b18bd46f5d0f28ca24cb02d (commit)
      from  0f18245c6a19c407a65ae5b2d39dec032c41f8ac (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 25fa19c175f338ff4b18bd46f5d0f28ca24cb02d
Author: Simon Josefsson <simon@josefsson.org>
Date:   Mon Sep 24 14:01:12 2012 +0200

    Version 2.14.

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

Summary of changes:
 NEWS |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index fc3dd95..145a70b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
 GNU Libtasn1 NEWS                                     -*- outline -*-
 
-* Noteworthy changes in release 2.14 (unreleased) [stable]
+* Noteworthy changes in release 2.14 (2012-09-24) [stable]
 - Added asn1_read_node_value() to obtain a node's value.
   This is to deprecate the export of the node_asn internal structure
   for the upcoming 3.x release.  The ASN1_DATA_NODE type and the


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Mon Sep 24 08:52:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TG89c-0000V1-NU
	for mharc-libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57767)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG890-0000Pz-1q
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88g-0004Ig-Ue
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:52:13 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:44609)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88g-0004IH-R4
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 08:51:54 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1TG88g-0005vP-JO
	for libtasn1-commit@gnu.org; Mon, 24 Sep 2012 12:51:54 +0000
Date: Mon, 24 Sep 2012 12:51:54 +0000
Message-Id: <E1TG88g-0005vP-JO@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 annotated tag, libtasn1_2_14,
	created. libtasn1_2_14
X-Git-Refname: refs/tags/libtasn1_2_14
X-Git-Reftype: annotated tag
X-Git-Oldrev: 0000000000000000000000000000000000000000
X-Git-Newrev: 8575b4791757bd668fe63e2350ef7887e5ceae1e
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Sep 2012 12:52:51 -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=8575b4791757bd668fe63e2350ef7887e5ceae1e

The annotated tag, libtasn1_2_14 has been created
        at  8575b4791757bd668fe63e2350ef7887e5ceae1e (tag)
   tagging  25fa19c175f338ff4b18bd46f5d0f28ca24cb02d (commit)
  replaces  libtasn1_2_13
 tagged by  Simon Josefsson
        on  Mon Sep 24 14:44:09 2012 +0200

- Log -----------------------------------------------------------------
2.14
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQFOBAABAgA4BQJQYFWZMRSAAAAAABUAE3BrYS1hZGRyZXNzQGdudXBnLm9yZ3Np
bW9uQGpvc2Vmc3Nvbi5vcmcACgkQYM7nERBeci5NPgf/XYG4ZxL2iSPxA0yYPLbz
KEkDZvv2uAdqSHErL2Pqbr0r2hCTdEEB728BXIq6u91Zfp6Ybwkt5WlMLUqZvLQI
5bYVVL+/vmbv+RPbJZaJcH6vCK0ygr4D1qeQD2m9IlVwLY3oP4jqyoC7iwfJWY7d
PUL0LK2Pv4gPpnWBPO25dTehZD7B7HMhpXOILJjAONjvqmLt9Ndl4ChfgW4vUB0w
YO6viftGnkw/MB7VRySm1j41SUgb6AMXR4XJNw9CYviPg5fpwWxxYebpCPTP6Dh6
kUHtl8WL3wCnwOB9voJBeWJ9nh4FY0CZ3JTkEn32FRrBDs/Tge85q8QT2xRTrFCV
Wg==
=xjwM
-----END PGP SIGNATURE-----

Nikos Mavrogiannopoulos (5):
      Added asn1_read_node_value()
      Node type field is now included in ASN1_DATA_NODE.
      no need to reserve.
      added new symbol
      updated news

Simon Josefsson (15):
      Fix release targets.
      Update for 2.12.
      Bump versions.
      Fix compilation warnings.
      Fix.
      Bump because of new API.
      Fix namespace of newly added struct.
      Add Since: marker to asn1_read_node_value.
      Doc fix.
      Generated.
      Bump copyright year.
      Update for 2.13.
      Update gnulib files.
      Fix syntax-check warnings.
      Version 2.14.

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


hooks/post-receive
-- 
GNU libtasn1


From MAILER-DAEMON Fri Sep 28 06:45:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1THY4g-0002UN-E6
	for mharc-libtasn1-commit@gnu.org; Fri, 28 Sep 2012 06:45:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55986)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1THY4a-0002U8-Co
	for libtasn1-commit@gnu.org; Fri, 28 Sep 2012 06:45:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1THY4U-0000pt-BO
	for libtasn1-commit@gnu.org; Fri, 28 Sep 2012 06:45:32 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:37206)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1THY4U-0000pE-7k
	for libtasn1-commit@gnu.org; Fri, 28 Sep 2012 06:45:26 -0400
Received: from jas by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1THY4S-0002FZ-Oz
	for libtasn1-commit@gnu.org; Fri, 28 Sep 2012 10:45:25 +0000
Date: Fri, 28 Sep 2012 10:45:25 +0000
Message-Id: <E1THY4S-0002FZ-Oz@vcs.savannah.gnu.org>
From: "Simon Josefsson" <simon@josefsson.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_13-33-g005827d
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e5fe28809968164765d0733a6a579991006f8d58
X-Git-Newrev: 005827d4b7c32d43cfbd1235ba1dd4d0a4ea7fcc
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Sep 2012 10:45:36 -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=005827d4b7c32d43cfbd1235ba1dd4d0a4ea7fcc

The branch, master has been updated
       via  005827d4b7c32d43cfbd1235ba1dd4d0a4ea7fcc (commit)
      from  e5fe28809968164765d0733a6a579991006f8d58 (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 005827d4b7c32d43cfbd1235ba1dd4d0a4ea7fcc
Author: Simon Josefsson <simon@josefsson.org>
Date:   Wed Sep 26 10:48:25 2012 +0200

    Add.

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

Summary of changes:
 doc/release-process.txt |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 doc/release-process.txt

diff --git a/doc/release-process.txt b/doc/release-process.txt
new file mode 100644
index 0000000..161231e
--- /dev/null
+++ b/doc/release-process.txt
@@ -0,0 +1,28 @@
+Release steps:
+
+* Review changes compared to last release.
+  make review-diff
+
+* Make sure LT_* variables in configure.ac are updated properly.
+
+* Make sure NEWS file contains a good summary of changes.
+
+* Optionally check that everything builds.
+  make release-check
+
+* Replace 'unreleased' with 'released YYYY-MM-DD' in NEWS and commit
+  it with a commit log like 'Version 2.13.'.
+
+* Build tarball and update webpages.
+  make release
+
+* Email announcement, based on announce.txt.
+
+* Create a Savannah news blurb about the release:
+  https://savannah.gnu.org/news/?group=libtasn1
+
+* Notify freecode.org.
+
+Post-release:
+
+* Update NEWS file for another release.


hooks/post-receive
-- 
GNU libtasn1


