mirror of
				https://github.com/Cisco-Talos/clamav.git
				synced 2025-10-31 16:10:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  *  Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
 | |
|  *  With enhancements from Thomas Lamy <Thomas.Lamy@in-online.net>
 | |
|  *
 | |
|  *  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
 | |
|  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | |
|  */
 | |
| 
 | |
| #ifndef __FILETYPES_H
 | |
| #define __FILETYPES_H
 | |
| 
 | |
| #define MAGIC_BUFFER_SIZE 26
 | |
| #define CL_TYPENO 500
 | |
| 
 | |
| typedef enum {
 | |
|     CL_UNKNOWN_TEXT_TYPE = CL_TYPENO,
 | |
|     CL_UNKNOWN_DATA_TYPE,
 | |
|     CL_DOSEXE,
 | |
|     CL_DATAFILE,
 | |
|     CL_GZFILE,
 | |
|     CL_ZIPFILE,
 | |
|     CL_BZFILE,
 | |
|     CL_RARFILE,
 | |
|     CL_MSCFILE,
 | |
|     CL_OLE2FILE,
 | |
|     CL_MSCABFILE,
 | |
|     CL_MSCHMFILE,
 | |
| 
 | |
|     /* bigger numbers have higher priority (in o-t-f detection) */
 | |
|     CL_HTMLFILE, /* on the fly */
 | |
|     CL_MAILFILE  /* magic + on the fly */
 | |
| 
 | |
| } cli_file_t;
 | |
| 
 | |
| cli_file_t cli_filetype(const char *buf, size_t buflen);
 | |
| int cli_addtypesigs(struct cl_node *root);
 | |
| 
 | |
| #endif
 | 
