Commit graph

42 commits

Author SHA1 Message Date
Shawn Webb
60d8d2c352 Move all the crypto API to clamav.h 2014-07-01 19:38:01 -04:00
Steven Morgan
944d7c8207 bb#10334 add #include chamav.h for Debian builds. 2014-05-19 15:36:51 -04:00
Shawn Webb
b2e7c931d0 Use OpenSSL for hashing. 2014-02-08 00:31:12 -05:00
Shawn Webb
d9b6b8c757 bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX 2013-09-25 16:23:10 -04:00
Shawn webb
c8b3a90cb0 Do not use colons in rotated log file names 2012-08-24 13:08:58 -04:00
Shawn webb
280bef6660 Fix for overflow of off_t 2012-08-24 11:15:41 -04:00
Shawn webb
e1c3ee76aa Force log rotation if LogFileMaxSize is non-zero 2012-08-23 16:33:45 -04:00
Shawn webb
ec039b6a49 Check if logg_fp is valid 2012-08-20 11:58:16 -04:00
Shawn webb
42ccf9c20e BB#5659 - 4.0.0.8955 Consumer - Created a 1GB+ Clamav.log by running continious full scans for 10 hours. Add LogRotate config variable. 2012-08-20 10:53:25 -04:00
Shawn webb
57c410e998 Fix buildbot 2012-08-09 14:59:15 -04:00
Shawn webb
037a7c51ab BB#5611 - allow build without libintl.h 2012-08-07 07:22:37 -04:00
aCaB
8ab47ebe4e win32: UTF #6 - clamd proto 2011-04-18 17:25:23 +02:00
aCaB
254cecefad win32: UTF8 #3 - make mprintf UTF8 aware 2011-04-16 18:58:00 +02:00
Tomasz Kojm
13d52e4f8a shared/output.c: fix empty lines in syslog (bb#2578) 2011-02-24 14:53:55 +01:00
Török Edvin
56b95528ad introduce logg_noflush: flush only on warnings and errors
c4w: no need to flush on each debug message, just flush on errors/warnings.
2010-11-09 22:41:48 +02:00
Tomasz Kojm
74f0e79e70 shared/output.c: workaround FreeBSD's file locking issue (bb#1918) 2010-05-05 21:30:00 +02:00
Török Edvin
3d8a490c3f Fix race condition in IDSESSION (bb #1838). 2010-03-31 16:27:48 +03:00
Tomasz Kojm
52a8d9f012 freshclam: fix some issues with --submit-stats (bb#1902)
Thanks to Mark Pizzolato
2010-03-30 15:20:01 +02:00
aCaB
4cd80898e6 win32#3 2009-09-24 19:31:30 +02:00
aCaB
be4bf7f4ab win32 2009-09-24 16:08:52 +02:00
Tomasz Kojm
c71a0353f9 shared: fix compiler warnings
git-svn: trunk@5060
2009-05-05 14:31:53 +00:00
Török Edvin
2cf89f22d8 logg flags documentation
git-svn: trunk@5035
2009-04-10 12:06:49 +00:00
Török Edvin
025243f6e1 fix uninitialized value warning.
git-svn: trunk@4921
2009-03-10 14:14:36 +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
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
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
Tomasz Kojm
086eab5c26 update old copyright headers
git-svn: trunk@4775
2009-02-13 10:55:45 +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
c6677c9418 LogFileUnlock was not working correctly (bb#1304)
git-svn: trunk@4471
2008-11-25 20:07:11 +00:00
Török Edvin
9e751804a2 introduce cli_ctime() that uses ctime_r() when
available, and falls back to locking with a mutex around
		ctime(). (ensures we are using the same mutex always).
use cli_ctime() instead of the thread-unsafe ctime().
		This fixes stability problems.


git-svn: trunk@3578
2008-02-03 19:23:20 +00:00
Tomasz Kojm
5a3aeff49f fix handling of special characters in mprintf/logg (bb#360)
git-svn: trunk@3533
2008-01-23 16:38:36 +00:00
Tomasz Kojm
bcbe6ad713 reduce the number of error messages (bb#478)
git-svn: trunk@3530
2008-01-23 12:12:25 +00:00
Tomasz Kojm
73b243dc40 fix some warnings
git-svn: trunk@3278
2007-10-08 14:43:32 +00:00
Tomasz Kojm
1b38f50dea add support for LogFileMaxSize and LogTime
git-svn: trunk@3277
2007-10-08 13:07:57 +00:00
Tomasz Kojm
bb34cb31fe update some copyrights and stick to GPL v2
git-svn: trunk@3003
2007-03-31 20:31:04 +00:00
Tomasz Kojm
4b25a0ded9 revert patch for bb#360
git-svn: trunk@2896
2007-03-02 02:41:29 +00:00
Tomasz Kojm
6b04ac13b1 fix handling of special characters in mprintf (bb#360)
git-svn: trunk@2888
2007-03-01 17:17:58 +00:00
Tomasz Kojm
65d08d617a some mallocs should be callocs
git-svn: trunk@2880
2007-03-01 01:27:43 +00:00
Tomasz Kojm
ace24e1fbc merge win32 patches from NJH
git-svn: trunk@2875
2007-02-28 03:12:51 +00:00
Tomasz Kojm
8ca8a18e2d drop shared/memory.[ch]
git-svn: trunk@2874
2007-02-28 02:44:23 +00:00
Tomasz Kojm
2ed08e8a48 move check for CL_NOTHREADS down
git-svn: trunk@2862
2007-02-24 23:44:41 +00:00
Sven Strickroth
a99111f050 remove old CVS-stuff and make the repository look more like SVN
git-svn: trunk@2755
2007-02-17 19:02:20 +00:00
Renamed from clamav-devel/shared/output.c (Browse further)