Commit Graph

154 Commits

Author SHA1 Message Date
aCaB
3daf95ae9c typo
git-svn: trunk@4990
2009-03-29 11:48:09 +00:00
aCaB
52520dd43e bb#1517
git-svn: trunk@4989
2009-03-29 11:41:14 +00:00
aCaB
57aa0269a4 add SkipAuthenticated config option
git-svn: trunk@4986
2009-03-24 13:26:31 +00:00
aCaB
f91853e837 typo
git-svn: trunk@4970
2009-03-22 16:10:40 +00:00
aCaB
2a49102bd3 add option LogInfected for clamav-milter
git-svn: trunk@4964
2009-03-19 18:47:01 +00:00
Tomasz Kojm
00981f7552 minor doc fixes
git-svn: trunk@4961
2009-03-16 18:47:34 +00:00
Tomasz Kojm
4b63a916af update docs
git-svn: trunk@4958
2009-03-16 17:56:03 +00:00
Török Edvin
025243f6e1 fix uninitialized value warning.
git-svn: trunk@4921
2009-03-10 14:14:36 +00:00
Tomasz Kojm
03527bee64 libclamav: count .pdb entries as signatures
freshclam, sigtool: add support for safebrowsing.cvd (bb#1056)


git-svn: trunk@4901
2009-03-05 19:09:54 +00:00
Török Edvin
2480ce633a CMSG_SPACE/CMSG_LEN compat macros for Solaris 8 (bb #1439).
git-svn: trunk@4897
2009-03-04 15:51:28 +00:00
Tomasz Kojm
745259c223 shared/cdiff.c: add missing gzclose() (bb#1450)
git-svn: trunk@4894
2009-03-04 08:11:44 +00:00
aCaB
f23454aa5c b0rked logic in actsetup
git-svn: trunk@4893
2009-03-04 01:58:56 +00:00
aCaB
35611401f8 bb#1450
git-svn: trunk@4892
2009-03-04 01:01:49 +00:00
aCaB
943b2bf0f9 misc clamav milter
git-svn: trunk@4891
2009-03-03 19:42:33 +00:00
Tomasz Kojm
d2ddc54fa7 shared/optparser.c: fix handling of options which are enabled by default (bb#1442)
git-svn: trunk@4881
2009-03-02 16:08:21 +00:00
Török Edvin
43ea567582 Fix colors when terminal background color is not black.
(bb #1438, reported by Dennis Peterson <dennispe*inetnw.com>)

git-svn: trunk@4877
2009-03-01 10:15:32 +00:00
aCaB
532f0426cd check for in_addr_t (bb#1426)
git-svn: trunk@4871
2009-02-27 01:11:32 +00:00
aCaB
745960b02e unify default max stream sizes
git-svn: trunk@4861
2009-02-25 16:44:38 +00:00
Török Edvin
8db0a3463d clamdtop moved to toplevel + manpage.
git-svn: trunk@4846
2009-02-23 12:35:34 +00:00
Tomasz Kojm
44fc3ff574 shared/cdiff.c: scripts can now control size of input buffer (bb#1395)
git-svn: trunk@4837
2009-02-19 11:56:27 +00:00
Török Edvin
4e46d65d39 use sha256 instead of md5 in phishcheck.
move sha256 to libclamav.
add more tests.

git-svn: trunk@4822
2009-02-18 14:54:16 +00:00
Török Edvin
e114b109c4 fix use of uninitialized value.
add test for STREAM.
fix missing closing pragmas.

git-svn: trunk@4810
2009-02-17 17:35:31 +00:00
Török Edvin
fb6fe4f5d1 Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes.
Fix leak reported by valgrind.

git-svn: trunk@4806
2009-02-17 15:59:36 +00:00
Török Edvin
af309677da sendtimeout
git-svn: trunk@4804
2009-02-17 15:59:26 +00:00
Török Edvin
5f6edb222c ReadTimeout handling, and introduce CommandReadTimeout.
git-svn: trunk@4803
2009-02-17 15:59:21 +00:00
aCaB
408be01ffe add --stream
git-svn: trunk@4801
2009-02-17 00:08:17 +00:00
Török Edvin
0378a9ab77 introduce timeouts for send(), this is needed for IDSESSION to work reliably,
since a buggy client implementation may get stuck in send(), and then clamd
gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and
(low) timeouts on send.
Add more tests for clamd protocol, including a stress test for IDSESSION.

git-svn: trunk@4798
2009-02-16 18:27:08 +00:00
Tomasz Kojm
4367454d76 libclamav, sigtool: fix handling of long signatures (bb#1395)
git-svn: trunk@4795
2009-02-16 16:29:44 +00:00
Török Edvin
6870ebe176 mdprintf was also taking %f and %l, and they have different size than int.
Make the ARGLEN get the correct vaarg types, otherwise it was popping off the
stack an item of the wrong size!

git-svn: trunk@4784
2009-02-13 16:52:15 +00:00
Török Edvin
c5cfb0f96f add copyright header
git-svn: trunk@4782
2009-02-13 13:26:38 +00:00
Török Edvin
bfd89d7c84 fix Solaris build
git-svn: trunk@4776
2009-02-13 11:05:14 +00:00
Tomasz Kojm
086eab5c26 update old copyright headers
git-svn: trunk@4775
2009-02-13 10:55:45 +00:00
Török Edvin
40331c57f0 add missing include
git-svn: trunk@4772
2009-02-12 21:29:42 +00:00
Török Edvin
7a997ac950 move TCP socket creation to shared/
git-svn: trunk@4769
2009-02-12 21:14:51 +00:00
Török Edvin
08c9ac85c2 fix
git-svn: trunk@4767
2009-02-12 19:18:35 +00:00
Török Edvin
2a6bd14bc2 make prototype compatible with that declared in system headers. (bb #1383)
git-svn: trunk@4766
2009-02-12 19:06:29 +00:00
aCaB
ecbbc8c452 fix spam
git-svn: trunk@4762
2009-02-12 17:54:15 +00:00
aCaB
7609af89f2 merge from clamd-proto branch:
handle multiple %v parameters
    introduce poll_fds that also does the read into a buffer
    introduce thrmgr_group* commands for keeping track of groups of commands
    (multiscan, IDSESSION)
    introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands
    are processed from both queues in a 4:1 ratio to avoid starvation.
    unify reply code: conn_reply*
    unify scanner code into scan_callback that is called from cli_ftw
    multiscan doesn't need stat() now if readdir() provides dt_type
    redesign clamd main loop: there is now an accept thread, and a
    recv()/dispatch thread, +MaxThreads worker (scanner) threads.
    introduce limiting on commands when worker threads are contended.
    introduce IDSESSION, a replacement for the old SESSION command, that allows
    asyncronous (scan) commands and scan replies
    introduce INSTREAM that allows sending the data to scan on same connection
    (vs STREAM that requires another port)
    introduce zCOMMANDS

git-svn: trunk@4756
2009-02-12 17:11:27 +00:00
Török Edvin
949c6fe54f merge from clamd-proto branch:
handle multiple %v parameters
    introduce poll_fds that also does the read into a buffer
    introduce thrmgr_group* commands for keeping track of groups of commands
    (multiscan, IDSESSION)
    introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands
    are processed from both queues in a 4:1 ratio to avoid starvation.
    unify reply code: conn_reply*
    unify scanner code into scan_callback that is called from cli_ftw
    multiscan doesn't need stat() now if readdir() provides dt_type
    redesign clamd main loop: there is now an accept thread, and a
    recv()/dispatch thread, +MaxThreads worker (scanner) threads.
    introduce limiting on commands when worker threads are contended.
    introduce IDSESSION, a replacement for the old SESSION command, that allows
    asyncronous (scan) commands and scan replies
    introduce INSTREAM that allows sending the data to scan on same connection
    (vs STREAM that requires another port)
    introduce zCOMMANDS

git-svn: trunk@4755
2009-02-12 16:51:09 +00:00
aCaB
ee6702abf5 unify actions
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4751 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-12 15:14:12 +00:00
Török Edvin
e001f2838e Use 2 queues: one for single, one for bulk messages.
Also introduce MaxQueue, this will prevent clamdscan from flooding
clamd with too many FILDES requests.

git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4710 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 21:06:59 +00:00
Tomasz Kojm
86c97e7e26 shared/optparser.c, clamconf: handle clamav-milter.conf in --generate-config
git-svn: trunk@4687
2009-02-06 14:43:30 +00:00
Tomasz Kojm
afff80efb9 libclamav, shared: minor cleanups; fix handling of long file names (bb#1349)
git-svn: trunk@4670
2009-02-03 18:47:18 +00:00
Tomasz Kojm
32390e3161 shared/optparser.c: improve handling of short switches (bb#1374)
git-svn: trunk@4665
2009-01-30 07:49:04 +00:00
Tomasz Kojm
1d8a56d491 shared/optparser.c, clamconf/clamconf.c: add --generate-config
git-svn: trunk@4664
2009-01-29 19:03:59 +00:00
Tomasz Kojm
47d40feb7a libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
git-svn: trunk@4650
2009-01-26 19:47:02 +00:00
aCaB
056198f16d shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4632 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-22 17:29:53 +00:00
Tomasz Kojm
a128eb8063 clamconf: handle --version/-V
git-svn: trunk@4630
2009-01-22 14:38:16 +00:00
Tomasz Kojm
0d06ef19f8 shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
git-svn: trunk@4628
2009-01-22 14:19:47 +00:00
aCaB
59c2353664 shared/optparser.c: improve cmdline args handling
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4627 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-20 17:46:58 +00:00