Changeset 550
- Timestamp:
- Oct 31, 2019, 9:13:12 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 22 added
- 4 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r549 r550 118 118 sh_mem.h sh_entropy.h sh_xfer.h sh_modules.h sh_utmp.h \ 119 119 sh_suidchk.h sh_srp.h sh_fifo.h sh_html.h sh_tools.h \ 120 sh_ gpg.h sh_cat.h sh_calls.h sh_extern.h sh_database.h sh_trace.h \120 sh_sig.h sh_cat.h sh_calls.h sh_extern.h sh_database.h sh_trace.h \ 121 121 sh_schedule.h bignum.h trustfile.h slib.h zAVLTree.h \ 122 122 lzoconf.h minilzo.h rijndael-alg-fst.h rijndael-api-fst.h \ … … 144 144 $(srcsrc)/sh_suidchk.c $(srcsrc)/sh_srp.c \ 145 145 $(srcsrc)/sh_fifo.c $(srcsrc)/sh_tools.c \ 146 $(srcsrc)/sh_html.c $(srcsrc)/sh_ gpg.c \146 $(srcsrc)/sh_html.c $(srcsrc)/sh_sig.c \ 147 147 $(srcsrc)/sh_cat.c $(srcsrc)/sh_calls.c \ 148 148 $(srcsrc)/sh_extern.c $(srcsrc)/sh_database.c \ … … 184 184 sh_entropy.o sh_modules.o sh_utmp.o \ 185 185 sh_xfer_client.o sh_xfer_server.o sh_xfer_syslog.o \ 186 sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_ gpg.o \186 sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_sig.o \ 187 187 sh_cat.o sh_calls.o sh_extern.o sh_database.o sh_err_log.o \ 188 188 sh_err_console.o sh_err_syslog.o sh_schedule.o bignum.o \ … … 205 205 testtimesrv.sh \ 206 206 testext.sh testrc_1ext.in test_ext.c.in testrun_1d.sh \ 207 testrun_1.sh testrun_1a.sh testrun_1b.sh testrun_1c.sh testrc_1 \ 207 testrun_1.sh testrun_1a.sh testrun_1b.sh testrun_1c.sh \ 208 testrc_1 testrc_1i.dyn test1i_file.sig test1i_samhain.pub \ 209 testrun_1d.sh testrun_1e.sh testrun_1f.sh \ 210 testrun_1g.sh testrun_1h.sh testrun_1i.sh \ 208 211 testrun_2.sh testrun_2a.sh testrun_2b.sh testrc_2.in \ 209 testrun_2c.sh testrun_2d.sh 212 testrun_2c.sh testrun_2d.sh testrun_2e.sh testrun_2f.sh \ 213 testrun_2g.sh 210 214 211 215 DIST_COMMON = README COPYING LICENSE samhain.jpg \ … … 374 378 # 375 379 376 DISTCLEANFILES = Makefile samhain.spec sh_ gpg_checksum.h sh_gpg_fp.h \380 DISTCLEANFILES = Makefile samhain.spec sh_sig_checksum.h sh_gpg_fp.h \ 377 381 init/samhain.startLinux init/samhain.startGentoo init/samhain.startSystemd \ 378 382 init/samhain.startLSB init/samhain.startFreeBSD \ 379 383 init/samhain.startSolaris init/samhain.startHPUX \ 380 384 init/samhain.startIRIX init/samhain.startMACOSX \ 381 deploy.sh sh_MK.h samhain-install.sh sh_gpg_chksum.h sh_gpg_fp.h\385 deploy.sh sh_MK.h samhain-install.sh \ 382 386 rules.deb rules.deb-light src/CuTestMain.c \ 387 scripts/samhainadmin-sig.pl scripts/samhainadmin-gpg.pl \ 383 388 scripts/samhainadmin.pl scripts/check_samhain.pl \ 384 389 scripts/samhain.ebuild scripts/samhain.ebuild-light \ … … 1548 1553 1549 1554 SCRIPTFILES=redhat_i386.client.spec check_samhain.pl samhainadmin.pl \ 1555 samhainadmin-gpg.pl samhainadmin-sig.pl \ 1550 1556 yuleadmin.pl samhain.ebuild samhain.ebuild-light samhain.spec 1551 1557 … … 1621 1627 1622 1628 1623 samhain.o: $(srcsrc)/samhain.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_getopt.h $(srcinc)/sh_readconf.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_restrict.h $(srcinc)/sh_nmail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_gpg.h $(srcinc)/sh_mem.h $(srcinc)/sh_xfer.h $(srcinc)/sh_tools.h $(srcinc)/sh_hash.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h $(srcinc)/sh_ignore.h $(srcinc)/sh_prelink.h $(srcinc)/sh_sem.h sh_MK.h $(srcinc)/sh_schedule.h 1629 1630 samhain.o: $(srcsrc)/samhain.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_getopt.h $(srcinc)/sh_readconf.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_restrict.h $(srcinc)/sh_nmail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_sig.h $(srcinc)/sh_mem.h $(srcinc)/sh_xfer.h $(srcinc)/sh_tools.h $(srcinc)/sh_hash.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h $(srcinc)/sh_ignore.h $(srcinc)/sh_prelink.h $(srcinc)/sh_sem.h sh_MK.h $(srcinc)/sh_schedule.h 1624 1631 sh_unix.o: $(srcsrc)/sh_unix.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_hash.h $(srcinc)/sh_tools.h $(srcinc)/sh_restrict.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_tiger.h $(srcinc)/sh_prelink.h $(srcinc)/sh_pthread.h $(srcinc)/sh_sem.h $(srcinc)/sh_static.h $(srcinc)/sh_prelude.h $(srcinc)/zAVLTree.h $(srcinc)/sh_subuid.h $(srcinc)/sh_ignore.h 1625 1632 sh_utils.o: $(srcsrc)/sh_utils.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_entropy.h $(srcinc)/sh_pthread.h … … 1627 1634 sh_files.o: $(srcsrc)/sh_files.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_hash.h $(srcinc)/sh_ignore.h $(srcinc)/sh_inotify.h $(srcinc)/zAVLTree.h $(srcinc)/sh_dbIO.h $(srcinc)/CuTest.h 1628 1635 sh_getopt.o: $(srcsrc)/sh_getopt.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_getopt.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_utils.h $(srcinc)/sh_mail.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbCheck.h $(srcinc)/sh_dbCreate.h $(srcinc)/sh_sem.h $(srcinc)/sh_extern.h 1629 sh_readconf.o: $(srcsrc)/sh_readconf.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_xfer.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ignore.h $(srcinc)/sh_database.h $(srcinc)/sh_mail.h $(srcinc)/sh_modules.h $(srcinc)/sh_nmail.h $(srcinc)/sh_prelink.h $(srcinc)/sh_prelude.h $(srcinc)/sh_tiger.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/sh_socket.h1636 sh_readconf.o: $(srcsrc)/sh_readconf.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_xfer.h $(srcinc)/sh_sig.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ignore.h $(srcinc)/sh_database.h $(srcinc)/sh_mail.h $(srcinc)/sh_modules.h $(srcinc)/sh_nmail.h $(srcinc)/sh_prelink.h $(srcinc)/sh_prelude.h $(srcinc)/sh_tiger.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/sh_socket.h 1630 1637 sh_tiger0.o: $(srcsrc)/sh_tiger0.c Makefile config_xor.h $(srcinc)/sh_tiger.h $(srcinc)/sh_unix.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_pthread.h $(srcinc)/sh_string.h $(srcinc)/sh_checksum.h 1631 1638 sh_tiger1.o: $(srcsrc)/sh_tiger1.c Makefile config_xor.h … … 1633 1640 sh_tiger1_64.o: $(srcsrc)/sh_tiger1_64.c Makefile config_xor.h 1634 1641 sh_tiger2_64.o: $(srcsrc)/sh_tiger2_64.c Makefile config_xor.h 1635 sh_hash.o: $(srcsrc)/sh_hash.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_hash.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h $(srcinc)/sh_pthread.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_checksum.h1642 sh_hash.o: $(srcsrc)/sh_hash.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_hash.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_sig.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h $(srcinc)/sh_pthread.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_checksum.h 1636 1643 sh_mail.o: $(srcsrc)/sh_mail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mail.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_pthread.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/sh_nmail.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_static.h $(srcinc)/sh_tools.h 1644 sh_nmail.o: $(srcsrc)/sh_nmail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_mem.h $(srcinc)/sh_mail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_string.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/zAVLTree.h 1637 1645 sh_mem.o: $(srcsrc)/sh_mem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_pthread.h 1638 1646 sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h 1639 sh_forward.o: $(srcsrc)/sh_forward.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_forward.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h 1647 sh_xfer_client.o: $(srcsrc)/sh_xfer_client.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h 1648 sh_xfer_server.o: $(srcsrc)/sh_xfer_server.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/sh_guid.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h 1649 sh_xfer_syslog.o: $(srcsrc)/sh_xfer_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h 1640 1650 sh_modules.o: $(srcsrc)/sh_modules.c Makefile config_xor.h $(srcinc)/sh_modules.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utmp.h $(srcinc)/sh_mounts.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_portcheck.h $(srcinc)/sh_logmon.h $(srcinc)/sh_registry.h $(srcinc)/sh_fInotify.h 1641 1651 sh_utmp.o: $(srcsrc)/sh_utmp.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_utmp.h $(srcinc)/sh_pthread.h $(srcinc)/sh_inotify.h 1642 sh_ kern.o: $(srcsrc)/sh_kern.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_kern.h sh_ks_xor.h $(srcinc)/sh_unix.h $(srcinc)/sh_hash.h1652 sh_login_track.o: $(srcsrc)/sh_login_track.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_tools.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_error_min.h $(srcinc)/CuTest.h $(srcinc)/CuTest.h 1643 1653 sh_suidchk.o: $(srcsrc)/sh_suidchk.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_schedule.h $(srcinc)/sh_calls.h $(srcinc)/zAVLTree.h 1644 1654 sh_srp.o: $(srcsrc)/sh_srp.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mem.h $(srcinc)/sh_utils.h $(srcinc)/sh_srp.h $(srcinc)/bignum.h $(srcinc)/CuTest.h … … 1646 1656 sh_tools.o: $(srcsrc)/sh_tools.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/rijndael-api-fst.h $(srcinc)/rijndael-api-fst.h 1647 1657 sh_html.o: $(srcsrc)/sh_html.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_xfer.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_html.h $(srcinc)/zAVLTree.h 1648 sh_ gpg.o: $(srcsrc)/sh_gpg.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_gpg.h1658 sh_sig.o: $(srcsrc)/sh_sig.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_sig.h 1649 1659 sh_cat.o: $(srcsrc)/sh_cat.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_cat.h 1650 1660 sh_calls.o: $(srcsrc)/sh_calls.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_sub.h $(srcinc)/sh_utils.h … … 1675 1685 sh_userfiles.o: $(srcsrc)/sh_userfiles.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_modules.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_utils.h $(srcinc)/sh_schedule.h $(srcinc)/sh_error.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h 1676 1686 sh_prelude.o: $(srcsrc)/sh_prelude.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_cat.h $(srcinc)/sh_error_min.h $(srcinc)/sh_prelude.h $(srcinc)/sh_static.h 1677 kern_head.o: $(srcsrc)/kern_head.c Makefile config.h $(srcinc)/kern_head.h $(srcinc)/kern_head.h1678 1687 sh_prelink.o: $(srcsrc)/sh_prelink.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_extern.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h 1679 1688 sh_static.o: $(srcsrc)/sh_static.c Makefile config_xor.h $(srcinc)/sh_pthread.h 1680 sh_async.o: $(srcsrc)/sh_async.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h 1689 sh_portcheck.o: $(srcsrc)/sh_portcheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_mem.h $(srcinc)/sh_calls.h $(srcinc)/sh_utils.h $(srcinc)/sh_modules.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/CuTest.h 1690 sh_port2proc.o: $(srcsrc)/sh_port2proc.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error_min.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h 1681 1691 sh_processcheck.o: $(srcsrc)/sh_processcheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_modules.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h 1682 sh_ portcheck.o: $(srcsrc)/sh_portcheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_mem.h $(srcinc)/sh_calls.h $(srcinc)/sh_utils.h $(srcinc)/sh_modules.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/CuTest.h1692 sh_filter.o: $(srcsrc)/sh_filter.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_filter.h 1683 1693 sh_pthread.o: $(srcsrc)/sh_pthread.c Makefile config_xor.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_modules.h 1684 1694 sh_string.o: $(srcsrc)/sh_string.c Makefile config_xor.h $(srcinc)/sh_string.h $(srcinc)/sh_mem.h $(srcinc)/CuTest.h 1685 dnmalloc.o: $(srcsrc)/dnmalloc.c Makefile config.h1686 t-test1.o: $(srcsrc)/t-test1.c Makefile config.h $(srcinc)/malloc.h1687 sh_port2proc.o: $(srcsrc)/sh_port2proc.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error_min.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h1688 1695 sh_log_parse_syslog.o: $(srcsrc)/sh_log_parse_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h 1689 1696 sh_log_parse_pacct.o: $(srcsrc)/sh_log_parse_pacct.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h 1697 sh_log_parse_samba.o: $(srcsrc)/sh_log_parse_samba.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h 1698 sh_log_parse_generic.o: $(srcsrc)/sh_log_parse_generic.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h 1690 1699 sh_log_parse_apache.o: $(srcsrc)/sh_log_parse_apache.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h 1691 1700 sh_log_evalrule.o: $(srcsrc)/sh_log_evalrule.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/sh_log_correlate.h $(srcinc)/sh_log_mark.h $(srcinc)/sh_log_repeat.h $(srcinc)/zAVLTree.h 1692 sh_log_check.o: $(srcsrc)/sh_log_check.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/sh_log_correlate.h $(srcinc)/sh_log_mark.h $(srcinc)/sh_log_repeat.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h1693 sh_log_parse_samba.o: $(srcsrc)/sh_log_parse_samba.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h1694 sh_nmail.o: $(srcsrc)/sh_nmail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_mem.h $(srcinc)/sh_mail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_string.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/zAVLTree.h1695 sh_filter.o: $(srcsrc)/sh_filter.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_filter.h1696 sh_inotify.o: $(srcsrc)/sh_inotify.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/sh_mem.h $(srcinc)/sh_utils.h $(srcinc)/slib.h $(srcinc)/zAVLTree.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/CuTest.h1697 1701 sh_log_correlate.o: $(srcsrc)/sh_log_correlate.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h 1698 1702 sh_log_mark.o: $(srcsrc)/sh_log_mark.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_mem.h $(srcinc)/sh_string.h $(srcinc)/sh_error_min.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/zAVLTree.h 1703 sh_log_check.o: $(srcsrc)/sh_log_check.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/sh_log_correlate.h $(srcinc)/sh_log_mark.h $(srcinc)/sh_log_repeat.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h 1704 dnmalloc.o: $(srcsrc)/dnmalloc.c Makefile config.h 1705 sh_inotify.o: $(srcsrc)/sh_inotify.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/sh_mem.h $(srcinc)/sh_utils.h $(srcinc)/slib.h $(srcinc)/zAVLTree.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/CuTest.h 1699 1706 sh_log_repeat.o: $(srcsrc)/sh_log_repeat.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h 1700 sh_log_parse_generic.o: $(srcsrc)/sh_log_parse_generic.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h1701 sh_login_track.o: $(srcsrc)/sh_login_track.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_tools.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_error_min.h $(srcinc)/CuTest.h $(srcinc)/CuTest.h1702 1707 sh_audit.o: $(srcsrc)/sh_audit.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_utils.h 1703 1708 sh_registry.o: $(srcsrc)/sh_registry.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_modules.h $(srcinc)/sh_hash.h $(srcinc)/sh_tiger.h … … 1709 1714 sh_checksum.o: $(srcsrc)/sh_checksum.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_checksum.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h 1710 1715 sh_guid.o: $(srcsrc)/sh_guid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h 1711 sh_dbIO.o: $(srcsrc)/sh_dbIO.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_gpg.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h 1716 sh_sem.o: $(srcsrc)/sh_sem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_sem.h $(srcinc)/sh_error_min.h 1717 sh_dbIO.o: $(srcsrc)/sh_dbIO.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_sig.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h 1712 1718 sh_dbCheck.o: $(srcsrc)/sh_dbCheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h 1713 1719 sh_dbCreate.o: $(srcsrc)/sh_dbCreate.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h $(srcinc)/sh_guid.h 1714 sh_xfer_client.o: $(srcsrc)/sh_xfer_client.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h1715 sh_xfer_server.o: $(srcsrc)/sh_xfer_server.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/sh_guid.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h1716 sh_xfer_syslog.o: $(srcsrc)/sh_xfer_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h1717 sh_xload_client.o: $(srcsrc)/sh_xload_client.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_guid.h1718 sh_sem.o: $(srcsrc)/sh_sem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_sem.h $(srcinc)/sh_error_min.h1719 1720 sh_subuid.o: $(srcsrc)/sh_subuid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h 1721 t-test1.o: $(srcsrc)/t-test1.c Makefile config.h $(srcinc)/malloc.h -
trunk/acconfig.h
r481 r550 231 231 /* The full path to GnuPG */ 232 232 #undef DEFAULT_GPG_PATH 233 234 /* Define if using the gpg/pgp checksum. */235 #undef HAVE_GPG_CHECKSUM236 237 /* The tiger checksum of the gpg/pgp binary. */238 #undef GPG_HASH239 233 240 234 /* Define if you want to compile in the */ -
trunk/aclocal.m4
r544 r550 410 410 DESTDIR= 411 411 SH_ENABLE_OPTS="selinux posix-acl asm ssp db-reload xml-log message-queue login-watch process-check port-check mounts-check logfile-monitor userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp dnmalloc ipv6 shellexpand suid" 412 SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheckgpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file"412 SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver signify pubkey-checksum gpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file" 413 413 414 414 # Installation directory options. -
trunk/config.h.in
r544 r550 232 232 #undef DEFAULT_GPG_PATH 233 233 234 /* Define if using the gpg/pgp checksum. */235 #undef HAVE_GPG_CHECKSUM236 237 /* The tiger checksum of the gpg/pgp binary. */238 #undef GPG_HASH239 240 234 /* Define if you want to compile in the */ 241 235 /* public key fingerprint. */ … … 440 434 #undef AC_APPLE_UNIVERSAL_BUILD 441 435 436 /* Define as path to signing binary */ 437 #undef DEFAULT_SIG_PATH 438 442 439 /* Debug dnmalloc */ 443 440 #undef DNMALLOC_CHECKS … … 798 795 #undef HAVE_SETUTENT 799 796 797 /* Define if signing binary checksum available. */ 798 #undef HAVE_SIG_CHECKSUM 799 800 /* Define if signing binary checksum available. */ 801 #undef HAVE_SIG_KEY_HASH 802 800 803 /* Define if you have SI_USER */ 801 804 #undef HAVE_SI_USER … … 1034 1037 #undef SH_USE_PROCESSCHECK 1035 1038 1039 /* Define as the signing binary TIGER192 checksum. */ 1040 #undef SIG_HASH 1041 1042 /* Define as the signify public key checksum. */ 1043 #undef SIG_KEY_HASH 1044 1036 1045 /* The size of `char *', as computed by sizeof. */ 1037 1046 #undef SIZEOF_CHAR_P … … 1090 1099 /* Define if you want extended attributes support. */ 1091 1100 #undef USE_XATTR 1101 1102 /* Define if signature checking is supported. */ 1103 #undef WITH_SIG 1104 1105 /* Define if using OpenBSD signify for signature checking. */ 1106 #undef WITH_SIGNIFY 1092 1107 1093 1108 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most -
trunk/configure.ac
r548 r550 12 12 dnl start 13 13 dnl 14 AM_INIT_AUTOMAKE(samhain, 4. 3.3)14 AM_INIT_AUTOMAKE(samhain, 4.4.0) 15 15 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 16 AC_CANONICAL_HOST … … 2220 2220 2221 2221 dnl 2222 dnl GPG/PGPoptions2222 dnl Signify/GnuPG options 2223 2223 dnl 2224 2225 AC_ARG_WITH(signify, 2226 [ --with-signify=PATH use OpenBSD signify to verify database/config [[no]]], 2227 [ 2228 if test "x${withval}" != "xno"; then 2229 if test "x${cross_compiling}" = xyes; then 2230 mysignify="${withval}" 2231 else 2232 if test -f "${withval}"; then 2233 mysignify="${withval}" 2234 mychk0=`gpg --load-extension tiger --print-md TIGER192 ${withval} 2>/dev/null` 2235 if test "x$?" != "x0"; then 2236 mychktest=no 2237 for sam_pre in ./samhain ./yule /usr/local/sbin/samhain /usr/local/bin/samhain /usr/bin/samhain /usr/sbin/samhain /usr/local/sbin/yule /usr/local/bin/yule /usr/bin/yule /usr/sbin/yule; do 2238 if test x"${mychktest}" = xyes 2239 then 2240 : 2241 else 2242 if test -f ${sam_pre} 2243 then 2244 echo "use existing ${sam_pre} for signify checksum" 2245 mychk0=`${sam_pre} -H ${withval} 2>/dev/null` 2246 if test "x$?" != "x0"; then 2247 if test "x${nocl_code}" != "x"; then 2248 mychk0=`echo -H ${withval} | ${sam_pre} ${nocl_code} 2>/dev/null` 2249 if test "x$?" != "x0"; then 2250 : 2251 else 2252 mychk="${mychk0}" 2253 mychktest=yes 2254 fi 2255 fi 2256 else 2257 mychk="${mychk0}" 2258 mychktest=yes 2259 fi 2260 fi 2261 fi 2262 done 2263 if test x${mychktest} = xno; then 2264 AC_MSG_WARN([--with-signify: cannot determine TIGER192 checksum of ${withval}]) 2265 echo "-------------------------------------------------------------" 2266 echo " I cannot find an existing GnuPG or samhain binary to use." 2267 echo " You can:" 2268 echo " (a) run make to compile a samhain binary, then repeat" 2269 echo " ./configure and make" 2270 echo " (b) ignore the failure. The checksum of the signify binary" 2271 echo " will not get compiled in, thus allowing an attacker" 2272 echo " to replace signify with a trojan and subverting the" 2273 echo " signature verification of configure and database files." 2274 echo 2275 echo " PLEASE IGNORE THIS MESSAGE IF YOU ALSO USE --with-checksum" 2276 echo "-------------------------------------------------------------" 2277 fi 2278 else 2279 mychk="${mychk0}" 2280 fi 2281 else 2282 AC_MSG_ERROR([--with-signify: cannot find signify PATH=${withval}]) 2283 fi 2284 fi 2285 AC_DEFINE([WITH_SIG], 1, [Define if signature checking is supported.]) 2286 AC_DEFINE([WITH_SIGNIFY], 1, [Define if using OpenBSD signify for signature checking.]) 2287 AC_DEFINE_UNQUOTED([DEFAULT_SIG_PATH], _("${mysignify}"), [Define as path to signing binary]) 2288 AC_SUBST(mysignify) 2289 fi 2290 ] 2291 ) 2292 2293 AC_ARG_WITH(pubkey-checksum, 2294 [ --with-pubkey-checksum=CHKSUM compile in TIGER192 checksum of signify public key [[no]]], 2295 [ 2296 if test "x${withval}" != "xno"; then 2297 if test "x${withval}" == "xyes"; then 2298 AC_MSG_ERROR([Option --with-pubkey-checksum=CHKSUM: checksum CHKSUM of signify public key not specified.]) 2299 else 2300 if test "x${withval}" = "x"; then 2301 AC_MSG_ERROR([Option --with-checksum=CHKSUM: checksum CHKSUM of the signify public key not specified.]) 2302 fi 2303 fi 2304 AC_DEFINE([HAVE_SIG_KEY_HASH], 1, [Define if signing binary checksum available.]) 2305 AC_DEFINE_UNQUOTED([SIG_KEY_HASH], _("${withval}"), [Define as the signify public key checksum.] ) 2306 fi 2307 ] 2308 ) 2309 2224 2310 2225 2311 AC_ARG_WITH(gpg, 2226 2312 [ --with-gpg=PATH use GnuPG to verify database/config [[no]]], 2227 2313 [ 2314 if test "x${mysignify}" != "x"; then 2315 AC_MSG_ERROR([--with-gpg: already using --with-signify]) 2316 fi 2228 2317 if test "x${withval}" != "xno"; then 2229 2318 if test "x${cross_compiling}" = xyes; then … … 2284 2373 fi 2285 2374 fi 2375 AC_DEFINE([WITH_SIG], 1, [Define if signature checking is supported.]) 2286 2376 AC_DEFINE(WITH_GPG) 2287 AC_DEFINE_UNQUOTED( DEFAULT_GPG_PATH, _("${mygpg}"))2377 AC_DEFINE_UNQUOTED([DEFAULT_SIG_PATH], _("${mygpg}"), [Define as path to signing binary]) 2288 2378 AC_SUBST(mygpg) 2289 2379 fi … … 2312 2402 ) 2313 2403 2314 dnl AC_ARG_WITH(pgp,2315 dnl [ --with-pgp=PATH Use PGP to verify database/config (no).],2316 dnl [myppg="$withval"2317 dnl AC_DEFINE(WITH_PGP)2318 dnl AC_DEFINE_UNQUOTED(DEFAULT_PGP_PATH, _("${myppg}") )2319 dnl ])2320 2321 2404 AC_ARG_WITH(checksum, 2322 [ --with-checksum=CHKSUM compile in gpg/pgp checksum[[yes]]],2405 [ --with-checksum=CHKSUM compile in checksum of signing binary (e.g. gpg) [[yes]]], 2323 2406 [ 2324 2407 if test "x${withval}" != "xno"; then … … 2326 2409 if test "x${mychk}" != "x"; then 2327 2410 if test "x${mychk}" != "x${withval}"; then 2328 AC_MSG_WARN([--with-checksum: possible gpgCHKSUM problem])2411 AC_MSG_WARN([--with-checksum: possible signing binary CHKSUM problem]) 2329 2412 AC_MSG_WARN([--with-checksum: CHKSUM=${withval}]) 2330 2413 AC_MSG_WARN([--with-checksum: autodetected=${mychk}]) … … 2334 2417 else 2335 2418 if test "x${mychk}" = "x"; then 2336 AC_MSG_ERROR([Option --with-checksum=CHKSUM: checksum CHKSUM of the gpg binary not specified.])2419 AC_MSG_ERROR([Option --with-checksum=CHKSUM: checksum CHKSUM of the signing binary not specified.]) 2337 2420 fi 2338 2421 fi 2339 AC_DEFINE( HAVE_GPG_CHECKSUM)2340 AC_DEFINE_UNQUOTED( GPG_HASH, _("${mychk}"))2341 echo "${mychk}" | sed 's,.*:,,g' | sed 's, ,,g' | sed 's,\(.\),\1:,g' | awk '{ split($0, arr, ":"); m = length($1)/2; print "#ifndef CHKSUM_H"; print "#define CHKSUM_H"; print "char gpgchk[50];"; for (i=1; i <= m; i++) printf "gpgchk[%d] = %c%s%c;\n", i-1, 39, arr[i], 39; printf "gpgchk[48] = %c%c0%c;\n", 39, 92, 39; print "#endif"; }' > sh_gpg_chksum.h2422 AC_DEFINE([HAVE_SIG_CHECKSUM], 1, [Define if signing binary checksum available.]) 2423 AC_DEFINE_UNQUOTED([SIG_HASH], _("${mychk}"), [Define as the signing binary TIGER192 checksum.] ) 2424 echo "${mychk}" | sed 's,.*:,,g' | sed 's, ,,g' | sed 's,\(.\),\1:,g' | awk '{ split($0, arr, ":"); m = length($1)/2; print "#ifndef CHKSUM_H"; print "#define CHKSUM_H"; print "char sigchk[50];"; for (i=1; i <= m; i++) printf "sigchk[%d] = %c%s%c;\n", i-1, 39, arr[i], 39; printf "sigchk[48] = %c%c0%c;\n", 39, 92, 39; print "#endif"; }' > sh_sig_chksum.h 2342 2425 fi 2343 2426 ], 2344 2427 [ 2345 if test "x${mygpg}" != "x"; then 2428 if test "x${mygpg}" != "x" || test "x${mysignify}" != "x" 2429 then 2346 2430 if test "x${mychk}" != "x"; then 2347 AC_DEFINE(HAVE_GPG_CHECKSUM)2348 AC_DEFINE_UNQUOTED( GPG_HASH, _("${mychk}"))2349 echo "${mychk}" | sed 's,.*:,,g' | sed 's, ,,g' | sed 's,\(.\),\1:,g' | awk '{ split($0, arr, ":"); m = length($1)/2; print "#ifndef CHKSUM_H"; print "#define CHKSUM_H"; print "char gpgchk[50];"; for (i=1; i <= m; i++) printf "gpgchk[%d] = %c%s%c;\n", i-1, 39, arr[i], 39; printf "gpgchk[48] = %c%c0%c;\n", 39, 92, 39; print "#endif"; }' > sh_gpg_chksum.h2431 AC_DEFINE([HAVE_SIG_CHECKSUM], 1, [Define if signing binary checksum available.]) 2432 AC_DEFINE_UNQUOTED([SIG_HASH], _("${mychk}"), [Define as the signing binary TIGER192 checksum.] ) 2433 echo "${mychk}" | sed 's,.*:,,g' | sed 's, ,,g' | sed 's,\(.\),\1:,g' | awk '{ split($0, arr, ":"); m = length($1)/2; print "#ifndef CHKSUM_H"; print "#define CHKSUM_H"; print "char sigchk[50];"; for (i=1; i <= m; i++) printf "sigchk[%d] = %c%s%c;\n", i-1, 39, arr[i], 39; printf "sigchk[48] = %c%c0%c;\n", 39, 92, 39; print "#endif"; }' > sh_sig_chksum.h 2350 2434 fi 2351 2435 fi … … 2710 2794 scripts/samhain.ebuild 2711 2795 scripts/samhain.ebuild-light 2712 scripts/samhainadmin.pl 2796 scripts/samhainadmin-gpg.pl 2797 scripts/samhainadmin-sig.pl 2713 2798 scripts/yuleadmin.pl 2714 2799 scripts/check_samhain.pl … … 2718 2803 echo timestamp > stamp-h 2719 2804 chmod +x samhain-install.sh 2720 chmod +x scripts/samhainadmin.pl 2805 chmod +x scripts/samhainadmin-gpg.pl 2806 chmod +x scripts/samhainadmin-sig.pl 2721 2807 chmod +x scripts/yuleadmin.pl 2722 2808 chmod +x scripts/check_samhain.pl … … 2725 2811 2726 2812 chmod +x deploy.sh 2813 2814 if test "x${mysignify}" != x 2815 then 2816 cp -a scripts/samhainadmin-sig.pl scripts/samhainadmin.pl 2817 fi 2818 if test "x${mygpg}" != x 2819 then 2820 cp -a scripts/samhainadmin-gpg.pl scripts/samhainadmin.pl 2821 fi 2822 2727 2823 2728 2824 if test "x${cross_compiling}" = xyes -
trunk/depend.dep
r546 r550 1 1 2 2 # DO NOT DELETE THIS LINE 3 samhain.o: $(srcsrc)/samhain.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_getopt.h $(srcinc)/sh_readconf.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_restrict.h $(srcinc)/sh_nmail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_mem.h $(srcinc)/sh_xfer.h $(srcinc)/sh_tools.h $(srcinc)/sh_hash.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h $(srcinc)/sh_ignore.h $(srcinc)/sh_prelink.h $(srcinc)/sh_sem.h sh_MK.h $(srcinc)/sh_schedule.h3 samhain.o: $(srcsrc)/samhain.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_getopt.h $(srcinc)/sh_readconf.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_restrict.h $(srcinc)/sh_nmail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_sig.h $(srcinc)/sh_mem.h $(srcinc)/sh_xfer.h $(srcinc)/sh_tools.h $(srcinc)/sh_hash.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h $(srcinc)/sh_ignore.h $(srcinc)/sh_prelink.h $(srcinc)/sh_sem.h sh_MK.h $(srcinc)/sh_schedule.h 4 4 sh_unix.o: $(srcsrc)/sh_unix.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_hash.h $(srcinc)/sh_tools.h $(srcinc)/sh_restrict.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_tiger.h $(srcinc)/sh_prelink.h $(srcinc)/sh_pthread.h $(srcinc)/sh_sem.h $(srcinc)/sh_static.h $(srcinc)/sh_prelude.h $(srcinc)/zAVLTree.h $(srcinc)/sh_subuid.h $(srcinc)/sh_ignore.h 5 5 sh_utils.o: $(srcsrc)/sh_utils.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_entropy.h $(srcinc)/sh_pthread.h … … 7 7 sh_files.o: $(srcsrc)/sh_files.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_hash.h $(srcinc)/sh_ignore.h $(srcinc)/sh_inotify.h $(srcinc)/zAVLTree.h $(srcinc)/sh_dbIO.h $(srcinc)/CuTest.h 8 8 sh_getopt.o: $(srcsrc)/sh_getopt.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_getopt.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_utils.h $(srcinc)/sh_mail.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbCheck.h $(srcinc)/sh_dbCreate.h $(srcinc)/sh_sem.h $(srcinc)/sh_extern.h 9 sh_readconf.o: $(srcsrc)/sh_readconf.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_xfer.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ignore.h $(srcinc)/sh_database.h $(srcinc)/sh_mail.h $(srcinc)/sh_modules.h $(srcinc)/sh_nmail.h $(srcinc)/sh_prelink.h $(srcinc)/sh_prelude.h $(srcinc)/sh_tiger.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/sh_socket.h9 sh_readconf.o: $(srcsrc)/sh_readconf.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_xfer.h $(srcinc)/sh_sig.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ignore.h $(srcinc)/sh_database.h $(srcinc)/sh_mail.h $(srcinc)/sh_modules.h $(srcinc)/sh_nmail.h $(srcinc)/sh_prelink.h $(srcinc)/sh_prelude.h $(srcinc)/sh_tiger.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/sh_socket.h 10 10 sh_tiger0.o: $(srcsrc)/sh_tiger0.c Makefile config_xor.h $(srcinc)/sh_tiger.h $(srcinc)/sh_unix.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_pthread.h $(srcinc)/sh_string.h $(srcinc)/sh_checksum.h 11 11 sh_tiger1.o: $(srcsrc)/sh_tiger1.c Makefile config_xor.h … … 13 13 sh_tiger1_64.o: $(srcsrc)/sh_tiger1_64.c Makefile config_xor.h 14 14 sh_tiger2_64.o: $(srcsrc)/sh_tiger2_64.c Makefile config_xor.h 15 sh_hash.o: $(srcsrc)/sh_hash.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_hash.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h $(srcinc)/sh_pthread.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_checksum.h15 sh_hash.o: $(srcsrc)/sh_hash.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_hash.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_sig.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h $(srcinc)/sh_pthread.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_checksum.h 16 16 sh_mail.o: $(srcsrc)/sh_mail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mail.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_pthread.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/sh_nmail.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_static.h $(srcinc)/sh_tools.h 17 17 sh_mem.o: $(srcsrc)/sh_mem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_pthread.h … … 92 92 sh_checksum.o: $(srcsrc)/sh_checksum.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_checksum.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h 93 93 sh_guid.o: $(srcsrc)/sh_guid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h 94 sh_dbIO.o: $(srcsrc)/sh_dbIO.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ gpg.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h94 sh_dbIO.o: $(srcsrc)/sh_dbIO.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_sig.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h 95 95 sh_dbCheck.o: $(srcsrc)/sh_dbCheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h 96 96 sh_dbCreate.o: $(srcsrc)/sh_dbCreate.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h $(srcinc)/sh_guid.h … … 101 101 sh_sem.o: $(srcsrc)/sh_sem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_sem.h $(srcinc)/sh_error_min.h 102 102 sh_subuid.o: $(srcsrc)/sh_subuid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h 103 sh_sig.o: $(srcsrc)/sh_sig.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_sig.h -
trunk/depend.sum
r546 r550 1 3 0245615711 3600310821 -
trunk/docs/Changelog
r549 r550 1 4.4.0: 2 * support for OpenBSD signify as alternative to GnuPG 3 1 4 4.3.3: 2 5 * fix broken 'make deb' makefile target 3 6 * eliminate obsolete 'sstrip' utility 4 * systemd support 7 * systemd support 5 8 * fix broken rpm specfile (patch by Franky Van L.) 6 9 * fix broken mysql init script … … 52 55 * fix build issue with musl libc (report & patch by A. Kuster) 53 56 * fix case sensitivity (tcp vs TCP, udp vs UDP) in portcheck 54 directives (reported by A nton H.)57 directives (reported by A. Hofland) 55 58 * fix documentation typo ('make deploy-install' -> 56 59 'make install-deploy', reported by Ben) … … 72 75 as uint16, e.g. FreeBSD). 73 76 * add portcheck option 'PortCheckDevice = device' to monitor a 74 device regardless of address assigned to it (patch by A nton H., plus77 device regardless of address assigned to it (patch by A. Hofland, plus 75 78 some additions) 76 79 * fix case sensitivity of severity/class options (issue raised by 77 A nton H.).80 A. Hofland). 78 81 * clarify restrictions for ProcessCheckPSArg (user manual) 79 82 -
trunk/include/sh_calls.h
r481 r550 76 76 long int retry_aud_dup2 (const char * file, int line, int fd, int fd2); 77 77 long int retry_aud_execve (const char * file, int line, 78 const char *dateiname, char * argv[],79 char * envp[]);78 const char *dateiname, char *const argv[], 79 char *const envp[]); 80 80 long int retry_aud_dup (const char * file, int line, 81 81 int fd); -
trunk/samhain-install.sh.in
r548 r550 1339 1339 1340 1340 GPGPATH=@mygpg@ 1341 SIGNIFY_PATH=@mysignify@ 1341 1342 TARGETKEYID=@mykeyid@ 1342 1343 KEYTAG=@mykeytag@ … … 1416 1417 cp ${RCFILE} samhainrc.pre 1417 1418 fi 1419 elif test x"${SIGNIFY_PATH}" != x 1420 then 1421 echo 1422 echo "You need to sign the config file now" 1423 echo 1424 test -z "$verbose" || echo " ${SIGNIFY_PATH} -Se -s ~/.signify/samhain.sec -m $RCFILE" 1425 if test x"${NTEST}" = "x-DSH_WITH_SERVER" 1426 then 1427 myident_uid=`(cat /etc/passwd; ypcat passwd) 2>/dev/null |\ 1428 grep "^${samhain}:" | awk -F: '{ print $3; }'` 1429 if test x"${myident_uid}" != x 1430 then 1431 DOT_SIGNIFY=`eval echo ~${samhain}/.signify` 1432 test -z "$verbose" || echo " using home directory ${DOT_SIGNIFY}" 1433 ${SIGNIFY_PATH} -Se -s ${DOT_GNUPG}/samhain.sec $RCFILE 1434 else 1435 ${SIGNIFY_PATH} -Se -s ~/.signify/samhain.sec -m $RCFILE 1436 fi 1437 else 1438 ${SIGNIFY_PATH} -Se -s ~/.signify/samhain.sec -m $RCFILE 1439 fi 1440 1441 if test -f ${RCFILE}.sig 1442 then 1443 test -z "$verbose" || echo " mv -f ${RCFILE}.sig samhainrc.pre" 1444 mv -f ${RCFILE}.sig samhainrc.pre 1445 else 1446 echo "**********************************************************" 1447 echo 1448 echo "${0}: ERROR: cannot find signed file ${RCFILE}.sig" 1449 echo 1450 echo " --- You need to sign the configuration file ---" 1451 echo 1452 echo "**********************************************************" 1453 cp ${RCFILE} samhainrc.pre 1454 fi 1418 1455 else 1419 1456 test -z "$verbose" || echo " cp $RCFILE samhainrc.pre" -
trunk/scripts/yuleadmin.pl.in
r121 r550 38 38 my $base = basename($0); 39 39 40 #my $cfgfile = "yulerc";41 #my $yule = "./yule";42 #my $gpg = "/usr/bin/gpg";43 44 40 my $cfgfile = "@myconffile@"; 45 41 my $yule = "@sbindir@/@install_name@"; 46 my $gpg = "@mygpg@";47 42 48 43 $cfgfile =~ s/^REQ_FROM_SERVER//; 49 50 $gpg = "gpg" if ($gpg eq "");51 44 52 45 sub usage() { -
trunk/src/depend-gen.c
r383 r550 245 245 * 246 246 **************************************************/ 247 if (0 == strcmp(p, "sh_ gpg_chksum.h") ||247 if (0 == strcmp(p, "sh_sig_chksum.h") || 248 248 0 == strcmp(p, "sh_gpg_fp.h")) 249 249 { -
trunk/src/samhain.c
r541 r550 77 77 78 78 #include "sh_tiger.h" 79 #include "sh_ gpg.h"79 #include "sh_sig.h" 80 80 #include "sh_mem.h" 81 81 #include "sh_xfer.h" … … 1907 1907 #if defined(SH_WITH_SERVER) && !defined(SH_WITH_CLIENT) 1908 1908 1909 #if (defined(WITH_GPG) || defined(WITH_PGP))1909 #if defined(WITH_GPG) 1910 1910 /* log startup */ 1911 sh_ gpg_log_startup ();1911 sh_sig_log_startup (); 1912 1912 #else 1913 1913 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H, … … 1930 1930 if (sh.flag.checkSum == SH_CHECK_CHECK) 1931 1931 { 1932 #if (defined(WITH_GPG) || defined(WITH_PGP))1932 #if defined(WITH_GPG) 1933 1933 /* log startup */ 1934 sh_ gpg_log_startup ();1934 sh_sig_log_startup (); 1935 1935 #else 1936 1936 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_2H, … … 1942 1942 else 1943 1943 { 1944 #if (defined(WITH_GPG) || defined(WITH_PGP))1944 #if defined(WITH_GPG) 1945 1945 /* log startup */ 1946 sh_ gpg_log_startup ();1946 sh_sig_log_startup (); 1947 1947 #else 1948 1948 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H, -
trunk/src/sh_calls.c
r544 r550 533 533 534 534 long int retry_aud_execve (const char * file, int line, 535 const char *dateiname, char * argv[],536 char * envp[])535 const char *dateiname, char *const argv[], 536 char *const envp[]) 537 537 { 538 538 uid_t a = geteuid(); -
trunk/src/sh_dbIO.c
r543 r550 31 31 #include "sh_hash.h" 32 32 #include "sh_dbIO.h" 33 #include "sh_ gpg.h"33 #include "sh_sig.h" 34 34 #include "sh_tiger.h" 35 35 #include "sh_xfer.h" … … 852 852 static SL_TICKET verify_data (SL_TICKET fd) 853 853 { 854 #if defined(WITH_ GPG) || defined(WITH_PGP)854 #if defined(WITH_SIG) 855 855 SL_TICKET fdTmp; 856 856 857 857 /* extract the data and copy to temporary file 858 858 */ 859 fdTmp = sh_ gpg_extract_signed(fd);859 fdTmp = sh_sig_extract_signed(fd); 860 860 861 861 if (sig_termfast == 1) /* SIGTERM */ … … 871 871 /* Validate signature of open file. 872 872 */ 873 if (0 != sh_ gpg_check_sign(fd, SIG_DATA))873 if (0 != sh_sig_check_signature (fd, SIG_DATA)) 874 874 { 875 875 sl_close(fd); … … 877 877 } 878 878 sl_rewind (fd); 879 880 fdTmp = sh_sig_extract_signed_data(fd); 881 sl_close(fd); 882 fd = fdTmp; 879 883 #endif 880 884 -
trunk/src/sh_getopt.c
r543 r550 481 481 #ifdef WITH_GPG 482 482 if (num > 0) fputc ('\n', stdout); 483 printf (_(" GnuPG signatures (%s)"), DEFAULT_ GPG_PATH); ++num;484 #ifdef HAVE_ GPG_CHECKSUM485 if (num > 0) fputc ('\n', stdout); 486 printf (_(" -- GnuPG checksum: %s"), GPG_HASH); ++num;483 printf (_(" GnuPG signatures (%s)"), DEFAULT_SIG_PATH); ++num; 484 #ifdef HAVE_SIG_CHECKSUM 485 if (num > 0) fputc ('\n', stdout); 486 printf (_(" -- GnuPG checksum: %s"), SIG_HASH); ++num; 487 487 #endif 488 488 #ifdef USE_FINGERPRINT -
trunk/src/sh_hash.c
r534 r550 54 54 #include "sh_error.h" 55 55 #include "sh_tiger.h" 56 #include "sh_ gpg.h"56 #include "sh_sig.h" 57 57 #include "sh_unix.h" 58 58 #include "sh_files.h" -
trunk/src/sh_readconf.c
r514 r550 34 34 #include "sh_files.h" 35 35 #include "sh_xfer.h" 36 #include "sh_ gpg.h"36 #include "sh_sig.h" 37 37 #include "sh_hash.h" 38 38 #include "sh_dbIO.h" … … 352 352 SL_TICKET fdTmp = -1; 353 353 #endif 354 #if defined(WITH_ GPG) || defined(WITH_PGP)355 SL_TICKET fd Gpg= -1;354 #if defined(WITH_SIG) 355 SL_TICKET fdSIG = -1; 356 356 #endif 357 357 char * tmp; … … 369 369 char local_flag = 'R'; 370 370 371 #if defined(WITH_ GPG) || defined(WITH_PGP)371 #if defined(WITH_SIG) 372 372 int signed_content = S_FALSE; 373 373 int true_content = S_FALSE; … … 470 470 sl_write_line(fdTmp, line_in, sl_strlen(line_in)); 471 471 } 472 #if defined(WITH_ GPG) || defined(WITH_PGP)473 if ( 0 == sl_strncmp(line_in, _("-----END PGP SIGNATURE-----"), 25))472 #if defined(WITH_SIG) 473 if (S_TRUE == sh_sig_data_end(line_in)) 474 474 break; 475 475 #else … … 485 485 #endif 486 486 487 #if defined(WITH_ GPG) || defined(WITH_PGP)487 #if defined(WITH_SIG) 488 488 489 489 /* extract the data and copy to temporary file 490 490 */ 491 fd Gpg = sh_gpg_extract_signed(fd);491 fdSIG = sh_sig_extract_signed(fd); 492 492 493 493 sl_close(fd); 494 fd = fd Gpg;494 fd = fdSIG; 495 495 496 496 /* Validate signature of open file. 497 497 */ 498 if (0 != sh_ gpg_check_sign(fd, SIG_CONF))498 if (0 != sh_sig_check_signature (fd, SIG_CONF)) 499 499 { 500 500 SH_FREE(line_in); … … 520 520 /* Sun May 27 18:40:05 CEST 2001 521 521 */ 522 #if defined(WITH_ GPG) || defined(WITH_PGP)522 #if defined(WITH_SIG) 523 523 if (signed_content == S_FALSE) 524 524 { 525 if ( 0 == sl_strcmp(line, _("-----BEGIN PGP SIGNED MESSAGE-----")))525 if (S_TRUE == sh_sig_msg_start(line)) 526 526 signed_content = S_TRUE; 527 527 else 528 528 continue; 529 529 } 530 else if (true_content == S_FALSE) 531 { 532 if (line[0] == '\n') 533 true_content = S_TRUE; 534 else 535 continue; 536 } 537 else if (signed_content == S_TRUE) 530 else /* if (signed_content == S_TRUE) */ 538 531 { 539 if ( 0 == sl_strcmp(line, _("-----BEGIN PGP SIGNATURE-----")))532 if (S_TRUE == sh_sig_msg_end(line)) 540 533 break; 541 else if ( 0 == sl_strcmp(line, _("-----BEGIN PGP SIGNED MESSAGE-----")))534 else if (S_TRUE == sh_sig_msg_start(line)) 542 535 { 543 536 sh_error_handle((-1), FIL__, __LINE__, 0, MSG_E_SUBGEN, … … 551 544 aud_exit (FIL__, __LINE__,EXIT_FAILURE); 552 545 } 546 } 547 548 if (true_content == S_FALSE) /* continue if in header */ 549 { 550 if (S_TRUE == sh_sig_msg_startdata(line)) 551 true_content = S_TRUE; 552 else 553 continue; 553 554 } 554 555 #endif -
trunk/src/sh_tools.c
r541 r550 2075 2075 #endif 2076 2076 2077 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) || defined(SH_STEALTH) || defined(WITH_ GPG) || defined(WITH_PGP)2077 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) || defined(SH_STEALTH) || defined(WITH_SIG) 2078 2078 2079 2079 /* --------- secure temporary file ------------ */ -
trunk/src/sh_unix.c
r541 r550 5407 5407 { 5408 5408 int add_off = 0, llen; 5409 unsigned long bread; 5409 5410 static unsigned long off_data = 0; 5410 5411 static unsigned long max_data = 0; … … 5454 5455 /* --- Read one line. --- 5455 5456 */ 5456 add_off = hideout_hex_block(fd, (unsigned char *) str, len, &bytes_read); 5457 off_data += add_off; 5457 add_off = hideout_hex_block(fd, (unsigned char *) str, len, &bread); 5458 if (add_off > 0) 5459 off_data += add_off; 5460 bytes_read += bread; 5461 5462 if (bread == 0 || add_off <= 0) /* EOF */ 5463 str[0] = '\0'; 5458 5464 5459 5465 llen = sl_strlen(str); … … 5477 5483 ASSERT_RET((len > 1), _("len > 1"), (0)); 5478 5484 5485 str[0] = '\0'; 5486 *bytes_read = 0; 5479 5487 --len; 5480 5488 … … 5494 5502 do { 5495 5503 do { 5504 errno = 0; 5496 5505 num = sl_read (fd, &c, 1); 5497 5506 } while (num == 0 && errno == EINTR); 5498 5507 if (num > 0) 5499 5508 ++here; 5500 else if (num == 0) 5501 SL_RETURN((0), _("hideout_hex_block")); 5502 else 5509 else if (num == 0) { 5503 5510 SL_RETURN((-1), _("hideout_hex_block")); 5511 } 5512 else { 5513 SL_RETURN((-1), _("hideout_hex_block")); 5514 } 5504 5515 } while (c == '\n' || c == '\t' || c == '\r' || 5505 5516 c == ' '); … … 5523 5534 if (i != 0) 5524 5535 str[i] = '\0'; 5536 else if (str[0] == '\n') 5537 str[i+1] = '\0'; /* keep newline and terminate */ 5525 5538 else 5526 str[ i+1] = '\0'; /* keep newline and terminate */5539 str[0] = '\0'; 5527 5540 retval += here; 5528 5541 *bytes_read += (bread/8); -
trunk/test/test.sh
r481 r550 154 154 echo " ${S}test.sh 12${E} -- CL create DeltaDB" 155 155 echo " ${S}test.sh 13${E} -- CL create/verify partial DB" 156 echo " ${S}test.sh 14${E} -- Signify signed files" 156 157 157 158 echo " ${S}test.sh 20${E} -- Test c/s init/check (testrc_2.in)" … … 171 172 echo " (5) testext.sh (6) testtimesrv.sh (7) testrun_1b.sh (8) testrun_1c.sh" 172 173 echo " (9) testrun_1d.sh (10) testrun_1e.sh (11) testrun_1f.sh (12) testrun_1g.sh" 173 echo " (13) testrun_1h.sh "174 echo " (13) testrun_1h.sh (14) testrun_1i.sh" 174 175 echo " (20) testrun_2.sh (21) testrun_2a.sh (22) testrun_2b.sh (23) testrun_2c.sh" 175 176 echo " (24) testrun_2d.sh (25) testrun_2e.sh (26) testrun_2f.sh (27) testrun_2g.sh" … … 657 658 exit $? 658 659 fi 660 if test x$1 = x14; then 661 . ${SCRIPTDIR}/testrun_1i.sh 662 testrun1i 663 print_summary 664 exit $? 665 fi 659 666 if test x$1 = x20; then 660 667 . ${SCRIPTDIR}/testrun_2.sh … … 736 743 . ${SCRIPTDIR}/testrun_1h.sh 737 744 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 745 . ${SCRIPTDIR}/testrun_1i.sh 746 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 738 747 . ${SCRIPTDIR}/testrun_2.sh 739 748 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null … … 809 818 MAXTEST=${TEST_MAX}; export MAXTEST 810 819 testrun1h 820 # 821 . ${SCRIPTDIR}/testrun_1i.sh 822 MAXTEST=${TEST_MAX}; export MAXTEST 823 testrun1i 811 824 # 812 825 . ${SCRIPTDIR}/testrun_2.sh
Note:
See TracChangeset
for help on using the changeset viewer.