d9e258d5 |
/* |
ace26bfe |
* Copyright (C) 2007-2010 Sourcefire, Inc. |
2023340a |
*
* Authors: Tomasz Kojm |
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"
|
de351ee1 |
#include "sha256.h" |
ace26bfe |
|
e8ae4fae |
struct cli_dbio {
gzFile *gzs;
FILE *fs; |
ace26bfe |
unsigned int size, bread; |
a6a98456 |
char *buf, *bufpt, *readpt;
unsigned int usebuf, bufsize, readsize; |
de351ee1 |
SHA256_CTX sha256ctx; |
e8ae4fae |
};
|
ace26bfe |
int cli_cvdload(FILE *fs, struct cl_engine *engine, unsigned int *signo, unsigned int options, unsigned int cld, const char *dbname); |
afff80ef |
int cli_cvdunpack(const char *file, const char *dir); |
d9e258d5 |
#endif |