Török Edvin
025243f6e1
fix uninitialized value warning.
...
git-svn: trunk@4921
16 years ago
Tomasz Kojm
03527bee64
libclamav: count .pdb entries as signatures
...
freshclam, sigtool: add support for safebrowsing.cvd (bb#1056)
git-svn: trunk@4901
16 years ago
Török Edvin
2480ce633a
CMSG_SPACE/CMSG_LEN compat macros for Solaris 8 (bb #1439 ).
...
git-svn: trunk@4897
16 years ago
Tomasz Kojm
745259c223
shared/cdiff.c: add missing gzclose() (bb#1450)
...
git-svn: trunk@4894
16 years ago
aCaB
f23454aa5c
b0rked logic in actsetup
...
git-svn: trunk@4893
16 years ago
aCaB
35611401f8
bb#1450
...
git-svn: trunk@4892
16 years ago
aCaB
943b2bf0f9
misc clamav milter
...
git-svn: trunk@4891
16 years ago
Tomasz Kojm
d2ddc54fa7
shared/optparser.c: fix handling of options which are enabled by default (bb#1442)
...
git-svn: trunk@4881
16 years ago
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
16 years ago
aCaB
532f0426cd
check for in_addr_t (bb#1426)
...
git-svn: trunk@4871
16 years ago
aCaB
745960b02e
unify default max stream sizes
...
git-svn: trunk@4861
16 years ago
Török Edvin
8db0a3463d
clamdtop moved to toplevel + manpage.
...
git-svn: trunk@4846
16 years ago
Tomasz Kojm
44fc3ff574
shared/cdiff.c: scripts can now control size of input buffer (bb#1395)
...
git-svn: trunk@4837
17 years ago
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
17 years ago
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
17 years ago
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
17 years ago
Török Edvin
af309677da
sendtimeout
...
git-svn: trunk@4804
17 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
17 years ago
aCaB
408be01ffe
add --stream
...
git-svn: trunk@4801
17 years ago
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
17 years ago
Tomasz Kojm
4367454d76
libclamav, sigtool: fix handling of long signatures (bb#1395)
...
git-svn: trunk@4795
17 years ago
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
17 years ago
Török Edvin
c5cfb0f96f
add copyright header
...
git-svn: trunk@4782
17 years ago
Török Edvin
bfd89d7c84
fix Solaris build
...
git-svn: trunk@4776
17 years ago
Tomasz Kojm
086eab5c26
update old copyright headers
...
git-svn: trunk@4775
17 years ago
Török Edvin
40331c57f0
add missing include
...
git-svn: trunk@4772
17 years ago
Török Edvin
7a997ac950
move TCP socket creation to shared/
...
git-svn: trunk@4769
17 years ago
Török Edvin
08c9ac85c2
fix
...
git-svn: trunk@4767
17 years ago
Török Edvin
2a6bd14bc2
make prototype compatible with that declared in system headers. (bb #1383 )
...
git-svn: trunk@4766
17 years ago
aCaB
ecbbc8c452
fix spam
...
git-svn: trunk@4762
17 years ago
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
17 years ago
aCaB
ee6702abf5
unify actions
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4751 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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
17 years ago
Tomasz Kojm
86c97e7e26
shared/optparser.c, clamconf: handle clamav-milter.conf in --generate-config
...
git-svn: trunk@4687
17 years ago
Tomasz Kojm
afff80efb9
libclamav, shared: minor cleanups; fix handling of long file names (bb#1349)
...
git-svn: trunk@4670
17 years ago
Tomasz Kojm
32390e3161
shared/optparser.c: improve handling of short switches (bb#1374)
...
git-svn: trunk@4665
17 years ago
Tomasz Kojm
1d8a56d491
shared/optparser.c, clamconf/clamconf.c: add --generate-config
...
git-svn: trunk@4664
17 years ago
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
17 years ago
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
17 years ago
Tomasz Kojm
a128eb8063
clamconf: handle --version/-V
...
git-svn: trunk@4630
17 years ago
Tomasz Kojm
0d06ef19f8
shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
...
git-svn: trunk@4628
17 years ago
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
17 years ago
Tomasz Kojm
19c17946cc
shared/optparser.c: improve cmdline args handling
...
git-svn: trunk@4625
17 years ago
Tomasz Kojm
e247b45cc6
shared/misc.c: re-enable freshdbdir()
...
git-svn: trunk@4590
17 years ago
Tomasz Kojm
b61db429fc
shared, clamconf: drop old stuff; replace getopt.[ch] with my_getopt
...
git-svn: trunk@4589
17 years ago
Tomasz Kojm
278dc6b3d9
shared/optparser.c, clamav-milter: use the new option parser (bb#1215)
...
git-svn: trunk@4588
17 years ago
Tomasz Kojm
d6af38e75e
shared/optparser.c, sigtool: use the new option parser (bb#1215)
...
git-svn: trunk@4587
17 years ago
Tomasz Kojm
e8b54ef3fa
shared/optparser.c: fix typo (bb#1336)
...
git-svn: trunk@4584
17 years ago
Tomasz Kojm
8392ae8070
shared/optparser.c: cosmetics; add FLAG_REQUIRED
...
git-svn: trunk@4583
17 years ago
Tomasz Kojm
a68d5e2fb2
shared/optparser.c, clamdscan: use the new option parser (bb#1215)
...
git-svn: trunk@4581
17 years ago