[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: win-registry.c (HEAD) [dcid]



Module name:	ossec-hids
Changes by:	dcid	07/09/26 22:21:56

Modified files:
	win-registry.c

Log message:
Description: Fixing help on the windows ui and changing the registry checking to do md5/sha1 at the same time.
Reviewed by: dcid
Bug:

Index: win-registry.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/syscheckd/win-registry.c,v
diff -u -r1.9 -r1.10
--- win-registry.c	25 Sep 2007 23:18:20 -0000	1.9
+++ win-registry.c	27 Sep 2007 01:21:56 -0000	1.10
@@ -21,6 +21,7 @@
 #include "syscheck.h"
 #include "os_crypto/md5/md5_op.h"
 #include "os_crypto/sha1/sha1_op.h"
+#include "os_crypto/md5_sha1/md5_sha1_op.h"       
 
 
 /* Default values */
@@ -377,16 +378,12 @@
         /* Generating checksum of the values */
         fclose(checksum_fp);
 
-        if(OS_MD5_File(SYS_REG_TMP, mf_sum) == -1)
-        {
-            merror(FOPEN_ERROR, ARGV0, SYS_REG_TMP);
-            return;
-        }
-        if(OS_SHA1_File(SYS_REG_TMP, sf_sum) == -1)
+        if(OS_MD5_SHA1_File(SYS_REG_TMP, mf_sum, sf_sum) == -1)
         {
             merror(FOPEN_ERROR, ARGV0, SYS_REG_TMP);
             return;
         }
+
 
         /* Looking for p_key on the reg db */
         if(os_winreg_changed(full_key_name, mf_sum, sf_sum))


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.