X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fremoted%2Fconfig.c;h=02606b0747e2657432ca142e8da07d1c1f96f4af;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=59c27173b8de0fb9fc0017e88cd2325290633858;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/remoted/config.c b/src/remoted/config.c old mode 100755 new mode 100644 index 59c2717..02606b0 --- a/src/remoted/config.c +++ b/src/remoted/config.c @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -9,39 +7,30 @@ * Foundation */ - #include "shared.h" - #include "os_xml/os_xml.h" #include "os_regex/os_regex.h" #include "os_net/os_net.h" - #include "remoted.h" #include "config/config.h" -/* RemotedConfig v0.4, 2006/04/10 - * Read the config file (the remote access) - * v0.2: New OS_XML - * v0.3: Some improvements and cleanup - * v0.4: Move everything to the global config validator. - */ -int RemotedConfig(char *cfgfile, remoted *logr) +/* Read the config file (the remote access) */ +int RemotedConfig(const char *cfgfile, remoted *cfg) { int modules = 0; - modules|= CREMOTE; + modules |= CREMOTE; - logr->port = NULL; - logr->conn = NULL; - logr->allowips = NULL; - logr->denyips = NULL; + cfg->port = NULL; + cfg->conn = NULL; + cfg->allowips = NULL; + cfg->denyips = NULL; - if(ReadConfig(modules, cfgfile, logr, NULL) < 0) - return(OS_INVALID); + if (ReadConfig(modules, cfgfile, cfg, NULL) < 0) { + return (OS_INVALID); + } - return(1); + return (1); } - -/* EOF */