Hello community, here is the log from the commit of package libmd for openSUSE:Factory checked in at 2018-02-03 15:40:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libmd (Old) and /work/SRC/openSUSE:Factory/.libmd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libmd" Sat Feb 3 15:40:21 2018 rev:3 rq:572060 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libmd/libmd.changes 2016-07-27 16:12:08.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libmd.new/libmd.changes 2018-02-03 15:40:22.867316234 +0100 @@ -1,0 +2,17 @@ +Fri Feb 2 13:36:21 UTC 2018 - [email protected] + +- Update to version 1.0.0: + * build: Drop GCC specific compiler flag -include + * build: Detect version script linker support at configure time + * build: Use an export symbols file if there is no version script + support + * build: Do not override the default DEPENDENCIES for libmd + * Stop using non-portable <sys/param.h> + * Remove unused __RCSID macro usage + * Remove unused NEWS file + * Stop using non-portable <sys/cdefs.h> + * build: Add -no-undefined libtool flag + * build: Stop checking for malloc() and memset() + * build: Switch to AC_C_BIGENDIAN defining WORD_BIGENDIAN + +------------------------------------------------------------------- Old: ---- libmd-0.0.0.tar.xz libmd-0.0.0.tar.xz.asc New: ---- libmd-1.0.0.tar.xz libmd-1.0.0.tar.xz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libmd.spec ++++++ --- /var/tmp/diff_new_pack.eCKvkd/_old 2018-02-03 15:40:23.927266728 +0100 +++ /var/tmp/diff_new_pack.eCKvkd/_new 2018-02-03 15:40:23.931266541 +0100 @@ -1,7 +1,7 @@ # # spec file for package libmd # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,17 +18,16 @@ %define sover 0 Name: libmd -Version: 0.0.0 +Version: 1.0.0 Release: 0 Summary: Message digest functions from BSD systems -License: BSD-2-Clause or BSD-3-Clause or ISC or SUSE-Public-Domain +License: BSD-2-Clause OR BSD-3-Clause OR ISC OR SUSE-Public-Domain Group: Development/Languages/C and C++ -Url: https://www.hadrons.org/software/libmd/ +URL: https://www.hadrons.org/software/libmd/ Source0: https://archive.hadrons.org/software/libmd/libmd-%{version}.tar.xz Source1: https://archive.hadrons.org/software/libmd/libmd-%{version}.tar.xz.asc Source2: %{name}.keyring BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libmd library provides a few message digest ("hash") functions, as @@ -78,12 +77,10 @@ %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} -%defattr(-,root,root) %doc COPYING %{_libdir}/%{name}.so.%{sover}* %files devel -%defattr(-,root,root) %doc ChangeLog COPYING README %{_includedir}/* %{_libdir}/%{name}.so ++++++ libmd-0.0.0.tar.xz -> libmd-1.0.0.tar.xz ++++++ ++++ 3099 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/.dist-version new/libmd-1.0.0/.dist-version --- old/libmd-0.0.0/.dist-version 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/.dist-version 2018-01-13 23:03:14.000000000 +0100 @@ -1 +1 @@ -0.0.0 +1.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/ChangeLog new/libmd-1.0.0/ChangeLog --- old/libmd-0.0.0/ChangeLog 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/ChangeLog 2018-01-13 23:03:14.000000000 +0100 @@ -1,3 +1,209 @@ +commit c657abc165177183f453437e578832d146103d61 +Author: Guillem Jover <[email protected]> +Date: Sat Jan 13 16:29:02 2018 +0100 + + Release libmd 1.0.0 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 397964a117b7e17fc1abf336f2719ba932fb3a67 +Author: Guillem Jover <[email protected]> +Date: Sat Jan 13 16:32:33 2018 +0100 + + Remove unused NEWS file + + NEWS | 3 --- + 1 file changed, 3 deletions(-) + +commit cc6881c6d7be37279090d5fccb60bcb27bef918e +Author: Guillem Jover <[email protected]> +Date: Mon Jun 5 05:10:51 2017 +0200 + + Remove unused __RCSID macro usage + + This is an obsolescent practice, just stop conditionally using this + macro. + + src/md2.c | 4 ---- + 1 file changed, 4 deletions(-) + +commit 0def18290376573cf4e8faae071f33e73d163b1a +Author: Guillem Jover <[email protected]> +Date: Thu Jun 1 03:00:05 2017 +0200 + + Stop using non-portable <sys/param.h> + + There are platforms without <sys/param.h>, so we better avoid the + header altogether, and add the required MIN macro outselves. + + Based-on-patch-by: Michael Haubenwallner <[email protected]> + + configure.ac | 1 - + src/helper.c | 5 ++++- + src/sha1.c | 1 - + 3 files changed, 4 insertions(+), 3 deletions(-) + +commit 04d92f90e9f522c002907089a4a6a336d86caaff +Author: Guillem Jover <[email protected]> +Date: Wed May 31 06:58:23 2017 +0200 + + build: Do not override the default DEPENDENCIES for libmd + + Extend it instead via EXTRA_*_DEPENDENCIES, to make sure that we + preserve the builtin library dependencies generated from LIBADD. + + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 4c94d7fd8ccc96036ef847ddac96d24ffee12235 +Author: Guillem Jover <[email protected]> +Date: Wed May 31 06:55:35 2017 +0200 + + build: Use an export symbols file if there is no version script support + + We generate the symbol list from the version script to avoid repeating + ourselves and potentially getting the lists out-of-sync. + + Proposed-by: Michael Haubenwallner <[email protected]> + + .gitignore | 1 + + src/Makefile.am | 13 +++++++++++++ + 2 files changed, 14 insertions(+) + +commit b6be272ec1baa16adb3502895f361f443054ccd9 +Author: Guillem Jover <[email protected]> +Date: Wed May 31 06:45:25 2017 +0200 + + build: Detect version script linker support at configure time + + This is not a widely supported feature, so only use if in case the + linker does support it. + + Proposed-by: Michael Haubenwallner <[email protected]> + + .gitignore | 1 - + Makefile.am | 1 + + autogen | 1 - + configure.ac | 1 + + m4/.gitignore | 2 ++ + m4/libmd-linker.m4 | 22 ++++++++++++++++++++++ + src/Makefile.am | 5 ++++- + 7 files changed, 30 insertions(+), 3 deletions(-) + +commit 555d5074acfdc938932ac155b71eedcea20b198c +Author: Michael Haubenwallner <[email protected]> +Date: Mon Apr 10 13:10:45 2017 +0200 + + build: Switch to AC_C_BIGENDIAN defining WORD_BIGENDIAN + + We should use the autoconf macro instead of expecting the system to + provide the endianness information, which many do not. + + [[email protected]: + - Use autoconf macro instead of gnulib one. + - Slightly reword commit message. ] + + Signed-off-by: Guillem Jover <[email protected]> + + configure.ac | 3 ++- + src/md4.c | 2 +- + src/md5.c | 2 +- + src/rmd160.c | 7 +------ + src/sha1.c | 2 +- + src/sha2.c | 39 +++------------------------------------ + 6 files changed, 9 insertions(+), 46 deletions(-) + +commit c3c8d859c309ed245b255d03937ac8e0cb98a425 +Author: Guillem Jover <[email protected]> +Date: Thu Jun 1 02:43:22 2017 +0200 + + build: Drop GCC specific compiler flag -include + + Instead, explicitly include <config.h> in library and test source files + for increased portability. + + Based-on-patch-by: Michael Haubenwallner <[email protected]> + + src/Makefile.am | 3 ++- + src/helper.c | 2 ++ + src/md2.c | 2 ++ + src/md4.c | 2 ++ + src/md5.c | 2 ++ + src/rmd160.c | 3 +++ + src/sha1.c | 2 ++ + src/sha2.c | 2 ++ + test/Makefile.am | 1 - + test/md2.c | 2 ++ + test/md4.c | 2 ++ + test/md5.c | 2 ++ + test/rmd160.c | 2 ++ + test/sha1.c | 2 ++ + test/sha2.c | 2 ++ + 15 files changed, 29 insertions(+), 2 deletions(-) + +commit 23637d726c7be93630b6e6418695276d13d71fb6 +Author: Michael Haubenwallner <[email protected]> +Date: Mon Apr 10 13:10:40 2017 +0200 + + build: Stop checking for malloc() and memset() + + We do not provide alternatives for when memset() is missing, or when + malloc() is not GNU-style malloc(), causing redirection to (undefined) + rpl_malloc(). We do not rely on GNU-style malloc() at all, so there is + no point in checking for it. + + [[email protected]: + - Slightly reword commit message. ] + + Signed-off-by: Guillem Jover <[email protected]> + + configure.ac | 2 -- + 1 file changed, 2 deletions(-) + +commit 765a605ec4c5b2d48fba44846cbe8950f428104d +Author: Michael Haubenwallner <[email protected]> +Date: Mon Apr 10 13:10:39 2017 +0200 + + build: Add -no-undefined libtool flag + + We have no need for undefined symbols, so we can let the shared + library build even on systems without support for undefined symbols. + + [[email protected]: + - Place the option on its own line. + - Slightly reword commit message. ] + + Signed-off-by: Guillem Jover <[email protected]> + + src/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +commit bb131b2e87b43023655995f5c5d8d4191686f6e3 +Author: Michael Haubenwallner <[email protected]> +Date: Mon Apr 10 13:10:38 2017 +0200 + + Stop using non-portable <sys/cdefs.h> + + For portability, we should not rely on the __BEGIN_DECLS, __END_DECLS + and __P to be predefined somewhere. For __P, we just remove its usage + as we do not support pre-ANSI-C compilers. + + [[email protected]: + - Separate extern declarations with newlines. + - Slightly reword commit message. ] + + Signed-off-by: Guillem Jover <[email protected]> + + include/md2.h | 11 ++++++++--- + include/md4.h | 11 ++++++++--- + include/md5.h | 11 ++++++++--- + include/rmd160.h | 11 ++++++++--- + include/sha1.h | 11 ++++++++--- + include/sha2.h | 11 ++++++++--- + src/md2.c | 3 +-- + 7 files changed, 49 insertions(+), 20 deletions(-) + commit ed7d023ee8d20957752e86e60a8d50620cc7cc7e Author: Guillem Jover <[email protected]> Date: Wed Feb 10 00:16:06 2016 +0100 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/Makefile.am new/libmd-1.0.0/Makefile.am --- old/libmd-0.0.0/Makefile.am 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/Makefile.am 2017-06-05 05:00:55.000000000 +0200 @@ -7,6 +7,7 @@ EXTRA_DIST = \ autogen \ get-version \ + m4/libmd-linker.m4 \ $(nil) dist-hook: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/NEWS new/libmd-1.0.0/NEWS --- old/libmd-0.0.0/NEWS 2016-02-10 01:07:02.000000000 +0100 +++ new/libmd-1.0.0/NEWS 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -0.0.0 (2016-02-10) - - Initial release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/autogen new/libmd-1.0.0/autogen --- old/libmd-0.0.0/autogen 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/autogen 2017-06-05 05:01:07.000000000 +0200 @@ -1,5 +1,4 @@ #!/bin/sh -mkdir -p m4 autoreconf -f -i rm -rf autom4te.cache diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/build-aux/ar-lib new/libmd-1.0.0/build-aux/ar-lib --- old/libmd-0.0.0/build-aux/ar-lib 2016-02-10 17:23:19.000000000 +0100 +++ new/libmd-1.0.0/build-aux/ar-lib 2018-01-13 19:52:49.000000000 +0100 @@ -4,7 +4,7 @@ me=ar-lib scriptversion=2012-03-01.08; # UTC -# Copyright (C) 2010-2014 Free Software Foundation, Inc. +# Copyright (C) 2010-2017 Free Software Foundation, Inc. # Written by Peter Rosin <[email protected]>. # # This program is free software; you can redistribute it and/or modify diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/config.h.in new/libmd-1.0.0/config.h.in --- old/libmd-0.0.0/config.h.in 2016-02-10 17:23:18.000000000 +0100 +++ new/libmd-1.0.0/config.h.in 2018-01-13 19:52:48.000000000 +0100 @@ -1,21 +1,17 @@ /* config.h.in. Generated from configure.ac by autoheader. */ +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#undef HAVE_MALLOC - /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the `memset' function. */ -#undef HAVE_MEMSET - /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H @@ -28,12 +24,6 @@ /* Define to 1 if you have the <string.h> header file. */ #undef HAVE_STRING_H -/* Define to 1 if you have the <sys/endian.h> header file. */ -#undef HAVE_SYS_ENDIAN_H - -/* Define to 1 if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - /* Define to 1 if you have the <sys/stat.h> header file. */ #undef HAVE_SYS_STAT_H @@ -95,6 +85,18 @@ /* Version number of package */ #undef VERSION +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 @@ -116,9 +118,6 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE -/* Define to rpl_malloc if the replacement function should be used. */ -#undef malloc - /* Define to `long int' if <sys/types.h> does not define. */ #undef off_t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/configure.ac new/libmd-1.0.0/configure.ac --- old/libmd-0.0.0/configure.ac 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/configure.ac 2018-01-13 19:42:59.000000000 +0100 @@ -13,7 +13,7 @@ LIBMD_ABI_MAJOR=0 LIBMD_ABI_MINOR=0 -LIBMD_ABI_PATCH=0 +LIBMD_ABI_PATCH=1 LIBMD_ABI="$LIBMD_ABI_MAJOR:$LIBMD_ABI_MINOR:$LIBMD_ABI_PATCH" AC_SUBST([LIBMD_ABI]) @@ -24,6 +24,7 @@ AM_PROG_AR LT_INIT +LIBMD_LINKER_VERSION_SCRIPT # Checks for programs. AC_PROG_CC @@ -31,16 +32,14 @@ # Checks for libraries. # Checks for header files. -AC_CHECK_HEADERS([sys/param.h sys/endian.h]) # Checks for typedefs, structures, and compiler characteristics. +AC_C_BIGENDIAN AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T # Checks for library functions. -AC_FUNC_MALLOC -AC_CHECK_FUNCS([memset]) AC_CONFIG_FILES([ Makefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/md2.h new/libmd-1.0.0/include/md2.h --- old/libmd-0.0.0/include/md2.h 2014-07-19 16:04:31.000000000 +0200 +++ new/libmd-1.0.0/include/md2.h 2017-06-05 04:51:37.000000000 +0200 @@ -3,7 +3,6 @@ #ifndef _MD2_H_ #define _MD2_H_ -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -18,7 +17,10 @@ unsigned char X[48]; /* input buffer */ } MD2_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void MD2Init(MD2_CTX *); void MD2Update(MD2_CTX *, const unsigned char *, unsigned int); void MD2Final(unsigned char[16], MD2_CTX *); @@ -26,6 +28,9 @@ char *MD2File(const char *, char *); char *MD2FileChunk(const char *, char *, off_t, off_t); char *MD2Data(const unsigned char *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #endif /* _MD2_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/md4.h new/libmd-1.0.0/include/md4.h --- old/libmd-0.0.0/include/md4.h 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/include/md4.h 2017-06-05 04:51:37.000000000 +0200 @@ -16,7 +16,6 @@ #ifndef _MD4_H_ #define _MD4_H_ -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -31,7 +30,10 @@ uint8_t buffer[MD4_BLOCK_LENGTH]; /* input buffer */ } MD4_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void MD4Init(MD4_CTX *); void MD4Update(MD4_CTX *, const uint8_t *, size_t); void MD4Pad(MD4_CTX *); @@ -41,6 +43,9 @@ char *MD4File(const char *, char *); char *MD4FileChunk(const char *, char *, off_t, off_t); char *MD4Data(const uint8_t *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #endif /* _MD4_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/md5.h new/libmd-1.0.0/include/md5.h --- old/libmd-0.0.0/include/md5.h 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/include/md5.h 2017-06-05 04:51:37.000000000 +0200 @@ -15,7 +15,6 @@ #ifndef _MD5_H_ #define _MD5_H_ -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -30,7 +29,10 @@ uint8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */ } MD5_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void MD5Init(MD5_CTX *); void MD5Update(MD5_CTX *, const uint8_t *, size_t); void MD5Pad(MD5_CTX *); @@ -40,6 +42,9 @@ char *MD5File(const char *, char *); char *MD5FileChunk(const char *, char *, off_t, off_t); char *MD5Data(const uint8_t *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #endif /* _MD5_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/rmd160.h new/libmd-1.0.0/include/rmd160.h --- old/libmd-0.0.0/include/rmd160.h 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/include/rmd160.h 2017-06-05 04:51:37.000000000 +0200 @@ -25,7 +25,6 @@ #ifndef _RMD160_H #define _RMD160_H -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -41,7 +40,10 @@ uint8_t buffer[RMD160_BLOCK_LENGTH]; /* input buffer */ } RMD160_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void RMD160Init(RMD160_CTX *); void RMD160Transform(uint32_t [5], const uint8_t [RMD160_BLOCK_LENGTH]); void RMD160Update(RMD160_CTX *, const uint8_t *, size_t); @@ -51,6 +53,9 @@ char *RMD160File(const char *, char *); char *RMD160FileChunk(const char *, char *, off_t, off_t); char *RMD160Data(const uint8_t *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #endif /* _RMD160_H */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/sha1.h new/libmd-1.0.0/include/sha1.h --- old/libmd-0.0.0/include/sha1.h 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/include/sha1.h 2017-06-05 04:51:37.000000000 +0200 @@ -9,7 +9,6 @@ #ifndef _SHA1_H #define _SHA1_H -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -24,7 +23,10 @@ uint8_t buffer[SHA1_BLOCK_LENGTH]; } SHA1_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void SHA1Init(SHA1_CTX *); void SHA1Pad(SHA1_CTX *); void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]); @@ -34,7 +36,10 @@ char *SHA1File(const char *, char *); char *SHA1FileChunk(const char *, char *, off_t, off_t); char *SHA1Data(const uint8_t *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #define HTONDIGEST(x) do { \ x[0] = htonl(x[0]); \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/include/sha2.h new/libmd-1.0.0/include/sha2.h --- old/libmd-0.0.0/include/sha2.h 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/include/sha2.h 2017-06-05 04:51:37.000000000 +0200 @@ -37,7 +37,6 @@ #ifndef _SHA2_H #define _SHA2_H -#include <sys/cdefs.h> #include <sys/types.h> #include <stdint.h> @@ -64,7 +63,10 @@ uint8_t buffer[SHA512_BLOCK_LENGTH]; } SHA2_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif + void SHA256Init(SHA2_CTX *); void SHA256Transform(uint32_t state[8], const uint8_t [SHA256_BLOCK_LENGTH]); void SHA256Update(SHA2_CTX *, const uint8_t *, size_t); @@ -94,6 +96,9 @@ char *SHA512File(const char *, char *); char *SHA512FileChunk(const char *, char *, off_t, off_t); char *SHA512Data(const uint8_t *, size_t, char *); -__END_DECLS + +#ifdef __cplusplus +} +#endif #endif /* _SHA2_H */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/m4/libmd-linker.m4 new/libmd-1.0.0/m4/libmd-linker.m4 --- old/libmd-0.0.0/m4/libmd-linker.m4 1970-01-01 01:00:00.000000000 +0100 +++ new/libmd-1.0.0/m4/libmd-linker.m4 2017-06-05 05:00:55.000000000 +0200 @@ -0,0 +1,22 @@ +# Copyright © 2014 Guillem Jover <[email protected]> + +# LIBMD_LINKER_VERSION_SCRIPT +# -------------------------- +AC_DEFUN([LIBMD_LINKER_VERSION_SCRIPT], [ + AC_CACHE_CHECK([for --version-script linker flag], [libmd_cv_version_script], [ + echo "{ global: symbol; local: *; };" >conftest.map + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([], []) + ], [ + libmd_cv_version_script=yes + ], [ + libmd_cv_version_script=no + ]) + LDFLAGS="$save_LDFLAGS" + rm -f conftest.map + ]) + AM_CONDITIONAL([HAVE_LINKER_VERSION_SCRIPT], + [test "x$libmd_cv_version_script" = "xyes"]) +]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/m4/libtool.m4 new/libmd-1.0.0/m4/libtool.m4 --- old/libmd-0.0.0/m4/libtool.m4 2016-02-10 17:23:14.000000000 +0100 +++ new/libmd-1.0.0/m4/libtool.m4 2018-01-13 19:52:44.000000000 +0100 @@ -728,7 +728,6 @@ cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/Makefile.am new/libmd-1.0.0/src/Makefile.am --- old/libmd-0.0.0/src/Makefile.am 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/src/Makefile.am 2017-06-05 05:01:25.000000000 +0200 @@ -1,8 +1,9 @@ ## Process this file with automake to produce Makefile.in AM_CPPFLAGS = \ + -I$(top_builddir) \ -I$(top_srcdir)/include \ - -include $(top_builddir)/config.h + $(nil) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ @@ -23,10 +24,18 @@ $(nil) libmd_la_LDFLAGS = \ - -Wl,--version-script=$(srcdir)/libmd.map \ + -no-undefined \ -version-number $(LIBMD_ABI) -libmd_la_DEPENDENCIES = \ +if HAVE_LINKER_VERSION_SCRIPT +libmd_la_LDFLAGS += \ + -Wl,--version-script=$(srcdir)/libmd.map +else +libmd_la_LDFLAGS += \ + -export-symbols $(srcdir)/libmd.sym +endif +EXTRA_libmd_la_DEPENDENCIES = \ libmd.map \ + libmd.sym \ helper.c \ $(nil) libmd_la_SOURCES = \ @@ -53,6 +62,15 @@ $(libmd_la_helper_sources) \ $(nil) +DISTCLEANFILES = \ + libmd.sym \ + $(nil) + +# Generate a simple libtool symbol export list to be used as a fallback if +# there is no version script support. +libmd.sym: libmd.map + $(AM_V_GEN) sed -ne 's/^[[:space:]]\+\([A-Za-z0-9]\+\);/\1/p' $< > $@ + md2hl.c: helper.c $(AM_V_GEN) sed -e 's/hashinc/md2.h/g' -e 's/HASH/MD2/g' $< > $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/helper.c new/libmd-1.0.0/src/helper.c --- old/libmd-0.0.0/src/helper.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/helper.c 2017-06-05 05:01:25.000000000 +0200 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <hashinc> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * HASHEnd(HASH_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md2.c new/libmd-1.0.0/src/md2.c --- old/libmd-0.0.0/src/md2.c 2015-06-29 17:33:19.000000000 +0200 +++ new/libmd-1.0.0/src/md2.c 2017-06-05 05:09:48.000000000 +0200 @@ -29,10 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: md2.c,v 1.7 2012/06/25 22:32:44 abs Exp $"); -#endif /* LIBC_SCCS and not lint */ +#include <config.h> #include <sys/types.h> @@ -96,7 +93,7 @@ * XXX This should not be visible, but due to an accident, it is * XXX so it must remain so. */ -/*static*/ void MD2Transform __P((MD2_CTX *)); +/*static*/ void MD2Transform(MD2_CTX *); #ifdef __weak_alias __weak_alias(MD2Init,_MD2Init) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md2hl.c new/libmd-1.0.0/src/md2hl.c --- old/libmd-0.0.0/src/md2hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/md2hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <md2.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * MD2End(MD2_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md4.c new/libmd-1.0.0/src/md4.c --- old/libmd-0.0.0/src/md4.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/md4.c 2017-06-05 04:58:09.000000000 +0200 @@ -18,6 +18,8 @@ * will fill a supplied 16-byte array with the digest. */ +#include <config.h> + #include <sys/types.h> #include <string.h> #include <md4.h> @@ -156,7 +158,7 @@ { uint32_t a, b, c, d, in[MD4_BLOCK_LENGTH / 4]; -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN memcpy(in, block, sizeof(in)); #else for (a = 0; a < MD4_BLOCK_LENGTH / 4; a++) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md4hl.c new/libmd-1.0.0/src/md4hl.c --- old/libmd-0.0.0/src/md4hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/md4hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <md4.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * MD4End(MD4_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md5.c new/libmd-1.0.0/src/md5.c --- old/libmd-0.0.0/src/md5.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/md5.c 2017-06-05 04:58:09.000000000 +0200 @@ -17,6 +17,8 @@ * will fill a supplied 16-byte array with the digest. */ +#include <config.h> + #include <sys/types.h> #include <string.h> #include <md5.h> @@ -156,7 +158,7 @@ { uint32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4]; -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN memcpy(in, block, sizeof(in)); #else for (a = 0; a < MD5_BLOCK_LENGTH / 4; a++) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/md5hl.c new/libmd-1.0.0/src/md5hl.c --- old/libmd-0.0.0/src/md5hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/md5hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <md5.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * MD5End(MD5_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/rmd160.c new/libmd-1.0.0/src/rmd160.c --- old/libmd-0.0.0/src/rmd160.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/rmd160.c 2017-06-05 04:58:09.000000000 +0200 @@ -26,13 +26,11 @@ * RSA Laboratories, CryptoBytes, Volume 3, Number 2, Autumn 1997, * ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf */ + +#include <config.h> + #include <string.h> #include <sys/types.h> -#ifdef HAVE_SYS_ENDIAN_H -#include <sys/endian.h> -#else -#include <endian.h> -#endif #include <rmd160.h> #define PUT_64BIT_LE(cp, value) do { \ @@ -167,7 +165,7 @@ { uint32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16]; -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN memcpy(x, block, RMD160_BLOCK_LENGTH); #else int i; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/rmd160hl.c new/libmd-1.0.0/src/rmd160hl.c --- old/libmd-0.0.0/src/rmd160hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/rmd160hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <rmd160.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * RMD160End(RMD160_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha1.c new/libmd-1.0.0/src/sha1.c --- old/libmd-0.0.0/src/sha1.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/sha1.c 2017-06-05 05:01:25.000000000 +0200 @@ -14,7 +14,8 @@ * 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F */ -#include <sys/param.h> +#include <config.h> + #include <string.h> #include <sha1.h> @@ -24,7 +25,7 @@ * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay */ -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) #else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha1hl.c new/libmd-1.0.0/src/sha1hl.c --- old/libmd-0.0.0/src/sha1hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/sha1hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <sha1.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * SHA1End(SHA1_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha2.c new/libmd-1.0.0/src/sha2.c --- old/libmd-0.0.0/src/sha2.c 2016-02-10 01:04:20.000000000 +0100 +++ new/libmd-1.0.0/src/sha2.c 2017-06-05 04:58:09.000000000 +0200 @@ -34,6 +34,8 @@ * $From: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $ */ +#include <config.h> + #include <sys/types.h> #include <string.h> @@ -59,39 +61,6 @@ * */ -/*** SHA-256/384/512 Machine Architecture Definitions *****************/ -/* - * BYTE_ORDER NOTE: - * - * Please make sure that your system defines BYTE_ORDER. If your - * architecture is little-endian, make sure it also defines - * LITTLE_ENDIAN and that the two (BYTE_ORDER and LITTLE_ENDIAN) are - * equivilent. - * - * If your system does not define the above, then you can do so by - * hand like this: - * - * #define LITTLE_ENDIAN 1234 - * #define BIG_ENDIAN 4321 - * - * And for little-endian machines, add: - * - * #define BYTE_ORDER LITTLE_ENDIAN - * - * Or for big-endian machines: - * - * #define BYTE_ORDER BIG_ENDIAN - * - * The FreeBSD machine this was written on defines BYTE_ORDER - * appropriately by including <sys/types.h> (which in turn includes - * <machine/endian.h> where the appropriate definitions are actually - * made). - */ -#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) -#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN -#endif - - /*** SHA-256/384/512 Various Length Definitions ***********************/ /* NOTE: Most of these are in sha2.h */ #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8) @@ -543,7 +512,7 @@ /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN int i; /* Convert TO host byte order */ @@ -825,7 +794,7 @@ /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN int i; /* Convert TO host byte order */ @@ -862,7 +831,7 @@ /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { -#if BYTE_ORDER == LITTLE_ENDIAN +#ifndef WORDS_BIGENDIAN int i; /* Convert TO host byte order */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha256hl.c new/libmd-1.0.0/src/sha256hl.c --- old/libmd-0.0.0/src/sha256hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/sha256hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <sha2.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * SHA256End(SHA2_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha384hl.c new/libmd-1.0.0/src/sha384hl.c --- old/libmd-0.0.0/src/sha384hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/sha384hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <sha2.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * SHA384End(SHA2_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/src/sha512hl.c new/libmd-1.0.0/src/sha512hl.c --- old/libmd-0.0.0/src/sha512hl.c 2016-02-10 17:23:24.000000000 +0100 +++ new/libmd-1.0.0/src/sha512hl.c 2018-01-13 23:03:14.000000000 +0100 @@ -9,7 +9,8 @@ * ---------------------------------------------------------------------------- */ -#include <sys/param.h> +#include <config.h> + #include <sys/stat.h> #include <errno.h> @@ -21,6 +22,10 @@ #include <sha2.h> +#ifndef MIN +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + /* ARGSUSED */ char * SHA512End(SHA2_CTX *ctx, char *buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/Makefile.am new/libmd-1.0.0/test/Makefile.am --- old/libmd-0.0.0/test/Makefile.am 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/Makefile.am 2017-06-05 04:56:03.000000000 +0200 @@ -1,7 +1,6 @@ ## Process this file with automake to produce Makefile.in AM_CPPFLAGS = \ - -include $(top_builddir)/config.h \ -I$(top_builddir) \ -I$(top_srcdir)/include \ $(nil) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/md2.c new/libmd-1.0.0/test/md2.c --- old/libmd-0.0.0/test/md2.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/md2.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <md2.h> #include <string.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/md4.c new/libmd-1.0.0/test/md4.c --- old/libmd-0.0.0/test/md4.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/md4.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <md4.h> #include <string.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/md5.c new/libmd-1.0.0/test/md5.c --- old/libmd-0.0.0/test/md5.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/md5.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <md5.h> #include <string.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/rmd160.c new/libmd-1.0.0/test/rmd160.c --- old/libmd-0.0.0/test/rmd160.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/rmd160.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <rmd160.h> #include <string.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/sha1.c new/libmd-1.0.0/test/sha1.c --- old/libmd-0.0.0/test/sha1.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/sha1.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <sha1.h> #include <string.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libmd-0.0.0/test/sha2.c new/libmd-1.0.0/test/sha2.c --- old/libmd-0.0.0/test/sha2.c 2016-02-09 15:49:37.000000000 +0100 +++ new/libmd-1.0.0/test/sha2.c 2017-06-05 04:56:03.000000000 +0200 @@ -24,6 +24,8 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> + #include <assert.h> #include <sha2.h> #include <string.h>
