Skip to content

Commit 80db91b

Browse files
authored
Merge pull request #27 from Tripwire/dev/next
Open Source Tripwire 2.4.3.6
2 parents 7af2781 + d06b001 commit 80db91b

File tree

537 files changed

+12178
-4328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

537 files changed

+12178
-4328
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ config.h
33
config.h.in~
44
config.log
55
config.status
6-
compile
76
autom4te.cache/
87
bin/
98
lib/
@@ -21,6 +20,9 @@ src/test-harness/twtest
2120
**/*.dll
2221
**/*.exe
2322
**/*~
23+
**/*#
2424
**/*.bak
2525
**/.DS_Store
26+
**/*.gcno
27+
**/*.gcda
2628
releases/

ChangeLog

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2017-10-01 Brian Cox <[email protected]>
2+
* Update version to 2.4.3.6
3+
* Fix & expand tests in Perl acceptance test framework
4+
* Fix & expand twtest unit tests, & rework unit test mini-framework so they’re referenced by name, not some numeric ID, and list tests as “skipped" if they don’t make any test assertions.
5+
* Add configure options to enable coverage, profiling, & use /dev/urandom as RNG (all off by default)
6+
* Add a ‘list’ make target to list all make targets
7+
* Remove dead code & add test coverage per gcov+lcov results
8+
* Fix various memory issues pointed out by valgrind
9+
* In examine-encryption mode, better reporting (& nonzero exit) if we can't find a keyfile for the examined file.
10+
* More exception handling around individual objects & init/IC as a whole, since there have been occasional reports of uncaught exceptions during init or check, and so far haven’t been able to repro or figure out what circumstances it occurs under. (e.g. Github issue #25)
11+
* Tweak install.sh so it can be run directly, not just thru 'make install' if you want. (Github issue #26)
12+
* Improve native (non-Posixy) path handling on platforms that need it (DOS, AROS, RISC OS, Redox)
13+
* New platforms: MirOS BSD, Bitrig, LibertyBSD, RISC OS, Redox
14+
* Add default policies for HP-UX & various BSDs
15+
116
2017-03-30 Brian Cox <[email protected]>
217
* Bump version to 2.4.3.5
318
* Fix ‘install-strip’, ‘check’, ‘uninstall’, and ‘distcheck’ make targets.
@@ -35,7 +50,8 @@
3550
* AROS: Correctly hide passphrases & delete temp files.
3651
* Remove dead code & unused files.
3752
* Optional RESOLVE_IDS_TO_NAMES option to disable uid/gid to name resolution, if needed.
38-
* New --key-size option to twadmin --generate-keys, to generate 1024 (default) or 2048 bit El Gamal keys.
53+
* New --key-size option to twadmin --generate-keys, to generate 1024 (default) or 2048 bit El Gamal keys.
54+
3955
2016-04-20 Brian Cox <[email protected]>
4056
* Bump version to 2.4.3.1
4157
* Revive old 'twtest' unit test suite (such as it is); move _t.cpp files into twtest dir.

Makefile.am

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ uninstall-hook:
1414

1515
check:
1616
rm -Rf $(top_srcdir)/src/test-harness/twtest
17+
rm -Rf $(top_srcdir)/bin/TWTestData
1718
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
18-
$(top_srcdir)/bin/twtest all
19+
cd $(top_srcdir)/bin && ./twtest all
20+
21+
test: check
22+
23+
.PHONY: targets
24+
targets:
25+
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs

Makefile.in

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Makefile.in generated by automake 1.15 from Makefile.am.
1+
# Makefile.in generated by automake 1.15.1 from Makefile.am.
22
# @configure_input@
33

4-
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
4+
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
55

66
# This Makefile.in is free software; the Free Software Foundation
77
# gives unlimited permission to copy and/or distribute it,
@@ -307,7 +307,6 @@ pdfdir = @pdfdir@
307307
prefix = @prefix@
308308
program_transform_name = @program_transform_name@
309309
psdir = @psdir@
310-
runstatedir = @runstatedir@
311310
sbindir = @sbindir@
312311
sharedstatedir = @sharedstatedir@
313312
srcdir = @srcdir@
@@ -547,7 +546,7 @@ distdir: $(DISTFILES)
547546
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
548547
|| chmod -R a+r "$(distdir)"
549548
dist-gzip: distdir
550-
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
549+
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
551550
$(am__post_remove_distdir)
552551

553552
dist-bzip2: distdir
@@ -573,7 +572,7 @@ dist-shar: distdir
573572
@echo WARNING: "Support for shar distribution archives is" \
574573
"deprecated." >&2
575574
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
576-
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
575+
shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
577576
$(am__post_remove_distdir)
578577

579578
dist-zip: distdir
@@ -591,7 +590,7 @@ dist dist-all:
591590
distcheck: dist
592591
case '$(DIST_ARCHIVES)' in \
593592
*.tar.gz*) \
594-
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
593+
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
595594
*.tar.bz2*) \
596595
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
597596
*.tar.lz*) \
@@ -601,7 +600,7 @@ distcheck: dist
601600
*.tar.Z*) \
602601
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
603602
*.shar.gz*) \
604-
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
603+
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
605604
*.zip*) \
606605
unzip $(distdir).zip ;;\
607606
esac
@@ -810,8 +809,15 @@ uninstall-hook:
810809

811810
check:
812811
rm -Rf $(top_srcdir)/src/test-harness/twtest
812+
rm -Rf $(top_srcdir)/bin/TWTestData
813813
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
814-
$(top_srcdir)/bin/twtest all
814+
cd $(top_srcdir)/bin && ./twtest all
815+
816+
test: check
817+
818+
.PHONY: targets
819+
targets:
820+
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
815821

816822
# Tell versions [3.59,3.63) of GNU make to not export all variables.
817823
# Otherwise a system limit (for SysV at least) may be exceeded.

TRADEMARK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TRIPWIRE COPYRIGHT & TRADEMARK NOTICE
22

33
COPYRIGHT
44
The developer of the original code and/or files is Tripwire, Inc. Portions
5-
created by Tripwire, Inc. are copyright 2000 Tripwire, Inc.
5+
created by Tripwire, Inc. are copyright 2000-2017 Tripwire, Inc.
66

77
TRADEMARK
88
Tripwire is a registered trademark (the "Trademark") of Tripwire, Inc. All

aclocal.m4

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# generated automatically by aclocal 1.15 -*- Autoconf -*-
1+
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
22

3-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
3+
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
44

55
# This file is free software; the Free Software Foundation
66
# gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
2020
If you have problems, you may need to regenerate the build system entirely.
2121
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2222

23-
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
23+
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
2424
#
2525
# This file is free software; the Free Software Foundation
2626
# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
3535
[am__api_version='1.15'
3636
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3737
dnl require some minimum version. Point them to the right macro.
38-
m4_if([$1], [1.15], [],
38+
m4_if([$1], [1.15.1], [],
3939
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
4040
])
4141

@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
5151
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5252
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5353
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54-
[AM_AUTOMAKE_VERSION([1.15])dnl
54+
[AM_AUTOMAKE_VERSION([1.15.1])dnl
5555
m4_ifndef([AC_AUTOCONF_VERSION],
5656
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5757
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5858

5959
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6060

61-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
61+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
6262
#
6363
# This file is free software; the Free Software Foundation
6464
# gives unlimited permission to copy and/or distribute it,
@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
110110

111111
# AM_CONDITIONAL -*- Autoconf -*-
112112

113-
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
113+
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
114114
#
115115
# This file is free software; the Free Software Foundation
116116
# gives unlimited permission to copy and/or distribute it,
@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE(
141141
Usually this means the macro was only invoked conditionally.]])
142142
fi])])
143143

144-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
144+
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
145145
#
146146
# This file is free software; the Free Software Foundation
147147
# gives unlimited permission to copy and/or distribute it,
@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
332332

333333
# Generate code to set up dependency tracking. -*- Autoconf -*-
334334

335-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
335+
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
336336
#
337337
# This file is free software; the Free Software Foundation
338338
# gives unlimited permission to copy and/or distribute it,
@@ -408,7 +408,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
408408

409409
# Do all the work for Automake. -*- Autoconf -*-
410410

411-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
411+
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
412412
#
413413
# This file is free software; the Free Software Foundation
414414
# gives unlimited permission to copy and/or distribute it,
@@ -605,7 +605,7 @@ for _am_header in $config_headers :; do
605605
done
606606
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
607607

608-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
608+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
609609
#
610610
# This file is free software; the Free Software Foundation
611611
# gives unlimited permission to copy and/or distribute it,
@@ -626,7 +626,7 @@ if test x"${install_sh+set}" != xset; then
626626
fi
627627
AC_SUBST([install_sh])])
628628

629-
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
629+
# Copyright (C) 2003-2017 Free Software Foundation, Inc.
630630
#
631631
# This file is free software; the Free Software Foundation
632632
# gives unlimited permission to copy and/or distribute it,
@@ -647,7 +647,7 @@ AC_SUBST([am__leading_dot])])
647647

648648
# Check to see how 'make' treats includes. -*- Autoconf -*-
649649

650-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
650+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
651651
#
652652
# This file is free software; the Free Software Foundation
653653
# gives unlimited permission to copy and/or distribute it,
@@ -697,7 +697,7 @@ rm -f confinc confmf
697697

698698
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
699699

700-
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
700+
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
701701
#
702702
# This file is free software; the Free Software Foundation
703703
# gives unlimited permission to copy and/or distribute it,
@@ -738,7 +738,7 @@ fi
738738
# Obsolete and "removed" macros, that must however still report explicit
739739
# error messages when used, to smooth transition.
740740
#
741-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
741+
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
742742
#
743743
# This file is free software; the Free Software Foundation
744744
# gives unlimited permission to copy and/or distribute it,
@@ -765,7 +765,7 @@ AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
765765

766766
# Helper functions for option handling. -*- Autoconf -*-
767767

768-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
768+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
769769
#
770770
# This file is free software; the Free Software Foundation
771771
# gives unlimited permission to copy and/or distribute it,
@@ -794,7 +794,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
794794
AC_DEFUN([_AM_IF_OPTION],
795795
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
796796

797-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
797+
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
798798
#
799799
# This file is free software; the Free Software Foundation
800800
# gives unlimited permission to copy and/or distribute it,
@@ -841,7 +841,7 @@ AC_LANG_POP([C])])
841841
# For backward compatibility.
842842
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
843843

844-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
844+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
845845
#
846846
# This file is free software; the Free Software Foundation
847847
# gives unlimited permission to copy and/or distribute it,
@@ -860,7 +860,7 @@ AC_DEFUN([AM_RUN_LOG],
860860

861861
# Check to make sure that the build environment is sane. -*- Autoconf -*-
862862

863-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
863+
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
864864
#
865865
# This file is free software; the Free Software Foundation
866866
# gives unlimited permission to copy and/or distribute it,
@@ -941,7 +941,7 @@ AC_CONFIG_COMMANDS_PRE(
941941
rm -f conftest.file
942942
])
943943

944-
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
944+
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
945945
#
946946
# This file is free software; the Free Software Foundation
947947
# gives unlimited permission to copy and/or distribute it,
@@ -1001,7 +1001,7 @@ AC_SUBST([AM_BACKSLASH])dnl
10011001
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10021002
])
10031003

1004-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1004+
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
10051005
#
10061006
# This file is free software; the Free Software Foundation
10071007
# gives unlimited permission to copy and/or distribute it,
@@ -1029,7 +1029,7 @@ fi
10291029
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10301030
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10311031

1032-
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
1032+
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
10331033
#
10341034
# This file is free software; the Free Software Foundation
10351035
# gives unlimited permission to copy and/or distribute it,
@@ -1048,7 +1048,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10481048

10491049
# Check how to create a tarball. -*- Autoconf -*-
10501050

1051-
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
1051+
# Copyright (C) 2004-2017 Free Software Foundation, Inc.
10521052
#
10531053
# This file is free software; the Free Software Foundation
10541054
# gives unlimited permission to copy and/or distribute it,

0 commit comments

Comments
 (0)