22
22
#include "clamav.h"
26
struct nodelist *next;
29
int cli_addpatt(struct cl_node *root, struct cli_patt *pattern);
30
struct nodelist *cli_bfsadd(struct nodelist *bfs, struct cl_node *n);
31
void cli_failtrans(struct cl_node *root);
32
void cli_fasttrie(struct cl_node *n, struct cl_node *root);
33
int cli_findpos(const char *buffer, int offset, int length, const struct cli_patt *pattern);
34
int cli_scanbuff(const char *buffer, unsigned int length, const char **virname, const struct cl_node *root, int *partcnt);
24
int cli_scandesc(int desc, const char **virname, long int *scanned, const struct cl_node *root, short otfrec, unsigned short ftype);
26
int cli_scanbuff(const char *buffer, unsigned int length, const char **virname, const struct cl_node *root, unsigned short ftype);
28
int cli_validatesig(unsigned short target, unsigned short ftype, const char *offstr, unsigned long int fileoff, int desc, const char *virname);
30
int cli_checkfp(int fd, const struct cl_node *root);