clamav-devel/freshclam/manager.h
e3aaff8e
 /*
48b7b4a7
  *  Copyright (C) 2002, 2003 Tomasz Kojm <tkojm@clamav.net>
e3aaff8e
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
48b7b4a7
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA 02110-1301, USA.
e3aaff8e
  */
 
 #ifndef __MANAGER_H
 #define __MANAGER_H
 
afb48b28
 #include "cfgparser.h"
e4ae7726
 #include "clamav.h"
e3aaff8e
 
af22ece1
 int downloadmanager(const struct cfgstruct *copt, const struct optstruct *opt, const char *hostname);
e4ae7726
 
9d1e45d4
 int downloaddb(const char *localname, const char *remotename, const char *hostname, char *ip, int *signo, const struct cfgstruct *copt, const char *dnsreply, char *localip, int outdated);
e4ae7726
 
fc918fb5
 int wwwconnect(const char *server, const char *proxy, int pport, char *remoteip, char *localip);
e4ae7726
 
8246f576
 struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostname, const char *proxy, const char *user, const char *pass, const char *uas, int *ims);
e4ae7726
 
21c59a0d
 int get_database(const char *dbfile, int socketfd, const char *file, const char *hostname, const char *proxy, const char *user, const char *pass, const char *uas);
e4ae7726
 
e3aaff8e
 unsigned int fmt_base64(char* dest,const char* src,unsigned int len);
 
 #endif