1 /* 2 ** Copyright (C) 2014-2021 Cisco and/or its affiliates. All rights reserved. 3 ** Copyright (C) 2012-2013 Sourcefire, Inc. 4 ** 5 ** This program is free software; you can redistribute it and/or modify 6 ** it under the terms of the GNU General Public License Version 2 as 7 ** published by the Free Software Foundation. You may not use, modify or 8 ** distribute this program under any other version of the GNU General 9 ** Public License. 10 ** 11 ** This program is distributed in the hope that it will be useful, 12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ** GNU General Public License for more details. 15 ** 16 ** You should have received a copy of the GNU General Public License 17 ** along with this program; if not, write to the Free Software 18 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 ** 20 ** Author(s): Hui Cao <hcao@sourcefire.com> 21 ** 22 ** NOTES 23 ** 5.25.2012 - Initial Source Code. Hcao 24 */ 25 26 #ifndef __FILE_SERVICE_CONFIG_H__ 27 #define __FILE_SERVICE_CONFIG_H__ 28 29 /* Default file type/signature/capture values. 30 */ 31 32 /* configure file services 33 * 34 * Args: 35 * struct _SnortConfig* sc: the snort configuration 36 * char *args: configuration string 37 * void *file_config: pointer to file config 38 */ 39 struct _SnortConfig; 40 void file_service_config(struct _SnortConfig* sc, char *args, void *file_config); 41 42 /* Create file service configuration and set default values 43 * 44 * Return: 45 * void *: pointer to file configuration 46 */ 47 struct _fileConfig; 48 struct _fileConfig* file_service_config_create(void); 49 50 # ifdef SNORT_RELOAD 51 /* Verify whether file configuration is valid 52 * changing memory settings and depth settings 53 * requires snort restart 54 * 55 * Return 56 * 0: valid 57 * -1: invalid 58 */ 59 int file_sevice_config_verify(SnortConfig *old, SnortConfig *new); 60 61 # endif /* ifdef SNORT_RELOAD */ 62 #endif /* #ifndef __FILE_SERVICE_CONFIG_H__ */ 63 64