Hello community, here is the log from the commit of package libbde for openSUSE:Factory checked in at 2019-08-20 10:59:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libbde (Old) and /work/SRC/openSUSE:Factory/.libbde.new.22127 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libbde" Tue Aug 20 10:59:39 2019 rev:9 rq:724630 version:0~20190701 Changes: -------- --- /work/SRC/openSUSE:Factory/libbde/libbde.changes 2019-04-20 17:13:21.686941309 +0200 +++ /work/SRC/openSUSE:Factory/.libbde.new.22127/libbde.changes 2019-08-20 10:59:40.104652798 +0200 @@ -0,0 +1,5 @@ +Mon Aug 19 17:45:50 UTC 2019 - Greg Freemyer <greg.freem...@gmail.com> + +- update to v20190701 + * worked on AES-XTS 256 support + Old: ---- libbde-alpha-20190317.tar.gz New: ---- libbde-alpha-20190701.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libbde.spec ++++++ --- /var/tmp/diff_new_pack.6Eng9w/_old 2019-08-20 10:59:41.044652603 +0200 +++ /var/tmp/diff_new_pack.6Eng9w/_new 2019-08-20 10:59:41.044652603 +0200 @@ -17,7 +17,7 @@ %define lname libbde1 -%define timestamp 20190317 +%define timestamp 20190701 Name: libbde Version: 0~%{timestamp} Release: 0 @@ -148,14 +148,14 @@ %files -n %{lname} %defattr(-,root,root) -%doc AUTHORS ChangeLog %license COPYING +%doc AUTHORS ChangeLog %{_libdir}/libbde.so.* %files tools %defattr(-,root,root) -%doc AUTHORS ChangeLog %license COPYING +%doc AUTHORS ChangeLog %{_bindir}/bde* %{_mandir}/man1/bde*.1* @@ -172,14 +172,14 @@ %files -n python2-%{name} %defattr(-,root,root) -%doc AUTHORS README ChangeLog %license COPYING +%doc AUTHORS README ChangeLog %{python_sitearch}/pybde.so %files -n python3-%{name} %defattr(-,root,root) -%doc AUTHORS README ChangeLog %license COPYING +%doc AUTHORS README ChangeLog %{python3_sitearch}/pybde.so %changelog ++++++ libbde-alpha-20190317.tar.gz -> libbde-alpha-20190701.tar.gz ++++++ ++++ 5422 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/libbde-20190317/common/config.h new/libbde-20190701/common/config.h --- old/libbde-20190317/common/config.h 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/common/config.h 2019-07-01 23:04:59.000000000 +0200 @@ -629,7 +629,7 @@ #define PACKAGE_NAME "libbde" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libbde 20190317" +#define PACKAGE_STRING "libbde 20190701" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libbde" @@ -638,7 +638,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "20190317" +#define PACKAGE_VERSION "20190701" /* The size of `int', as computed by sizeof. */ #define SIZEOF_INT 4 @@ -668,7 +668,7 @@ /* #undef TM_IN_SYS_TIME */ /* Version number of package */ -#define VERSION "20190317" +#define VERSION "20190701" /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE 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/libbde-20190317/configure.ac new/libbde-20190701/configure.ac --- old/libbde-20190317/configure.ac 2019-03-16 11:31:34.000000000 +0100 +++ new/libbde-20190701/configure.ac 2019-07-01 20:06:33.000000000 +0200 @@ -2,7 +2,7 @@ AC_INIT( [libbde], - [20190317], + [20190701], [joachim.m...@gmail.com]) AC_CONFIG_SRCDIR( 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/libbde-20190317/dpkg/changelog new/libbde-20190701/dpkg/changelog --- old/libbde-20190317/dpkg/changelog 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/dpkg/changelog 2019-07-01 23:04:59.000000000 +0200 @@ -1,5 +1,5 @@ -libbde (20190317-1) unstable; urgency=low +libbde (20190701-1) unstable; urgency=low * Auto-generated - -- Joachim Metz <joachim.m...@gmail.com> Sat, 16 Mar 2019 11:32:10 +0100 + -- Joachim Metz <joachim.m...@gmail.com> Mon, 01 Jul 2019 23:04:57 +0200 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/libbde-20190317/include/libbde/definitions.h new/libbde-20190701/include/libbde/definitions.h --- old/libbde-20190317/include/libbde/definitions.h 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/include/libbde/definitions.h 2019-07-01 23:04:59.000000000 +0200 @@ -24,11 +24,11 @@ #include <libbde/types.h> -#define LIBBDE_VERSION 20190317 +#define LIBBDE_VERSION 20190701 /* The version string */ -#define LIBBDE_VERSION_STRING "20190317" +#define LIBBDE_VERSION_STRING "20190701" /* The file access * bit 1 set to 1 for read access 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/libbde-20190317/libbde/libbde.rc new/libbde-20190701/libbde/libbde.rc --- old/libbde-20190317/libbde/libbde.rc 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/libbde/libbde.rc 2019-07-01 23:04:59.000000000 +0200 @@ -22,12 +22,12 @@ BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to access the BitLocker Drive Encryption (BDE) format\0" - VALUE "FileVersion", "20190317" "\0" + VALUE "FileVersion", "20190701" "\0" VALUE "InternalName", "libbde.dll\0" VALUE "LegalCopyright", "(C) 2011-2019, Joachim Metz <joachim.m...@gmail.com>\0" VALUE "OriginalFilename", "libbde.dll\0" VALUE "ProductName", "libbde\0" - VALUE "ProductVersion", "20190317" "\0" + VALUE "ProductVersion", "20190701" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libbde/\0" END END 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/libbde-20190317/libbde/libbde_definitions.h new/libbde-20190701/libbde/libbde_definitions.h --- old/libbde-20190317/libbde/libbde_definitions.h 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/libbde/libbde_definitions.h 2019-07-01 23:04:59.000000000 +0200 @@ -34,11 +34,11 @@ * for local use of libbde */ #else -#define LIBBDE_VERSION 20190317 +#define LIBBDE_VERSION 20190701 /* The version string */ -#define LIBBDE_VERSION_STRING "20190317" +#define LIBBDE_VERSION_STRING "20190701" /* The file access * bit 1 set to 1 for read access 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/libbde-20190317/libbde/libbde_encryption.c new/libbde-20190701/libbde/libbde_encryption.c --- old/libbde-20190317/libbde/libbde_encryption.c 2019-03-11 21:31:26.000000000 +0100 +++ new/libbde-20190701/libbde/libbde_encryption.c 2019-07-01 20:11:04.000000000 +0200 @@ -431,27 +431,31 @@ return( -1 ); } - if( tweak_key == NULL ) + if( ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC_DIFFUSER ) + || ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_256_CBC_DIFFUSER ) ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tweak key.", - function ); + if( tweak_key == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid tweak key.", + function ); + + return( -1 ); + } + if( tweak_key_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid tweak key size value exceeds maximum.", + function ); - return( -1 ); - } - if( tweak_key_size > (size_t) SSIZE_MAX ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid tweak key size value exceeds maximum.", - function ); - - return( -1 ); + return( -1 ); + } } if( ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC ) || ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC_DIFFUSER ) ) @@ -482,16 +486,20 @@ return( -1 ); } - if( tweak_key_size < key_byte_size ) + if( ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC_DIFFUSER ) + || ( context->method == LIBBDE_ENCRYPTION_METHOD_AES_256_CBC_DIFFUSER ) ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: invalid tweak key value too small.", - function ); + if( tweak_key_size < key_byte_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: invalid tweak key value too small.", + function ); - return( -1 ); + return( -1 ); + } } key_bit_size = key_byte_size * 8; 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/libbde-20190317/libbde/libbde_metadata.c new/libbde-20190701/libbde/libbde_metadata.c --- old/libbde-20190317/libbde/libbde_metadata.c 2019-03-11 23:18:10.000000000 +0100 +++ new/libbde-20190701/libbde/libbde_metadata.c 2019-07-01 20:11:04.000000000 +0200 @@ -2222,6 +2222,7 @@ int libbde_metadata_read_full_volume_encryption_key( libbde_metadata_t *metadata, libbde_io_handle_t *io_handle, + uint16_t encryption_method, const uint8_t *volume_master_key, size_t volume_master_key_size, uint8_t *full_volume_encryption_key, @@ -2282,6 +2283,22 @@ return( -1 ); } + if( ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_128_CBC ) + && ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_128_CBC_DIFFUSER ) + && ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_256_CBC ) + && ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_256_CBC_DIFFUSER ) + && ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_128_XTS ) + && ( encryption_method != LIBBDE_ENCRYPTION_METHOD_AES_256_XTS ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported encryption method.", + function ); + + return( -1 ); + } if( volume_master_key == NULL ) { libcerror_error_set( @@ -2450,8 +2467,19 @@ if( version == 1 ) { - if( data_size == 0x1c ) + if( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC ) { + if( data_size != 0x1c ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported data size.", + function ); + + return( -1 ); + } if( memory_copy( full_volume_encryption_key, &( unencrypted_data[ 28 ] ), @@ -2468,8 +2496,20 @@ } result = 1; } - else if( data_size == 0x2c ) + else if( ( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_256_CBC ) + || ( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_128_XTS ) ) { + if( data_size != 0x2c ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported data size.", + function ); + + return( -1 ); + } if( memory_copy( full_volume_encryption_key, &( unencrypted_data[ 28 ] ), @@ -2486,8 +2526,20 @@ } result = 1; } - else if( data_size == 0x4c ) + else if( ( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_128_CBC_DIFFUSER ) + || ( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_256_CBC_DIFFUSER ) ) { + if( data_size != 0x4c ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported data size.", + function ); + + return( -1 ); + } if( memory_copy( full_volume_encryption_key, &( unencrypted_data[ 28 ] ), @@ -2515,6 +2567,35 @@ function ); goto on_error; + } + result = 1; + } + else if( encryption_method == LIBBDE_ENCRYPTION_METHOD_AES_256_XTS ) + { + if( data_size != 0x4c ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported data size.", + function ); + + return( -1 ); + } + if( memory_copy( + full_volume_encryption_key, + &( unencrypted_data[ 28 ] ), + 64 ) == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_COPY_FAILED, + "%s: unable to copy unencrypted full volume encryption key.", + function ); + + goto on_error; } result = 1; } 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/libbde-20190317/libbde/libbde_metadata.h new/libbde-20190701/libbde/libbde_metadata.h --- old/libbde-20190317/libbde/libbde_metadata.h 2019-03-11 23:08:36.000000000 +0100 +++ new/libbde-20190701/libbde/libbde_metadata.h 2019-07-01 20:11:04.000000000 +0200 @@ -167,6 +167,7 @@ int libbde_metadata_read_full_volume_encryption_key( libbde_metadata_t *metadata, libbde_io_handle_t *io_handle, + uint16_t encryption_method, const uint8_t *volume_master_key, size_t volume_master_key_size, uint8_t *full_volume_encryption_key, 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/libbde-20190317/libbde/libbde_volume.c new/libbde-20190701/libbde/libbde_volume.c --- old/libbde-20190317/libbde/libbde_volume.c 2019-03-11 23:07:39.000000000 +0100 +++ new/libbde-20190701/libbde/libbde_volume.c 2019-07-01 20:11:04.000000000 +0200 @@ -1724,6 +1724,7 @@ result = libbde_metadata_read_full_volume_encryption_key( metadata, internal_volume->io_handle, + encryption_method, volume_master_key, 32, full_volume_encryption_key, 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/libbde-20190317/libbde.spec new/libbde-20190701/libbde.spec --- old/libbde-20190317/libbde.spec 2019-03-16 11:32:11.000000000 +0100 +++ new/libbde-20190701/libbde.spec 2019-07-01 23:04:59.000000000 +0200 @@ -1,5 +1,5 @@ Name: libbde -Version: 20190317 +Version: 20190701 Release: 1 Summary: Library to access the BitLocker Drive Encryption (BDE) format Group: System Environment/Libraries @@ -122,6 +122,6 @@ %{_mandir}/man1/* %changelog -* Sat Mar 16 2019 Joachim Metz <joachim.m...@gmail.com> 20190317-1 +* Mon Jul 1 2019 Joachim Metz <joachim.m...@gmail.com> 20190701-1 - Auto-generated 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/libbde-20190317/libfvalue/libfvalue_binary_data.c new/libbde-20190701/libfvalue/libfvalue_binary_data.c --- old/libbde-20190317/libfvalue/libfvalue_binary_data.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_binary_data.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Binary data value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_binary_data.h new/libbde-20190701/libfvalue/libfvalue_binary_data.h --- old/libbde-20190317/libfvalue/libfvalue_binary_data.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_binary_data.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Binary data value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_codepage.h new/libbde-20190701/libfvalue/libfvalue_codepage.h --- old/libbde-20190317/libfvalue/libfvalue_codepage.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_codepage.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_data_handle.c new/libbde-20190701/libfvalue/libfvalue_data_handle.c --- old/libbde-20190317/libfvalue/libfvalue_data_handle.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_data_handle.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Data handle functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_data_handle.h new/libbde-20190701/libfvalue/libfvalue_data_handle.h --- old/libbde-20190317/libfvalue/libfvalue_data_handle.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_data_handle.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Data handle functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_definitions.h new/libbde-20190701/libfvalue/libfvalue_definitions.h --- old/libbde-20190317/libfvalue/libfvalue_definitions.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_definitions.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -36,17 +36,17 @@ #else #include <byte_stream.h> -#define LIBFVALUE_VERSION 20180817 +#define LIBFVALUE_VERSION 20190626 /* The libfvalue version string */ -#define LIBFVALUE_VERSION_STRING "20180817" +#define LIBFVALUE_VERSION_STRING "20190626" /* The endian definitions */ -#define LIBFVALUE_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG -#define LIBFVALUE_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE -#define LIBFVALUE_ENDIAN_NATIVE (uint8_t) 'n' +#define LIBFVALUE_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG +#define LIBFVALUE_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE +#define LIBFVALUE_ENDIAN_NATIVE (uint8_t) 'n' /* The value flags definitions */ @@ -56,35 +56,35 @@ * the data handle is expected to be available * during the life-time of the value */ - LIBFVALUE_VALUE_FLAG_DATA_HANDLE_NON_MANAGED = 0x00, + LIBFVALUE_VALUE_FLAG_DATA_HANDLE_NON_MANAGED = 0x00, /* The data handle is managed by the value */ - LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED = 0x01, + LIBFVALUE_VALUE_FLAG_DATA_HANDLE_MANAGED = 0x01, /* The identifier is not managed by the value * the identifier is expected to be available * during the life-time of the value */ - LIBFVALUE_VALUE_FLAG_IDENTIFIER_NON_MANAGED = 0x00, + LIBFVALUE_VALUE_FLAG_IDENTIFIER_NON_MANAGED = 0x00, /* The identifier is managed by the value */ - LIBFVALUE_VALUE_FLAG_IDENTIFIER_MANAGED = 0x02, + LIBFVALUE_VALUE_FLAG_IDENTIFIER_MANAGED = 0x02, /* The data is not managed by the value * the data is expected to be available * during the life-time of the value */ - LIBFVALUE_VALUE_FLAG_DATA_NON_MANAGED = 0x00, + LIBFVALUE_VALUE_FLAG_DATA_NON_MANAGED = 0x00, /* The data is managed by the value */ - LIBFVALUE_VALUE_FLAG_DATA_MANAGED = 0x04, + LIBFVALUE_VALUE_FLAG_DATA_MANAGED = 0x04, /* The value has a runtime instance of the value type */ - LIBFVALUE_VALUE_FLAG_HAS_RUNTIME_INSTANCE = 0x08, + LIBFVALUE_VALUE_FLAG_HAS_RUNTIME_INSTANCE = 0x08, }; /* The value identifier flags definitions @@ -100,16 +100,16 @@ * if LIBFVALUE_VALUE_FLAG_IDENTIFIER_MANAGED is set * a copy of the identifier will be managed by the value */ - LIBFVALUE_VALUE_IDENTIFIER_FLAG_NON_MANAGED = 0x00, + LIBFVALUE_VALUE_IDENTIFIER_FLAG_NON_MANAGED = 0x00, /* The identifier is managed by the value * This will also set LIBFVALUE_VALUE_FLAG_IDENTIFIER_MANAGED in the value */ - LIBFVALUE_VALUE_IDENTIFIER_FLAG_MANAGED = 0x01, + LIBFVALUE_VALUE_IDENTIFIER_FLAG_MANAGED = 0x01, /* The identifier is not cloned, but passed as a reference */ - LIBFVALUE_VALUE_IDENTIFIER_FLAG_CLONE_BY_REFERENCE = 0x10 + LIBFVALUE_VALUE_IDENTIFIER_FLAG_CLONE_BY_REFERENCE = 0x10 }; /* The value data flags definitions @@ -125,23 +125,23 @@ * if LIBFVALUE_VALUE_FLAG_DATA_MANAGED is set * a copy of the data will be managed by the value */ - LIBFVALUE_VALUE_DATA_FLAG_NON_MANAGED = 0x00, + LIBFVALUE_VALUE_DATA_FLAG_NON_MANAGED = 0x00, /* The data is managed by the value * This will also set LIBFVALUE_VALUE_FLAG_DATA_MANAGED in the value */ - LIBFVALUE_VALUE_DATA_FLAG_MANAGED = 0x02, + LIBFVALUE_VALUE_DATA_FLAG_MANAGED = 0x02, /* The data is not cloned, but passed as a reference */ - LIBFVALUE_VALUE_DATA_FLAG_CLONE_BY_REFERENCE = 0x10 + LIBFVALUE_VALUE_DATA_FLAG_CLONE_BY_REFERENCE = 0x10 }; /* The value class definitions */ enum LIBFVALUE_VALUE_CLASSES { - LIBFVALUE_VALUE_CLASS_UNDEFINED = 0, + LIBFVALUE_VALUE_CLASS_UNDEFINED = 0, LIBFVALUE_VALUE_CLASS_BINARY, LIBFVALUE_VALUE_CLASS_BOOLEAN, LIBFVALUE_VALUE_CLASS_DATETIME, @@ -155,7 +155,7 @@ */ enum LIBFVALUE_VALUE_TYPES { - LIBFVALUE_VALUE_TYPE_UNDEFINED = 0, + LIBFVALUE_VALUE_TYPE_UNDEFINED = 0, LIBFVALUE_VALUE_TYPE_NULL, @@ -199,12 +199,12 @@ */ enum LIBFVALUE_BINARY_DATA_FORMAT_FLAGS { - LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE16 = 0x00000001UL, - LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE32 = 0x00000002UL, - LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE64 = 0x00000003UL, + LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE16 = 0x00000001UL, + LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE32 = 0x00000002UL, + LIBFVALUE_BINARY_DATA_FORMAT_TYPE_BASE64 = 0x00000003UL, - LIBFVALUE_BINARY_DATA_FORMAT_FLAG_CASE_LOWER = 0x00000100UL, - LIBFVALUE_BINARY_DATA_FORMAT_FLAG_CASE_UPPER = 0x00000200UL, + LIBFVALUE_BINARY_DATA_FORMAT_FLAG_CASE_LOWER = 0x00000100UL, + LIBFVALUE_BINARY_DATA_FORMAT_FLAG_CASE_UPPER = 0x00000200UL, }; /* The date time value format definition flags @@ -213,39 +213,39 @@ { /* Format the date time value in C time */ - LIBFVALUE_DATE_TIME_FORMAT_TYPE_CTIME = 0x00000001UL, + LIBFVALUE_DATE_TIME_FORMAT_TYPE_CTIME = 0x00000001UL, /* Format the date time value in ISO 8601 */ - LIBFVALUE_DATE_TIME_FORMAT_TYPE_ISO8601 = 0x00000002UL, + LIBFVALUE_DATE_TIME_FORMAT_TYPE_ISO8601 = 0x00000002UL, /* Format the date time value as a date only */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_DATE = 0x00000100UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_DATE = 0x00000100UL, /* Format the date time value as a time only */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME = 0x00000200UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME = 0x00000200UL, /* Format the date time value as a duration */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_DURATION = 0x00000400UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_DURATION = 0x00000400UL, /* Format the date time value with a time in milli seconds */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_MILLI_SECONDS = 0x00010000UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_MILLI_SECONDS = 0x00010000UL, /* Format the date time value with a time in micro seconds */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_MICRO_SECONDS = 0x00020000UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_MICRO_SECONDS = 0x00020000UL, /* Format the date time value with a time in nano seconds */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_NANO_SECONDS = 0x00040000UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIME_NANO_SECONDS = 0x00040000UL, /* Add a timezone indicator */ - LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIMEZONE_INDICATOR = 0x80000000UL, + LIBFVALUE_DATE_TIME_FORMAT_FLAG_TIMEZONE_INDICATOR = 0x80000000UL, }; #define LIBFVALUE_DATE_TIME_FORMAT_FLAG_DATE_TIME \ @@ -266,38 +266,38 @@ { /* Format the using lower case */ - LIBFVALUE_GUID_FORMAT_FLAG_USE_LOWER_CASE = 0x00000001UL, + LIBFVALUE_GUID_FORMAT_FLAG_USE_LOWER_CASE = 0x00000001UL, /* Format the using upper case */ - LIBFVALUE_GUID_FORMAT_FLAG_USE_UPPER_CASE = 0x00000002UL, + LIBFVALUE_GUID_FORMAT_FLAG_USE_UPPER_CASE = 0x00000002UL, /* Format the using surrounding braces { GUID } */ - LIBFVALUE_GUID_FORMAT_FLAG_USE_SURROUNDING_BRACES = 0x00000004UL + LIBFVALUE_GUID_FORMAT_FLAG_USE_SURROUNDING_BRACES = 0x00000004UL }; /* The floating point value format flags */ enum LIBFVALUE_FLOATING_POINT_FORMAT_FLAGS { - LIBFVALUE_FLOATING_POINT_FORMAT_TYPE_DECIMAL = 0x00000001UL, - LIBFVALUE_FLOATING_POINT_FORMAT_TYPE_HEXADECIMAL = 0x00000002UL + LIBFVALUE_FLOATING_POINT_FORMAT_TYPE_DECIMAL = 0x00000001UL, + LIBFVALUE_FLOATING_POINT_FORMAT_TYPE_HEXADECIMAL = 0x00000002UL }; /* The integer value format flags */ enum LIBFVALUE_INTEGER_FORMAT_FLAGS { - LIBFVALUE_INTEGER_FORMAT_TYPE_DECIMAL = 0x00000001UL, - LIBFVALUE_INTEGER_FORMAT_TYPE_HEXADECIMAL = 0x00000002UL, - LIBFVALUE_INTEGER_FORMAT_TYPE_BOOLEAN = 0x00000003UL, + LIBFVALUE_INTEGER_FORMAT_TYPE_DECIMAL = 0x00000001UL, + LIBFVALUE_INTEGER_FORMAT_TYPE_HEXADECIMAL = 0x00000002UL, + LIBFVALUE_INTEGER_FORMAT_TYPE_BOOLEAN = 0x00000003UL, - LIBFVALUE_INTEGER_FORMAT_FLAG_SIGNED = 0x00000100UL, - LIBFVALUE_INTEGER_FORMAT_FLAG_UNSIGNED = 0x00000200UL, + LIBFVALUE_INTEGER_FORMAT_FLAG_SIGNED = 0x00000100UL, + LIBFVALUE_INTEGER_FORMAT_FLAG_UNSIGNED = 0x00000200UL, /* The integer has no base indicator e.g. 0x */ - LIBFVALUE_INTEGER_FORMAT_FLAG_NO_BASE_INDICATOR = 0x00010000UL + LIBFVALUE_INTEGER_FORMAT_FLAG_NO_BASE_INDICATOR = 0x00010000UL }; #define LIBFVALUE_INTEGER_FORMAT_TYPE_DECIMAL_SIGNED \ @@ -306,13 +306,33 @@ #define LIBFVALUE_INTEGER_FORMAT_TYPE_DECIMAL_UNSIGNED \ LIBFVALUE_INTEGER_FORMAT_TYPE_DECIMAL | LIBFVALUE_INTEGER_FORMAT_FLAG_UNSIGNED +/* The POSIX time value encodings, which need to be combined with a byte order indication + */ +enum LIBFVALUE_POSIX_TIME_ENCODINGS +{ + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_SIGNED = 0x00000000UL, + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_UNSIGNED = 0x00000100UL, + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_64BIT_SIGNED = 0x00000200UL, + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_64BIT_UNSIGNED = 0x00000300UL, + LIBFVALUE_POSIX_TIME_ENCODING_MICRO_SECONDS_64BIT_SIGNED = 0x00000400UL, + LIBFVALUE_POSIX_TIME_ENCODING_MICRO_SECONDS_64BIT_UNSIGNED = 0x00000500UL, + LIBFVALUE_POSIX_TIME_ENCODING_NANO_SECONDS_64BIT_SIGNED = 0x00000600UL, + LIBFVALUE_POSIX_TIME_ENCODING_NANO_SECONDS_64BIT_UNSIGNED = 0x00000700UL +}; + +#define LIBFVALUE_POSIX_TIME_ENCODING_32BIT_BIG_ENDIAN \ + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_SIGNED | LIBFVALUE_ENDIAN_BIG + +#define LIBFVALUE_POSIX_TIME_ENCODING_32BIT_LITTLE_ENDIAN \ + LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_SIGNED | LIBFVALUE_ENDIAN_LITTLE + /* The table flag definitions */ enum LIBFVALUE_TABLE_FLAGS { /* Allow a partial match of the identifier */ - LIBFVALUE_TABLE_FLAG_ALLOW_PARTIAL_MATCH = 0x01 + LIBFVALUE_TABLE_FLAG_ALLOW_PARTIAL_MATCH = 0x01 }; /* The print flags definitions @@ -321,7 +341,7 @@ { /* Print the value with a type description */ - LIBFVALUE_PRINT_FLAG_WITH_TYPE_DESCRIPTION = 0x01 + LIBFVALUE_PRINT_FLAG_WITH_TYPE_DESCRIPTION = 0x01 }; #endif /* !defined( HAVE_LOCAL_LIBFVALUE ) */ 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/libbde-20190317/libfvalue/libfvalue_error.c new/libbde-20190701/libfvalue/libfvalue_error.c --- old/libbde-20190317/libfvalue/libfvalue_error.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_error.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_error.h new/libbde-20190701/libfvalue/libfvalue_error.h --- old/libbde-20190317/libfvalue/libfvalue_error.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_error.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_extern.h new/libbde-20190701/libfvalue/libfvalue_extern.h --- old/libbde-20190317/libfvalue/libfvalue_extern.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_extern.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_filetime.c new/libbde-20190701/libfvalue/libfvalue_filetime.c --- old/libbde-20190317/libfvalue/libfvalue_filetime.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_filetime.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Filetime functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_filetime.h new/libbde-20190701/libfvalue/libfvalue_filetime.h --- old/libbde-20190317/libfvalue/libfvalue_filetime.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_filetime.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Filetime functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_floating_point.c new/libbde-20190701/libfvalue/libfvalue_floating_point.c --- old/libbde-20190317/libfvalue/libfvalue_floating_point.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_floating_point.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Floating point value (IEEE 754) functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_floating_point.h new/libbde-20190701/libfvalue/libfvalue_floating_point.h --- old/libbde-20190317/libfvalue/libfvalue_floating_point.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_floating_point.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Floating point value (IEEE 754) functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_integer.c new/libbde-20190701/libfvalue/libfvalue_integer.c --- old/libbde-20190317/libfvalue/libfvalue_integer.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_integer.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Integer value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_integer.h new/libbde-20190701/libfvalue/libfvalue_integer.h --- old/libbde-20190317/libfvalue/libfvalue_integer.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_integer.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Integer value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libcdata.h new/libbde-20190701/libfvalue/libfvalue_libcdata.h --- old/libbde-20190317/libfvalue/libfvalue_libcdata.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libcdata.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libcerror.h new/libbde-20190701/libfvalue/libfvalue_libcerror.h --- old/libbde-20190317/libfvalue/libfvalue_libcerror.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libcerror.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libcnotify.h new/libbde-20190701/libfvalue/libfvalue_libcnotify.h --- old/libbde-20190317/libfvalue/libfvalue_libcnotify.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libcnotify.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The internal libcnotify header * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libfdatetime.h new/libbde-20190701/libfvalue/libfvalue_libfdatetime.h --- old/libbde-20190317/libfvalue/libfvalue_libfdatetime.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libfdatetime.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libfdatetime header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libfguid.h new/libbde-20190701/libfvalue/libfvalue_libfguid.h --- old/libbde-20190317/libfvalue/libfvalue_libfguid.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libfguid.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libfguid header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libfwnt.h new/libbde-20190701/libfvalue/libfvalue_libfwnt.h --- old/libbde-20190317/libfvalue/libfvalue_libfwnt.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libfwnt.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libfwnt header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_libuna.h new/libbde-20190701/libfvalue/libfvalue_libuna.h --- old/libbde-20190317/libfvalue/libfvalue_libuna.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_libuna.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_split_utf16_string.c new/libbde-20190701/libfvalue/libfvalue_split_utf16_string.c --- old/libbde-20190317/libfvalue/libfvalue_split_utf16_string.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_split_utf16_string.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Split UTF-16 string functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_split_utf16_string.h new/libbde-20190701/libfvalue/libfvalue_split_utf16_string.h --- old/libbde-20190317/libfvalue/libfvalue_split_utf16_string.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_split_utf16_string.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Split UTF-16 string functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_split_utf8_string.c new/libbde-20190701/libfvalue/libfvalue_split_utf8_string.c --- old/libbde-20190317/libfvalue/libfvalue_split_utf8_string.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_split_utf8_string.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Split UTF-8 string functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_split_utf8_string.h new/libbde-20190701/libfvalue/libfvalue_split_utf8_string.h --- old/libbde-20190317/libfvalue/libfvalue_split_utf8_string.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_split_utf8_string.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Split UTF-8 string functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_string.c new/libbde-20190701/libfvalue/libfvalue_string.c --- old/libbde-20190317/libfvalue/libfvalue_string.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_string.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * String value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_string.h new/libbde-20190701/libfvalue/libfvalue_string.h --- old/libbde-20190317/libfvalue/libfvalue_string.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_string.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * String value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_support.c new/libbde-20190701/libfvalue/libfvalue_support.c --- old/libbde-20190317/libfvalue/libfvalue_support.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_support.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_support.h new/libbde-20190701/libfvalue/libfvalue_support.h --- old/libbde-20190317/libfvalue/libfvalue_support.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_support.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_table.c new/libbde-20190701/libfvalue/libfvalue_table.c --- old/libbde-20190317/libfvalue/libfvalue_table.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_table.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Values table functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_table.h new/libbde-20190701/libfvalue/libfvalue_table.h --- old/libbde-20190317/libfvalue/libfvalue_table.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_table.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Values table functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_types.h new/libbde-20190701/libfvalue/libfvalue_types.h --- old/libbde-20190317/libfvalue/libfvalue_types.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_types.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_unused.h new/libbde-20190701/libfvalue/libfvalue_unused.h --- old/libbde-20190317/libfvalue/libfvalue_unused.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_unused.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* - * The internal unused definition + * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -19,8 +19,8 @@ * along with this software. If not, see <http://www.gnu.org/licenses/>. */ -#if !defined( _LIBFVALUE_INTERNAL_UNUSED_H ) -#define _LIBFVALUE_INTERNAL_UNUSED_H +#if !defined( _LIBFVALUE_UNUSED_H ) +#define _LIBFVALUE_UNUSED_H #include <common.h> @@ -40,5 +40,5 @@ /* parameter */ #endif -#endif /* !defined( _LIBFVALUE_INTERNAL_UNUSED_H ) */ +#endif /* !defined( _LIBFVALUE_UNUSED_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/libbde-20190317/libfvalue/libfvalue_utf16_string.c new/libbde-20190701/libfvalue/libfvalue_utf16_string.c --- old/libbde-20190317/libfvalue/libfvalue_utf16_string.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_utf16_string.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * UTF-16 string value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -154,7 +154,7 @@ error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to intialize split string.", + "%s: unable to initialize split string.", function ); goto on_error; 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/libbde-20190317/libfvalue/libfvalue_utf16_string.h new/libbde-20190701/libfvalue/libfvalue_utf16_string.h --- old/libbde-20190317/libfvalue/libfvalue_utf16_string.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_utf16_string.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * UTF-16 string value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_utf8_string.c new/libbde-20190701/libfvalue/libfvalue_utf8_string.c --- old/libbde-20190317/libfvalue/libfvalue_utf8_string.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_utf8_string.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * UTF-8 string value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -154,7 +154,7 @@ error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to intialize split string.", + "%s: unable to initialize split string.", function ); goto on_error; 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/libbde-20190317/libfvalue/libfvalue_utf8_string.h new/libbde-20190701/libfvalue/libfvalue_utf8_string.h --- old/libbde-20190317/libfvalue/libfvalue_utf8_string.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_utf8_string.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * UTF-8 string value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_value.c new/libbde-20190701/libfvalue/libfvalue_value.c --- old/libbde-20190317/libfvalue/libfvalue_value.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_value.h new/libbde-20190701/libfvalue/libfvalue_value.h --- old/libbde-20190317/libfvalue/libfvalue_value.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_value_entry.c new/libbde-20190701/libfvalue/libfvalue_value_entry.c --- old/libbde-20190317/libfvalue/libfvalue_value_entry.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value_entry.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value entry functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_value_entry.h new/libbde-20190701/libfvalue/libfvalue_value_entry.h --- old/libbde-20190317/libfvalue/libfvalue_value_entry.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value_entry.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value entry functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * 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/libbde-20190317/libfvalue/libfvalue_value_type.c new/libbde-20190701/libfvalue/libfvalue_value_type.c --- old/libbde-20190317/libfvalue/libfvalue_value_type.c 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value_type.c 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -544,7 +544,7 @@ (int (*)(intptr_t **, libcerror_error_t **)) &libfdatetime_posix_time_free, NULL, - (int (*)(intptr_t *, const uint8_t *, size_t, int, libcerror_error_t **)) &libfdatetime_posix_time_copy_from_byte_stream, + (int (*)(intptr_t *, const uint8_t *, size_t, int, libcerror_error_t **)) &libfvalue_value_type_posix_time_copy_from_byte_stream, NULL, NULL, @@ -605,7 +605,8 @@ flags, error ); break; -#endif +#endif /* defined( HAVE_LIBFDATETIME_H ) || defined( HAVE_LOCAL_LIBFDATETIME ) */ + #if defined( HAVE_LIBFGUID_H ) || defined( HAVE_LOCAL_LIBFGUID ) case LIBFVALUE_VALUE_TYPE_GUID: result = libfvalue_value_initialize( @@ -643,7 +644,8 @@ flags, error ); break; -#endif +#endif /* defined( HAVE_LIBFGUID_H ) || defined( HAVE_LOCAL_LIBFGUID ) */ + #if defined( HAVE_LIBFWNT_H ) || defined( HAVE_LOCAL_LIBFWNT ) case LIBFVALUE_VALUE_TYPE_NT_SECURITY_IDENTIFIER: result = libfvalue_value_initialize( @@ -681,7 +683,8 @@ flags, error ); break; -#endif +#endif /* defined( HAVE_LIBFWNT_H ) || defined( HAVE_LOCAL_LIBFWNT ) */ + default: libcerror_error_set( error, @@ -1074,3 +1077,103 @@ return( last_data_index ); } +#if defined( HAVE_LIBFDATETIME_H ) || defined( HAVE_LOCAL_LIBFDATETIME ) + +/* Helper function for libfvalue value type to covert a byte stream into a POSIX time using libfdatetime + * Returns 1 if successful or -1 on error + */ +int libfvalue_value_type_posix_time_copy_from_byte_stream( + libfdatetime_posix_time_t *posix_time, + const uint8_t *byte_stream, + size_t byte_stream_size, + int encoding, + libcerror_error_t **error ) +{ + static char *function = "libfvalue_value_type_posix_time_copy_from_byte_stream"; + int byte_order = 0; + uint8_t value_type = 0; + + byte_order = encoding & 0xff; + + if( ( byte_order != LIBFVALUE_ENDIAN_BIG ) + && ( byte_order != LIBFVALUE_ENDIAN_LITTLE ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported byte order: 0x%02x in encoding: 0x%08x.", + function, + byte_order, + encoding ); + + return( -1 ); + } + switch( encoding & 0xffffff00UL ) + { + case LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_SIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_32BIT_UNSIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_64BIT_SIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_SECONDS_64BIT_UNSIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_MICRO_SECONDS_64BIT_SIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_MICRO_SECONDS_64BIT_UNSIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_NANO_SECONDS_64BIT_SIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED; + break; + + case LIBFVALUE_POSIX_TIME_ENCODING_NANO_SECONDS_64BIT_UNSIGNED: + value_type = LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED; + break; + + default: + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported value type: 0x%08x in encoding: 0x%08x.", + function, + encoding & 0xffffff00UL, + encoding ); + + return( -1 ); + } + if( libfdatetime_posix_time_copy_from_byte_stream( + posix_time, + byte_stream, + byte_stream_size, + byte_order, + value_type, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_COPY_FAILED, + "%s: unable to copy POSIX time from byte stream.", + function ); + + return( -1 ); + } + return( 1 ); +} + +#endif /* defined( HAVE_LIBFDATETIME_H ) || defined( HAVE_LOCAL_LIBFDATETIME ) */ + 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/libbde-20190317/libfvalue/libfvalue_value_type.h new/libbde-20190701/libfvalue/libfvalue_value_type.h --- old/libbde-20190317/libfvalue/libfvalue_value_type.h 2019-03-16 09:24:48.000000000 +0100 +++ new/libbde-20190701/libfvalue/libfvalue_value_type.h 2019-07-01 23:04:19.000000000 +0200 @@ -1,7 +1,7 @@ /* * Value type functions * - * Copyright (C) 2010-2018, Joachim Metz <joachim.m...@gmail.com> + * Copyright (C) 2010-2019, Joachim Metz <joachim.m...@gmail.com> * * Refer to AUTHORS for acknowledgements. * @@ -29,6 +29,7 @@ #include "libfvalue_extern.h" #include "libfvalue_libcerror.h" +#include "libfvalue_libfdatetime.h" #include "libfvalue_types.h" #if defined( __cplusplus ) @@ -80,6 +81,17 @@ int encoding, libcerror_error_t **error ); +#if defined( HAVE_LIBFDATETIME_H ) || defined( HAVE_LOCAL_LIBFDATETIME ) + +int libfvalue_value_type_posix_time_copy_from_byte_stream( + libfdatetime_posix_time_t *posix_time, + const uint8_t *byte_stream, + size_t byte_stream_size, + int encoding, + libcerror_error_t **error ); + +#endif /* defined( HAVE_LIBFDATETIME_H ) || defined( HAVE_LOCAL_LIBFDATETIME ) */ + #if defined( __cplusplus ) } #endif 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/libbde-20190317/m4/libcrypto.m4 new/libbde-20190701/m4/libcrypto.m4 --- old/libbde-20190317/m4/libcrypto.m4 2019-03-04 19:18:19.000000000 +0100 +++ new/libbde-20190701/m4/libcrypto.m4 2019-07-01 20:06:49.000000000 +0200 @@ -1,6 +1,6 @@ dnl Checks for libcrypto required headers and functions dnl -dnl Version: 20190304 +dnl Version: 20190607 dnl Function to detect whether openssl/evp.h can be used in combination with zlib.h AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_ZLIB_COMPATIBILE], @@ -552,6 +552,20 @@ [ac_cv_libcrypto=yes]) ]) + AS_IF( + [test "x$ac_cv_libcrypto" != xno], + [AC_CHECK_LIB( + crypto, + ERR_get_error, + [ac_cv_libcrypto_dummy=yes], + [ac_cv_libcrypto=no]) + AC_CHECK_LIB( + crypto, + ERR_error_string_n, + [ac_cv_libcrypto_dummy=yes], + [ac_cv_libcrypto=no]) + ]) + dnl Setup libcrypto (openssl) parameters AS_IF( [test "x$ac_cv_libcrypto" = xyes && test "x$ac_cv_libcrypto_evp" = 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/libbde-20190317/m4/python.m4 new/libbde-20190701/m4/python.m4 --- old/libbde-20190317/m4/python.m4 2018-08-06 20:11:52.000000000 +0200 +++ new/libbde-20190701/m4/python.m4 2019-03-16 17:31:55.000000000 +0100 @@ -1,6 +1,6 @@ dnl Functions for Python bindings dnl -dnl Version: 20170830 +dnl Version: 20190316 dnl Function to check if the python binary is available dnl "python${PYTHON_VERSION} python python# python#.#" @@ -8,17 +8,13 @@ [AS_IF( [test "x${PYTHON_VERSION}" != x], [ax_python_progs="python${PYTHON_VERSION}"], - [ax_python_progs="python python2 python2.7 python2.6 python2.5 python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0"]) + [ax_python_progs="python python2 python2.7 python2.6 python2.5 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0"]) AC_CHECK_PROGS( [PYTHON], [$ax_python_progs]) AS_IF( [test "x${PYTHON}" != x], [ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; - AC_SUBST( - [PYTHON_VERSION], - [$ax_prog_python_version]) - ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; AC_SUBST( [PYTHON_PLATFORM], @@ -62,7 +58,7 @@ dnl Function to check if the python3 binary is available dnl "python3 python3.#" AC_DEFUN([AX_PROG_PYTHON3], - [ax_python3_progs="python3 python3.4 python3.3 python3.2 python3.1 python3.0" + [ax_python3_progs="python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" AC_CHECK_PROGS( [PYTHON3], [$ax_python3_progs]) @@ -90,10 +86,16 @@ dnl "python${PYTHON_VERSION}-config python-config" AC_DEFUN([AX_PROG_PYTHON_CONFIG], [AS_IF( - [test "x${PYTHON}" != x], + [test "x${PYTHON_CONFIG}" = x && test "x${PYTHON_VERSION}" != x], + [AC_CHECK_PROGS( + [PYTHON_CONFIG], + [python${PYTHON_VERSION}-config]) + ]) + AS_IF( + [test "x${PYTHON_CONFIG}" = x], [AC_CHECK_PROGS( [PYTHON_CONFIG], - [python${PYTHON_VERSION}-config python-config]) + [python-config]) ]) AS_IF( [test "x${PYTHON_CONFIG}" = x], @@ -108,7 +110,7 @@ dnl Function to check if the python2-config binary is available AC_DEFUN([AX_PROG_PYTHON2_CONFIG], [AS_IF( - [test "x${PYTHON2}" != x], + [test "x${PYTHON2_CONFIG}" = x], [AC_CHECK_PROGS( [PYTHON2_CONFIG], [python2-config]) @@ -126,7 +128,7 @@ dnl Function to check if the python3-config binary is available AC_DEFUN([AX_PROG_PYTHON3_CONFIG], [AS_IF( - [test "x${PYTHON3}" != x], + [test "x${PYTHON3_CONFIG}" = x], [AC_CHECK_PROGS( [PYTHON3_CONFIG], [python3-config]) @@ -185,7 +187,7 @@ AS_IF( [test "x${ac_cv_header_python_h}" != xyes], [ac_cv_enable_python=no], - [ac_cv_enable_python=$PYTHON_VERSION + [ac_cv_enable_python=${ax_prog_python_version} AC_SUBST( [PYTHON_CPPFLAGS], [$PYTHON_INCLUDES]) 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/libbde-20190317/tests/bde_test_macros.h new/libbde-20190701/tests/bde_test_macros.h --- old/libbde-20190317/tests/bde_test_macros.h 2019-03-11 21:31:28.000000000 +0100 +++ new/libbde-20190701/tests/bde_test_macros.h 2019-07-01 20:06:49.000000000 +0200 @@ -99,6 +99,13 @@ goto on_error; \ } +#define BDE_TEST_ASSERT_NOT_EQUAL_SSIZE( name, value, expected_value ) \ + if( value == expected_value ) \ + { \ + fprintf( stdout, "%s:%d %s (%" PRIzd ") == %" PRIzd "\n", __FILE__, __LINE__, name, value, expected_value ); \ + goto on_error; \ + } + #define BDE_TEST_ASSERT_EQUAL_INT8( name, value, expected_value ) \ if( value != expected_value ) \ { \ 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/libbde-20190317/tests/bde_test_memory.c new/libbde-20190701/tests/bde_test_memory.c --- old/libbde-20190317/tests/bde_test_memory.c 2019-03-11 21:31:28.000000000 +0100 +++ new/libbde-20190701/tests/bde_test_memory.c 2019-07-01 20:06:49.000000000 +0200 @@ -35,15 +35,15 @@ #if defined( HAVE_BDE_TEST_MEMORY ) -static void *(*bde_test_real_malloc)(size_t) = NULL; -static void *(*bde_test_real_memcpy)(void *, void *, size_t) = NULL; -static void *(*bde_test_real_memset)(void *, int, size_t) = NULL; -static void *(*bde_test_real_realloc)(void *, size_t) = NULL; - -int bde_test_malloc_attempts_before_fail = -1; -int bde_test_memcpy_attempts_before_fail = -1; -int bde_test_memset_attempts_before_fail = -1; -int bde_test_realloc_attempts_before_fail = -1; +static void *(*bde_test_real_malloc)(size_t) = NULL; +static void *(*bde_test_real_memcpy)(void *, const void *, size_t) = NULL; +static void *(*bde_test_real_memset)(void *, int, size_t) = NULL; +static void *(*bde_test_real_realloc)(void *, size_t) = NULL; + +int bde_test_malloc_attempts_before_fail = -1; +int bde_test_memcpy_attempts_before_fail = -1; +int bde_test_memset_attempts_before_fail = -1; +int bde_test_realloc_attempts_before_fail = -1; /* Custom malloc for testing memory error cases * Note this function might fail if compiled with optimation @@ -82,7 +82,7 @@ */ void *memcpy( void *destination, - void *source, + const void *source, size_t size ) { if( bde_test_real_memcpy == NULL )