libclamav/cvd.h
d9e258d5
 /*
e1cbc270
  *  Copyright (C) 2013-2019 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
  *  Copyright (C) 2007-2013 Sourcefire, Inc.
2023340a
  *
  *  Authors: Tomasz Kojm
6289eda8
  * 
  *  Summary: Code to parse Clamav CVD database format.
  * 
  *  Acknowledgements: ClamAV untar code is based on a public domain minitar utility
  *                    by Charles G. Waldman.
d9e258d5
  *
  *  This program is free software; you can redistribute it and/or modify
bb34cb31
  *  it under the terms of the GNU General Public License version 2 as
  *  published by the Free Software Foundation.
d9e258d5
  *
  *  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.
d9e258d5
  */
 
 #ifndef __CVD_H
 #define __CVD_H
 
 #include <stdio.h>
e8ae4fae
 #include <zlib.h>
d9e258d5
 #include "clamav.h"
 
e8ae4fae
 struct cli_dbio {
3afedd07
     gzFile gzs;
e8ae4fae
     FILE *fs;
ace26bfe
     unsigned int size, bread;
a6a98456
     char *buf, *bufpt, *readpt;
     unsigned int usebuf, bufsize, readsize;
f8202681
     unsigned int chkonly;
da6e06dd
     void *hashctx;
e8ae4fae
 };
 
cdddd014
 int cli_cvdload(FILE *fs, struct cl_engine *engine, unsigned int *signo, unsigned int options, unsigned int dbtype, const char *filename, unsigned int chkonly);
afff80ef
 int cli_cvdunpack(const char *file, const char *dir);
d9e258d5
 
 #endif