diff options
author | agc <agc@pkgsrc.org> | 2016-03-04 23:09:25 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2016-03-04 23:09:25 +0000 |
commit | fef95824844b3df555ca2013cb07f5f7fce2ea8e (patch) | |
tree | b03853745d1d96d34211a01bd4332a26b93c68c7 /pkgtools/digest | |
parent | dbd26af15fcacf983b7c8acfd36e133a322e203a (diff) | |
download | pkgsrc-fef95824844b3df555ca2013cb07f5f7fce2ea8e.tar.gz |
Update digest package to 20160304
+ remove unnecessary _POSIX_C_SOURCE definitions
+ fix up explicit_memset usage in sha3.c
+ bump version to 20160304
Diffstat (limited to 'pkgtools/digest')
-rwxr-xr-x | pkgtools/digest/files/configure | 18 | ||||
-rw-r--r-- | pkgtools/digest/files/configure.ac | 4 | ||||
-rw-r--r-- | pkgtools/digest/files/keccak.c | 2 | ||||
-rw-r--r-- | pkgtools/digest/files/sha3.c | 8 |
4 files changed, 14 insertions, 18 deletions
diff --git a/pkgtools/digest/files/configure b/pkgtools/digest/files/configure index eef6946dc48..358c6ed8ae3 100755 --- a/pkgtools/digest/files/configure +++ b/pkgtools/digest/files/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for nbsd-digest 20160216. +# Generated by GNU Autoconf 2.69 for nbsd-digest 20160304. # # Report bugs to <agc@netbsd.org>. # @@ -580,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='nbsd-digest' PACKAGE_TARNAME='nbsd-digest' -PACKAGE_VERSION='20160216' -PACKAGE_STRING='nbsd-digest 20160216' +PACKAGE_VERSION='20160304' +PACKAGE_STRING='nbsd-digest 20160304' PACKAGE_BUGREPORT='agc@netbsd.org' PACKAGE_URL='' @@ -1242,7 +1242,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures nbsd-digest 20160216 to adapt to many kinds of systems. +\`configure' configures nbsd-digest 20160304 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1312,7 +1312,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of nbsd-digest 20160216:";; + short | recursive ) echo "Configuration of nbsd-digest 20160304:";; esac cat <<\_ACEOF @@ -1392,7 +1392,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -nbsd-digest configure 20160216 +nbsd-digest configure 20160304 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1937,7 +1937,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by nbsd-digest $as_me 20160216, which was +It was created by nbsd-digest $as_me 20160304, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -4707,7 +4707,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by nbsd-digest $as_me 20160216, which was +This file was extended by nbsd-digest $as_me 20160304, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4769,7 +4769,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -nbsd-digest config.status 20160216 +nbsd-digest config.status 20160304 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/pkgtools/digest/files/configure.ac b/pkgtools/digest/files/configure.ac index 2a80ebf6330..4cf0a19f587 100644 --- a/pkgtools/digest/files/configure.ac +++ b/pkgtools/digest/files/configure.ac @@ -1,7 +1,7 @@ -dnl $Id: configure.ac,v 1.19 2016/03/03 22:11:07 agc Exp $ +dnl $Id: configure.ac,v 1.20 2016/03/04 23:09:25 agc Exp $ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT([nbsd-digest],[20160216],[agc@netbsd.org]) +AC_INIT([nbsd-digest],[20160304],[agc@netbsd.org]) AC_CONFIG_SRCDIR([digest.c]) AC_CONFIG_HEADER(config.h) AC_ARG_PROGRAM diff --git a/pkgtools/digest/files/keccak.c b/pkgtools/digest/files/keccak.c index 3d36793c13c..0bc7b79d422 100644 --- a/pkgtools/digest/files/keccak.c +++ b/pkgtools/digest/files/keccak.c @@ -24,8 +24,6 @@ * SUCH DAMAGE. */ -#define _POSIX_C_SOURCE 200809L - #include <stdint.h> #include "keccak.h" diff --git a/pkgtools/digest/files/sha3.c b/pkgtools/digest/files/sha3.c index 5442c6e164a..d5de614538c 100644 --- a/pkgtools/digest/files/sha3.c +++ b/pkgtools/digest/files/sha3.c @@ -28,8 +28,6 @@ * SHA-3: FIPS-202, Permutation-Based Hash and Extendable-Ouptut Functions */ -#define _POSIX_C_SOURCE 200809L - #include <assert.h> #include <stddef.h> #include <stdint.h> @@ -43,7 +41,7 @@ void *(*volatile sha3_explicit_memset_impl)(void *, int, size_t) = &memset; static void * -explicit_memset(void *buf, int c, size_t n) +sha3_explicit_memset(void *buf, int c, size_t n) { return (*sha3_explicit_memset_impl)(buf, c, n); @@ -213,7 +211,7 @@ sha3_final(uint8_t *h, unsigned d, struct sha3 *C, unsigned rw) T >>= 8; } while (--d); } - (void)explicit_memset(C->A, 0, sizeof C->A); + (void)sha3_explicit_memset(C->A, 0, sizeof C->A); C->nb = 0; } @@ -264,7 +262,7 @@ shake_final(uint8_t *h, unsigned d, struct sha3 *C, unsigned rw) } } - (void)explicit_memset(C->A, 0, sizeof C->A); + (void)sha3_explicit_memset(C->A, 0, sizeof C->A); C->nb = 0; } |