izmjene licence
[ossec-hids.git] / src / client-agent / config.c
index 4025554..9ae93eb 100755 (executable)
@@ -1,11 +1,12 @@
-/* @(#) $Id: config.c,v 1.15 2009/06/24 17:06:24 dcid Exp $ */
+/* @(#) $Id: ./src/client-agent/config.c, 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
  */
 
 /* ClientConf v0.2, 2005/03/03
  * Read the config file (for the remote client)
  * v0.2: New OS_XML
- */ 
+ */
 int ClientConf(char *cfgfile)
 {
     int modules = 0;
-    logr->port = DEFAULT_SECURE;
-    logr->rip = NULL;
-    logr->lip = NULL;
-    logr->rip_id = 0;
-    logr->execdq = 0;
+    agt->port = DEFAULT_SECURE;
+    agt->rip = NULL;
+    agt->lip = NULL;
+    agt->rip_id = 0;
+    agt->execdq = 0;
+    agt->profile = NULL;   /*cmoraes*/
 
     modules|= CCLIENT;
 
-    if(ReadConfig(modules, cfgfile, logr, NULL) < 0)
+    if(ReadConfig(modules, cfgfile, agt, NULL) < 0)
     {
         return(OS_INVALID);
     }