~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/filetypes.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "cltypes.h"
28
28
#include "fmap.h"
29
29
 
30
 
#define MAGIC_BUFFER_SIZE 1024
 
30
#define CL_FILE_MBUFF_SIZE 1024
 
31
#define CL_PART_MBUFF_SIZE 1028
 
32
/* MAGIC_BUFFER_SIZE must be the bigger of the two sizes above */
 
33
#define MAGIC_BUFFER_SIZE 1028
 
34
 
31
35
#define CL_TYPENO 500
32
36
#define MAX_EMBEDDED_OBJ 10
33
37
 
72
76
    CL_TYPE_HTML_UTF16,
73
77
    CL_TYPE_RTF,
74
78
    CL_TYPE_7Z,
 
79
    CL_TYPE_SWF,
 
80
    CL_TYPE_JAVA,
 
81
    CL_TYPE_XAR,
 
82
    CL_TYPE_XZ,
 
83
 
 
84
    /* Section for partition types */
 
85
    CL_TYPE_PART_ANY, /* unknown partition type */
 
86
    CL_TYPE_PART_HFSPLUS,
75
87
 
76
88
    /* bigger numbers have higher priority (in o-t-f detection) */
77
89
    CL_TYPE_HTML, /* on the fly */
79
91
    CL_TYPE_SFX, /* foo SFX marker */
80
92
    CL_TYPE_ZIPSFX, /* on the fly */
81
93
    CL_TYPE_RARSFX, /* on the fly */
 
94
    CL_TYPE_7ZSFX,
82
95
    CL_TYPE_CABSFX,
83
96
    CL_TYPE_ARJSFX,
84
97
    CL_TYPE_NULSFT, /* on the fly */
85
98
    CL_TYPE_AUTOIT,
86
99
    CL_TYPE_ISHIELD_MSI,
 
100
    CL_TYPE_ISO9660,
 
101
    CL_TYPE_DMG,
87
102
    CL_TYPE_IGNORED /* please don't add anything below */
88
103
} cli_file_t;
89
104
 
104
119
};
105
120
 
106
121
cli_file_t cli_ftcode(const char *name);
 
122
const char *cli_ftname(cli_file_t code);
107
123
void cli_ftfree(const struct cl_engine *engine);
108
124
cli_file_t cli_filetype(const unsigned char *buf, size_t buflen, const struct cl_engine *engine);
109
 
cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine);
 
125
cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine, cli_file_t basetype);
110
126
int cli_addtypesigs(struct cl_engine *engine);
111
127
 
112
128
#endif