samba-vscan/include vscan-scan.h,NONE,1.1.2.1 vscan-fileaccesslog.h,1.5.2.1,1.5.2.2 vscan-filetype.h,1.2.2.2,1.2.2.3 vscan-global.h,1.3.2.3,1.3.2.4
Rainer Link <[email protected]> Fri, 24 Sep 2004 21:42:22 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5558/include
Modified Files:
Tag: VSCAN_0_3
vscan-fileaccesslog.h vscan-filetype.h vscan-global.h
Added Files:
Tag: VSCAN_0_3
vscan-scan.h
Log Message:
some changes to make the code (esp. return values) more read-able
Index: vscan-filetype.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/include/vscan-filetype.h,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -d -r1.2.2.2 -r1.2.2.3
--- vscan-filetype.h 24 Sep 2003 11:06:34 -0000 1.2.2.2
+++ vscan-filetype.h 24 Sep 2004 21:42:19 -0000 1.2.2.3
@@ -2,6 +2,17 @@
#define __VSCAN_FILETYPE_H_
+/* actions */
+
+/* error occured; file must be scanned */
+#define VSCAN_FT_ERROR_MUST_SCAN -1
+/* file type not in list, file must be scanned */
+#define VSCAN_FT_MUST_SCAN 0
+/* file type in exclude list, skip file,
+ i.e. do not scan file */
+#define VSCAN_FT_SKIP_SCAN 1
+
+
BOOL filetype_init (int flags, pstring exclude_list);
void filetype_close(void);
int filetype_skipscan(pstring fname);
--- NEW FILE: vscan-scan.h ---
#ifndef __VSCAN_SCAN_H_
#define __VSCAN_SCAN_H_
/* generic scan return values */
#define VSCAN_SCAN_MINOR_ERROR -2
#define VSCAN_SCAN_ERROR -1
#define VSCAN_SCAN_OK 0
#define VSCAN_SCAN_VIRUS_FOUND 1
#endif /* __VSCAN_SCAN_H_ */
Index: vscan-global.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/include/vscan-global.h,v
retrieving revision 1.3.2.3
retrieving revision 1.3.2.4
diff -u -d -r1.3.2.3 -r1.3.2.4
--- vscan-global.h 2 May 2004 19:45:31 -0000 1.3.2.3
+++ vscan-global.h 24 Sep 2004 21:42:19 -0000 1.3.2.4
@@ -11,7 +11,7 @@
#include "vscan-quarantine.h"
#include "vscan-filetype.h"
#include "vscan-parameter.h"
-
+#include "vscan-scan.h"
#define CLIENT_IP_SIZE 18
Index: vscan-fileaccesslog.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/include/vscan-fileaccesslog.h,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -u -d -r1.5.2.1 -r1.5.2.2
--- vscan-fileaccesslog.h 14 Jul 2003 13:09:16 -0000 1.5.2.1
+++ vscan-fileaccesslog.h 24 Sep 2004 21:42:19 -0000 1.5.2.2
@@ -1,9 +1,22 @@
#ifndef __VSCAN_FILEACCESSLOG_H_
#define __VSCAN_FILEACCESSLOG_H_
+/* maximum number of entries */
#define MAX_LRUFILES 100
+/* invalidate entry after x seconds */
#define LRUFILES_INVALIDATE_TIME 10
+
+/* actions to be performed */
+
+/* file needs to be scanned */
+#define VSCAN_LRU_SCAN_FILE 1
+/* deny access to file */
+#define VSCAN_LRU_DENY_ACCESS -1
+/* grant access without scanning */
+#define VSCAN_LRU_GRANT_ACCESS 0
+
+
struct lrufiles_struct {
struct lrufiles_struct *prev, *next;
pstring fname; /* the file name */
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php