Update of /cvsroot/openantivirus/samba-vscan/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21244/include
Modified Files:
Tag: VSCAN_0_3
vscan-functions.h vscan-global.h
Added Files:
Tag: VSCAN_0_3
vscan-parameter.h
Log Message:
started some more code-reorganisation; not finished; could have
broken stuff
Index: vscan-global.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/include/vscan-global.h,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -u -d -r1.3.2.2 -r1.3.2.3
--- vscan-global.h 12 Sep 2003 07:12:15 -0000 1.3.2.2
+++ vscan-global.h 2 May 2004 19:45:31 -0000 1.3.2.3
@@ -10,6 +10,7 @@
#include "vscan-message.h"
#include "vscan-quarantine.h"
#include "vscan-filetype.h"
+#include "vscan-parameter.h"
#define CLIENT_IP_SIZE 18
--- NEW FILE: vscan-parameter.h ---
#ifndef __VSCAN_PARAMETER_H_
#define __VSCAN_PARAMETER_H_
typedef struct {
struct {
ssize_t max_size; /* do not scan files greater
than max_size
if max_size = 0, scan any file
*/
BOOL verbose_file_logging; /* log every file access */
BOOL scan_on_open; /* scan a file before it is
opened
Defaults to True
*/
BOOL scan_on_close; /* scan a new file put on share
or
if file was modified
Defaults to False
*/
BOOL deny_access_on_error; /* if connection to daemon
fails, should access to any
file be denied? Defaults to
True
*/
BOOL deny_access_on_minor_error; /* if daemon returns
non-critical error,
should access to the file
be denied? */
BOOL send_warning_message; /* send a warning message using
the windows
messenger service? */
fstring quarantine_dir; /* directory for infected files
*/
fstring quarantine_prefix; /* prefix for infected files
*/
enum infected_file_action_enum infected_file_action; /* what to
do with infected files;
defaults to quarantine */
int max_lrufiles; /* specified the maximum
entries in lrufiles list */
time_t lrufiles_invalidate_time; /* specified the time in
seconds after the lifetime
of an entry is expired and
entry will be invalidated */
pstring exclude_file_types; /* list of file types which
should be excluded from scanning */
} common;
void* specific;
} vscan_config_struct;
BOOL do_common_parameter(vscan_config_struct *vscan_config, const char *param,
const char *value);
#endif /* __VSCAN_PARAMETER_H_ */
Index: vscan-functions.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/include/vscan-functions.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-functions.h 14 Jul 2003 13:09:16 -0000 1.5.2.1
+++ vscan-functions.h 2 May 2004 19:45:31 -0000 1.5.2.2
@@ -7,5 +7,8 @@
void vscan_syslog(const char *printMessage, ...);
void vscan_syslog_alert(const char *printMessage, ...);
char* encode_string (const char *s);
+int vscan_inet_socket_init(const char* daemon_name, const char* ip, const
unsigned short int port);
+int vscan_unix_socket_init(const char* daemon_name, const char* socket_name);
+void vscan_socket_end (int sockfd);
#endif /* __VSCAN_FUNCTIONS_H */
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
|