X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fsyscheckd%2Fsyscheck.h;h=df51f0ed854c72399294f9ef14c474dc28b2fdc7;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hp=53f5989de8657764825c5f509b4d1755d9300288;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/syscheckd/syscheck.h b/src/syscheckd/syscheck.h index 53f5989..df51f0e 100755 --- a/src/syscheckd/syscheck.h +++ b/src/syscheckd/syscheck.h @@ -1,14 +1,15 @@ -/* @(#) $Id: syscheck.h,v 1.16 2009/06/30 17:08:19 dcid Exp $ */ +/* @(#) $Id: ./src/syscheckd/syscheck.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ - + #ifndef __SYSCHECK_H @@ -46,14 +47,14 @@ int Read_Syscheck_Config(char * cfgfile); int create_db(); -/* int check_db() - * Checks database for new files. +/* int run_dbcheck() + * Checks database for changes. */ -int check_db(); - +int run_dbcheck(); + /** void os_winreg_check() * Checks the registry for changes. - */ + */ void os_winreg_check(); /* starts real time */ @@ -65,6 +66,12 @@ int realtime_adddir(char *dir); /* Process real time queue. */ int realtime_process(); +/* Process the content of the file changes. */ +char *seechanges_addfile(char *filename); + +/* get checksum changes. */ +int c_read_file(char *file_name, char *oldsum, char *newsum); + /** Sends syscheck message. */ int send_syscheck_msg(char *msg);